WordPress ‘critical’ error after server OS upgrade
-
I recently upgraded my Ubuntu server to v22.04.4 LTS. The upgrade was fairly smooth and there were no errors or mishaps. Post the upgrade I see this error when trying to login to the dashboard (with WP_DEBUG enabled)
Fatal error: Uncaught Error: Call to undefined function create_function() in /var/www/cbp/wp-content/plugins/LayerSlider/wp/widgets.php:4 Stack trace: #0 /var/www/cbp/wp-content/plugins/LayerSlider/layerslider.php(55): include() #1 /var/www/cbp/wp-settings.php(428): include_once('...') #2 /var/www/cbp/wp-config.php(86): require_once('...') #3 /var/www/cbp/wp-load.php(50): require_once('...') #4 /var/www/cbp/wp-admin/admin.php(34): require_once('...') #5 /var/www/cbp/wp-admin/index.php(10): require_once('...') #6 {main} thrown in /var/www/cbp/wp-content/plugins/LayerSlider/wp/widgets.php on line 4
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 /var/www/cbp/wp-includes/functions.php on line 5831
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 /var/www/cbp/wp-includes/functions.php on line 5831 There has been a critical error on this website. Please check your site admin email inbox for instructions.
Post this error, I removed the LayerSlider plugin and that gave a huge page of errors. Any idea what could be wrong here? How do I debug this?
- The topic ‘WordPress ‘critical’ error after server OS upgrade’ is closed to new replies.