Jetpack causing site to crash
-
Jetpack is causing our site to throw a 502 Bad Gateway error. The site loads fine unless we try to go to the admin or re-enable Jetpack (I was able to get in through WP’s new recovery mode feature which disabled Jetpack for me). Here’s teh error it throws:
An error of type E_ERROR was caused in line 20 of the file /home/customer/www/domain.com/public_html/wp-content/plugins/jetpack/require-lib.php. Error message: Allowed memory size of 805306368 bytes exhausted (tried to allocate 70862819588 bytes)
Why would Jetpack be trying to allocate 70GB of memory?
Edit – Troubleshooting a little further yields the following:
1) Reverting the PHP version of the server allows me to load the site again and the admin. Putting it back to 7.4 or above crashes the site and emails me the error above.
2) Jetpack says “Your site is connected to WordPress.com” under the “Site Connection” heading but I get a notification at the top of the page that says “Jetpack is powering your site, but to access all of its features you’ll need to connect your account to WordPress.com.”
3) Disabling Jetpack allows me to use the site without issue, regardless of what PHP version I set the site’s server to.
Seems like there’s some kind of issue with Jetpack and PHP 7.4. I’m using Jetpack 10.1 and WordPress 5.8.
Edit 2 – Some more messing about:
1) Enabling Jetpack and turning the PHP version to 8.0 or higher seems to work. The issues seems to lie exclusively with running versions of PHP 7 higher than 7.3.
- The topic ‘Jetpack causing site to crash’ is closed to new replies.