# Sage 9 + PHP 8.0

**URL:** https://discourse.roots.io/t/sage-9-php-8-0/22485
**Category:** sage
**Tags:** sage9
**Created:** 2022-03-08T12:18:50Z
**Posts:** 16
**Showing post:** 11 of 16

## Post 11 by @gracemonahan — 2023-02-24T22:04:13Z

Hi :slight_smile: 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:

1. Changed the composer.json file in my theme folder to be exactly as @ben wrote above
2. 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](https://discourse.roots.io/t/is-there-a-way-to-use-sage-9-with-php-8-1/24435) 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 :slight_smile:

---

_[View the full topic](https://discourse.roots.io/t/sage-9-php-8-0/22485)._
