Another thing, maybe it is related. I can’t seem to delete any plugins. I get this error:
Deletion failed: Connection lost or the server is busy. Please try again later.
I tried to increase the memory allocated to PHP with editing the default-constants.php, but it didn’t work.
Because that’s not how you do it. 😉
If you’re seeing this error either suddenly (no specific task was done to cause the error) or frequently, try deactivating *all* plugins to rule-out a plugin-specific issue and try switching themes to rule-out a theme-specific issue.
Otherwise, here are three ways to increase PHP’s memory allocation:
1. If you can edit or override the system php.ini file, increase the memory limit. For example, memory_limit = 128M
2. If you cannot edit or override the system php.ini file, add php_value memory_limit 128M to your .htaccess file.
3. If neither of these work, it’s time to ask your hosting provider to temporarily increase PHP’s memory allocation on your account. Keep in mind that most decent hosting providers allocate 64 MB to PHP under each account, and most decent hosting providers allow users to temporarily increase the memory allocation. If your hosting provider won’t accommodate you, perhaps it’s time to find a new hosting provider.
(in the above examples, the limit is set to 128MB)
I’ve deactivated all plugins and changed my theme. But the error stayed. The only difference was when I deactivated Advanced Custom Fields PRO, there was no error but there was also no page, since it relies so heavily on it.
I’ve increased the memory limit in the php.ini file even to 256m (it was already on 128m at default) but it didn’t help. Really don’t know what else to do. This fatal error aparently just appeared suddenly.
The fatal error memory size also always stays the same: 33554432
Thanks!
Ok, that would suggest then that server is running out of physical memory, not that you’re hitting the allocation limit.
I recommend contacting your hosting provider about this.
The strange thing is that I have this fatal error only when editing a specific page (it’s like the homepage).
But right now it seems the problem is solved. I changed my php version in cpanel to another one, and I didn’t get any errors so far.
Thanks for all the help!
Excellent, would you please let us know which versions of PHP you moved from and to?
I am now on PHP Version 5.6.30, I can’t remember exactly from which I went. I’m 80% sure it was the same. But first I went to 7.0 and worked my way down. Maybe it refreshed something.
Cheers.
Excellent, PHP 7.0 is recommended, but 5.6 will be just fine too. 🙂
https://wordpress.org/about/requirements/