[Need help] Error message: Composer detected issues in your platform

Hi, I have a rookie question:

My website just crashed after I tried to update a plugin in wordpress.org. This is the error no matter in every single page:

Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.2.0".

I just checked in cPanel that my PHP is 7.4. I am totally not familiar with Composer or PHP, tried to search for answers online but had no luck. Would appreciate any help to let my website run again. Thanks.

Update: updated PHP to 8.3, the same message showed up…

1 Comment
  1. Looks like Composer not recognizing the PHP version, clear Composer cache and update Composer for compatibility

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer