Hi I attempted the above and still broke my site by updating to PHP 8.1 . Could someone help me understand where I went wrong?
- My site (on shared hosting) with Sage 9 theme was running fine on PHP 7.4
- My shared host told me to upgrade to PHP 8 or higher
- I upgraded to PHP 8.1 and the site crashed (I determined that the crash was caused by my Sage 9 theme, not a plugin)
-I found this thread and did the following:
- Changed the composer.json file in my theme folder to be exactly as @ben wrote above
- ran
composer update
(it seemed to work fine, even asked me for a github token to pull the repositories)
I ran into the SAME ISSUE as before (switch from PHP 7.4 to PHP 8.1 , site crashes (critical error white screen).
I also tried @evance 's version of the composer.json file, ran composer update
, and got the same error
Am I missing some step here ? Do I need to do anything else besides changing the file and running composer update ?!
Would be very grateful for any support here- Thanks