Moderator
t-p
(@t-p)
– WordPress 5.2 introduced new protection from sites crashing due to bad code (also known as a White Screen of Death, or WSOD for short).
– If your site crashes, the technical difficulties message is shown, and an email is sent to the site admin with a way to log in and deactivate the plugin or theme causing problems, once that is done the site should start working again as expected.
– If you didn’t get the email, you can look for an error log on your server to see what the problem is. If you can’t find one, use DEBUG mode to log an error so you can fix it. https://codex.ww.wp.xz.cn/Editing_wp-config.php#Debug
Thanks! I set DEBUG mode, and found this (obfuscated) error:
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/xxxxxxxx/public_html/wp-includes/wp-db.php:1643 Stack trace: #0 /home/xxxxxxxx/public_html/wp-includes/wp-db.php(639): wpdb->db_connect() #1 /home/xxxxxxxx/public_html/wp-includes/load.php(427): wpdb->__construct('xxxxxxxx_wp', 'yyyyyyyy', 'xxxxxxxx_wp', 'localhost') #2 /home/xxxxxxxx/public_html/wp-settings.php(120): require_wp_db() #3 /home/xxxxxxxx/public_html/wp-config.php(103): require_once('/home/xxxxxxxx/...') #4 /home/xxxxxxxx/public_html/wp-load.php(37): require_once('/home/xxxxxxxx/...') #5 /home/xxxxxxxx/public_html/wp-admin/admin.php(34): require_once('/home/xxxxxxxx/...') #6 /home/xxxxxxxx/public_html/wp-admin/index.php(10): require_once('/home/xxxxxxxx/...') #7 {main} thrown in /home/xxxxxxxx/public_html/wp-includes/wp-db.php on line 1643
Based on various posts I found when digging online, I enabled (in cPanel’s “PHP Selector” section) the previously disabled PHP extensions ‘nd_mysqli’ and ‘nd_pdo_mysql’, and the problem went away. I suppose that WordPress ought to document this somewhere.
Thanks!
-
This reply was modified 6 years, 9 months ago by
celejar0. Reason: typo