WP_DEBUG_LOG: When enabled, WordPress writes error messages to a file called debug.log, located in the wp-content directory of the site
WP DEBUG DISPLAY: Checks whether error messages are displayed on WordPress pages or not.
When debugging a staging or development site, it is useful to show an error message where they are generated; however, when debugging a production site, disable this option and use the debug log instead
SCRIPT DEBUG: This option instructs WordPress to use unminified CSS and JavaScript files to find bugs in front-end code.
SAVEQUERIES: This option saves database queries to a PHP array, which can be viewed on a page or accessed in code. Do not forget to turn off this option after debugging because enabling it can severely degrade your site’s performance. Follow these steps to debug WordPress with WordPress Toolkit
- Log in to cPanel. Please see this article if you do not know how to log into your cPanel
- cPanel ->> Domains - WordPress Toolkit icon
- Open WordPress Toolkit: This page opens with a list of installed WordPress sites.
- From the WordPress Toolkit page, Select a site in the WordPress Toolkit interface and click on the Debug option in the Tools section to enable debug mode.
- Under a site listing header, under Status, click Check Security.
- After choosing debugging options, click the OK button
- The scanning of your website begins, and WordPress will start logging errors. If you have WP DEBUG LOG enabled, you can view errors logged in the file manager by navigating to your WordPress site’s wp-content directory and opening debug.log.The toolkit displays a list of issues and suggests improvements once the scan is complete
- Check the box next to the issue, and then click Secure.
- In the WordPress Toolkit interface, select a site
- Click on the Plugins tab.
- The plugins table contains an option that activates and deactivates individual plugins.
- Deactivate the plugins one by one and check if the issue is resolved.
- Once the culprit is found, check the box next to the plugin and click the remove button to uninstall
- Open WordPress Toolkit
- Navigate to the site you want to debug.
- Click the switch in the lower right corner of the interface to enable maintenance mode.
- Click the adjacent configuration icon to configure the maintenance mode page
- Make your changes, and then click the preview button to make sure everything is in order.
- Launch the backup/restore tool for the site you want to repair.
- Select a recent backup from the list
- Click the restore button.