I was updating my site to WordPress to 6.2, but the installation never reached the end. When I refreshed the page I had the message: "There has been a critical error on this website".
I've turned debugging on and I could see there were two errors:
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 4096 bytes) in /home/qualalba/public_html/wp-content/plugins/wordpress-https/lib/Mvied/Url.php on line 245
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 4096 bytes) in /home/qualalba/public_html/wp-includes/class-wp-recovery-mode.php on line 178
(but the files associated with the errors keep changing if I try to open the site in another browser)
I've tried to disable all plugins by renaming the plugins folder to something else, and then I get only one error.
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 262144 bytes) in /home/qualalba/public_html/wp-includes/class-wp-hook.php on line 308
And this time the error is always the same in all browsers.
I tried several ways to increase the PHP memory limit, with no result:
- in the WP-CONFIG.php:
define("WP_MEMORY_LIMIT", 512)
- in the .htaccess file:
php_value memory_limit 512M
- increasing the value via the cpanel.
No matter what the value is, the error persists. The error message shows me that the memory did increase, but it's never enough.
I also tried to copy manually a fresh 6.2 wordpress copy to my site, overwriting the old files (no result)
I really don't know what else I can do. Can it be a corruption in the database during the failed update process?