Fatal memory error under PHP 7
-
This relates to the free version of Events Calendar that is bundled with the Avada theme.
We have a working site that uses the Events Calendar, and I migrated it to another web host to create a staging site. Immediately I started having fatal memory errors whenever I tried to save edits to a page, and sometimes even before I could reach the page editor at all.
These errors stopped immediately when I disabled the Events Calendar plugin. The errors looked like this:
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 2542620639840 bytes) in /[accountpath]/wp-includes/option.php on line 1115
Our live server is using PHP 5 (point something). Our staging server is set up to use PHP 7 by default. When I “downgraded” PHP to 5.6 the problem stopped immediately.
A couple of months ago, someone else reported an issue with PHP 7 but was told they were simply running out of memory. I wanted to re-raise this since that’s apparently not the case.
My staging server host (SiteGround) is reasonably generous with RAM… and even if they weren’t, please note that the system crashed because it was trying to allocate 2.5 terabytes of RAM. So… yeah. No amount of WP_MEMORY_LIMIT voodoo is going to fix that kind of memory overrun.
For the time being we’ll run with PHP 5.6, but I’d love to switch back to PHP 7 if this gets fixed.
Thanks,
Andy
- The topic ‘Fatal memory error under PHP 7’ is closed to new replies.