Posted: February 5, 2024 at 4:06 pm
Performed a plugin update and it caused the website to crash with a “critical error.” I disabled EE using FTP and found the error in the server error log file (not sure if it applies now…). The version is now showing as 5.0.15p with no available updates, but I noticed the EE site shows a newer version so I deactivated and deleted EE (per online instructions), downloaded the new version, and tried to upload via the Dashboard but received a “The link you followed has expired” when I tried to install the new zip file. So now, EE is not even loaded on the site. Not sure where to go from here!
Lets start with this, what was the error?
All good up to here 🙂
What that usually means is the filesize is greater than your server’s
Go to Dashboard -> Media -> Add new media file.
At the bottom you’ll see “Maximum upload file size”
What value does it show?
First, don’t panic. We can fix this.
Do you have FTP access?
Thanks for the speedy response. Following your thinking, I changed the max upload size and max post size to accommodate the file. It started processing and then threw the “There has been a critical error on this website.” message. I disabled EE via FTP and was able to access the site again. Here is the error from the server log file (note I changed my domain to “mysite”):
[06-Feb-2024 00:23:59 UTC] PHP Fatal error: Uncaught TypeError: Cannot assign int to property EE_Template_Config::$display_address_in_regform of type bool in /home/ mysite /public_html/wp-includes/functions.php:650
You rock, Tony 🙂
Awesome, so I assume you’re comfortable with PHP and editing files?
Your issue is you have old config values saved which conflict with the latest type setting, but we can work around that.
Edit this file:
Line 2783 should be:
Change that to:
Then try activating EE again, does it still fatal?
(Side note, I’ll create a ticket to investigate this issue with our developers but we can troubleshoot to get EE back up and running on your site in the meantime)
You are my hero, Tony. That worked! I just tried adding a new event and that worked as well. Thank you so much 🙂
You’re most welcome 🙂
I’ve just pushed an update live (v5.0.17.p) which includes this fix.
The support post ‘EE4 Update resulted in critical error and shut down the site’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.