Critical error after latest update to Version 21.9
-
The WP gives critical error and stops working after the update to version 21.9
Site is down because of this update… Any fix is appreciated….
The log shows the following error. (There is no issue with allocation of memory. Site was working find before update)
[23-Jan-2024 15:58:52 UTC] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 9436692340 bytes) in /web/www/wp-content/plugins/wordpress-seo/wp-seo-main.php on line 56
[23-Jan-2024 15:58:57 UTC] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 46523248644 bytes) in /web/www/wp-content/plugins/wordpress-seo/src/functions.php on line 442
-
Hello @apt2it,
Thanks for alerting us about this critical error. Please navigate to WordPress > Tools > Site Health > Info >and Copy site info to clipboard to share with us.
To mitigate, currently downgraded to 21.8 version using
wp plugin install --version=21.8 --force
@maybellyne, please ask specific info you want. On public forum, hesitant to share those details.
Please share
### wp-plugins-active ###
and### wp-plugins-inactive ###
I have the same problem with multiple sites and can recreate it using an empty wordpress install.
This only happens when updating to 21.9.
If you have access to wp-cli you can use it to disable yoast and re enable it , this worked for me.wp plugin deactivate wordpress-seo wp plugin activate wordpress-seo
I have raised an issue on the repository:
https://github.com/Yoast/wordpress-seo/issues/21077- This reply was modified 10 months ago by infotexsupport.
- This reply was modified 10 months ago by infotexsupport.
Same here… Latest update breaks website.
The website that were down also had The Event Calendar installed.
I have disabled Yoast SEO plugin and the site now works.
@infotexsupport: Thanks for the GitHub report, and I’m sorry about the error you encountered. Our developers are currently aware and are taking a deeper look.
- This reply was modified 10 months ago by Maybellyne.
I just disabled it as well. It crashes on 3 sites I use it on. Here is the error message I get…I have memory set at 256M
Running Centos 9 Stream,
PHP 8.0.30 (cli) (built: Aug 3 2023 17:13:08) ( NTS gcc x86_64 )
Copyright (c) The PHP Group
Zend Engine v4.0.30, Copyright (c) Zend Technologies
with Zend OPcache v8.0.30, Copyright (c), by Zend TechnologiesServer version: Apache/2.4.57 (CentOS Stream)
Server built: Jul 20 2023 00:00:00 with php-fpmFatal error: Uncaught TypeError: ftp_nlist(): Argument #1 ($ftp) must be of type resource, null given in /wp-admin/includes/class-wp-filesystem-ftpext.php:438 Stack trace: #0 /wp-admin/includes/class-wp-filesystem-ftpext.php(438): ftp_nlist() #1 /wp-admin/includes/class-wp-filesystem-ftpext.php(456): WP_Filesystem_FTPext->exists() #2 /wp-admin/includes/class-wp-filesystem-ftpext.php(757): WP_Filesystem_FTPext->is_file() #3 /wp-admin/includes/file.php(2772): WP_Filesystem_FTPext->dirlist() #4 /wp-content/plugins/wordpress-seo/wp-seo-main.php(361): wp_opcache_invalidate_directory() #5 /wp-includes/class-wp-hook.php(324): wpseo_init() #6 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #7 /wp-includes/plugin.php(517): WP_Hook->do_action() #8 /wp-settings.php(506): do_action() #9 /wp-config.php(95): require_once(‘…’) #10 /wp-load.php(50): require_once(‘…’) #11 /wp-blog-header.php(13): require_once(‘…’) #12/index.php(17): require(‘…’) #13 {main} thrown in?/wp-admin/includes/class-wp-filesystem-ftpext.php?on line?438
Notice: Function is_embed was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see?Debugging in WordPress?for more information. (This message was added in version 3.1.0.) in?/wp-includes/functions.php?on line?6031
Notice: Function is_search was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see?Debugging in WordPress?for more information. (This message was added in version 3.1.0.) in?/wp-includes/functions.php?on line?6031
- This reply was modified 10 months ago by rabh.
Hi all,
The current problem with 21.9 is connected to the use of
WP_Filesystem() in wp_opcache_invalidate_directory()
. If you have not setup dedicated filesystem credentials or you are using a multi-site installation the request for WP_Filesystem will return a login dialog to provide credentials resp. an error, which is not handled. See php error log attached. For the time being, please consider to revert to version 21.8.1 here.[24-Jan-2024 06:44:16 UTC] PHP Fatal error: Uncaught TypeError: ftp_nlist(): Argument #1 ($ftp) must be of type FTP\Connection, null given in /usr/share/wordpress/wp-admin/includes/class-wp-filesystem-ftpext.php:438<br>Stack trace: 0 /usr/share/wordpress/wp-admin/includes/class-wp-filesystem-ftpext.php(438): ftp_nlist() 1 /usr/share/wordpress/wp-admin/includes/class-wp-filesystem-ftpext.php(456): WP_Filesystem_FTPext->exists() 2 /usr/share/wordpress/wp-admin/includes/class-wp-filesystem-ftpext.php(757): WP_Filesystem_FTPext->is_file() 3 /usr/share/wordpress/wp-admin/includes/file.php(2772): <strong>WP_Filesystem_FTPext->dirlist() 4 /var/lib/wordpress/wp-content/plugins/wordpress-seo/wp-seo-main.php(361): wp_opcache_invalidate_directory() 5</strong> /usr/share/wordpress/wp-includes/class-wp-hook.php(324): wpseo_init() 6 /usr/share/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 7 /usr/share/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action() 8 /usr/share/wordpress/wp-settings.php(506): do_action() 9 /usr/share/wordpress/wp-config.php(71): require_once('…') 10 /usr/share/wordpress/wp-load.php(50): require_once('…') 11 /usr/share/wordpress/wp-blog-header.php(13): require_once('…') 12 /usr/share/wordpress/index.php(17): require('…') 13 {main}
Cheers,
SCHAPPY
Thank you Matthieu for finding the issue. Maybellyne? When will see an update? We have 100+ clients that are wondering. Thank you.
Same here. Site crashed after 21.9 update.
This is the log:
Fatal error: Uncaught TypeError: ftp_nlist(): Argument #1 ($ftp) must be of type resource, null given in /srv/vhost/mydomain.com/home/html/wp-admin/includes/class-wp-filesystem-ftpext.php:438 Stack trace: #0 /srv/vhost/mydomain.com/home/html/wp-admin/includes/class-wp-filesystem-ftpext.php(438): ftp_nlist(NULL, ‘/srv/vhost/mydomain…’) #1 /srv/vhost/mydomain.com/home/html/wp-admin/includes/class-wp-filesystem-ftpext.php(456): WP_Filesystem_FTPext->exists(‘/srv/vhost/mydomain…’) #2 /srv/vhost/mydomain.com/home/html/wp-admin/includes/class-wp-filesystem-ftpext.php(757): WP_Filesystem_FTPext->is_file(‘/srv/vhost/mydomain…’) #3 /srv/vhost/mydomain.com/home/html/wp-admin/includes/file.php(2772): WP_Filesystem_FTPext->dirlist(‘/srv/vhost/mydomain…’, false, true) #4 /srv/vhost/mydomain.com/home/html/wp-content/plugins/wordpress-seo/wp-seo-main.php(361): wp_opcache_invalidate_directory(‘/srv/vhost/mydomain…’) #5 /srv/vhost/mydomain.com/home/html/wp-includes/class-wp-hook.php(324): wpseo_init(”) #6 /srv/vhost/mydomain.com/home/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #7 /srv/vhost/mydomain.com/home/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #8 /srv/vhost/mydomain.com/home/html/wp-settings.php(506): do_action(‘plugins_loaded’) #9 /srv/vhost/mydomain.com/home/html/wp-config.php(92): require_once(‘/srv/vhost/mydomain…’) #10 /srv/vhost/mydomain.com/home/html/wp-load.php(50): require_once(‘/srv/vhost/mydomain…’) #11 /srv/vhost/mydomain.com/home/html/wp-admin/admin.php(34): require_once(‘/srv/vhost/mydomain…’) #12 /srv/vhost/mydomain.com/home/html/wp-admin/index.php(10): require_once(‘/srv/vhost/mydomain…’) #13 {main} thrown in /srv/vhost/mydomain.com/home/html/wp-admin/includes/class-wp-filesystem-ftpext.php on line 438
Notice: The is_embed function has been called incorrectly. Conditional query tags do not work before the query is executed. Doing it before, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0). in /srv/vhost/mydomain.com/home/html/wp-includes/functions.php on line 6031
Notice: The is_search function has been called incorrectly. Conditional query tags do not work before the query is executed. Doing it before, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0). in /srv/vhost/mydomain.com/home/html/wp-includes/functions.php on line 6031
and same here
Fatal error: Uncaught TypeError: ftp_nlist(): Argument #1 ($ftp) must be of type FTP\Connection, null given in /var/www/html/wp-admin/includes/class-wp-filesystem-ftpext.php:438 Stack trace: #0 /var/www/html/wp-admin/includes/class-wp-filesystem-ftpext.php(438): ftp_nlist() #1 /var/www/html/wp-admin/includes/class-wp-filesystem-ftpext.php(456): WP_Filesystem_FTPext->exists() #2 /var/www/html/wp-admin/includes/class-wp-filesystem-ftpext.php(757): WP_Filesystem_FTPext->is_file() #3 /var/www/html/wp-admin/includes/file.php(2772): WP_Filesystem_FTPext->dirlist() #4 /var/www/html/wp-content/plugins/wordpress-seo/wp-seo-main.php(361): wp_opcache_invalidate_directory() #5 /var/www/html/wp-includes/class-wp-hook.php(324): wpseo_init() #6 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #7 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action() #8 /var/www/html/wp-settings.php(506): do_action() #9 /var/www/html/wp-config.php(135): require_once(‘…’) #10 /var/www/html/wp-load.php(50): require_once(‘…’) #11 /var/www/html/wp-blog-header.php(13): require_once(‘…’) #12 /var/www/html/index.php(17): require(‘…’) #13 {main} thrown in /var/www/html/wp-admin/includes/class-wp-filesystem-ftpext.php on line 438
Notice: Die Funktion is_embed wurde fehlerhaft aufgerufen. Bedingte Abfragen (Conditional Tags) funktionieren nicht, wenn die Beitrags-Abfrage (query_posts) noch nicht durchgeführt wurde. Sie geben dann immer ‘false’ zurück. Weitere Informationen: Debugging in WordPress (engl.). (Diese Meldung wurde in Version 3.1.0 hinzugefügt.) in /var/www/html/wp-includes/functions.php on line 6031
Notice: Die Funktion is_search wurde fehlerhaft aufgerufen. Bedingte Abfragen (Conditional Tags) funktionieren nicht, wenn die Beitrags-Abfrage (query_posts) noch nicht durchgeführt wurde. Sie geben dann immer ‘false’ zurück. Weitere Informationen: Debugging in WordPress (engl.). (Diese Meldung wurde in Version 3.1.0 hinzugefügt.) in /var/www/html/wp-includes/functions.php on line 6031
Es gab einen kritischen Fehler auf deiner Website.Solved in 21.9.1. Great job!! : )
Thank you all for your patience so far. The issue?has been fixed. Can you confirm it’s resolved for you in Yoast SEO 21.9.1?
Thank you Maybellyne. Everything is working smoothly now. ??
- The topic ‘Critical error after latest update to Version 21.9’ is closed to new replies.