Ay’, false)@ Ini\u set (‘display\u errors’, 0)\/\/ Use dev versions of core JS and CSS files (only needed if you are modifying these core files) define (‘script_debug’, true); The
If not activated when an error occurs, activate and wait 20 minutes. The most common \
Male 4 – although website and configuration testing sound basic, it is amazing how many developers forget to separate the testing environment from the actual website, causing problems in front of visitors. No matter where the test environment is located (local or dump server), ensure that the test environment is set up so that the real-time website matches the last point. It is recommended to use a dump server. 5.wpdb error reporting word press database error reporting is a tool used when using wpdb class to handle all database related problems. This will execute the query correctly and display a message with a debug error. The
Enabled. 6. server error log confirmation if you want to find the front-end code and query first, you can search for several hours. \
PHP enables error reporting and specifies where to save the error log, as follows: You can also configure the INI file. Error_reporting = e\u all | e\u strict error\u log = \/var\/log\/php\error Log php If you cannot access the ini (because the hosting provider thinks so), you can debug a PHP error that displays a white screen. Errors are often caused by misspelled functions or missing semicolons. Use the PHP code checker (or similar) to find and correct syntax errors. The
If the grammar is correct, it’s time to take out the big gun. You can use the IDE (such as phpstorm or eclipse) to partially separate the code to determine whether to perform actions that are logically incorrect (for example, redefining variables previously stored in strings). 8.script_debug this constant uses additional hard core \