Last active
November 25, 2022 06:48
-
-
Save rwp0/51182bad5592e3df8ad8101108b15f97 to your computer and use it in GitHub Desktop.
Enable WordPress / PHP Debugging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# put on top at wp-config.php | |
define('WP_DEBUG', true); | |
define('WP_DEBUG_DISPLAY', true); | |
define( 'WP_DEBUG_LOG', true ); | |
ini_set('display_errors', 'True'); // on screen | |
ini_set('error_reporting', E_ALL); | |
# There has been a critical error on this website. | |
# Learn more about troubleshooting WordPress. | |
# Fatal error: Uncaught Error: Call to undefined function mysql_connect() in <PATH>/wp-includes/wp-db.php:1785 | |
# Stack trace: #0 <PATH>/wp-includes/wp-db.php(724): wpdb->db_connect() #1 <PATH>/wp-includes/load.php(561): wpdb->__construct('db022658', 'Saei2Gopu!27', 'db022658', 'localhost') #2 <PATH>/wp-settings.php(124): require_wp_db() #3 <PATH>/wp-config.php(116): require_once('<path>') #4 <PATH>/wp-load.php(50): require_once('<path>') #5 <PATH>/wp-blog-header.php(13): require_once('<PATH>') #6 <PATH>/index.php(17): require('<PATH>') #7 {main} thrown in <PATH>/wp-includes/wp-db.php on line 1785 | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment