How to Access WordPress Logs on Your Site
Overview
Accessing WordPress logs is essential for diagnosing and resolving issues on your website. BionicWP provides multiple methods to access these logs, allowing you to troubleshoot errors effectively.
How It Works
BionicWP offers several avenues to access your site's logs:
BionicWP Control Panel Logs: View logs directly from your site's dashboard.
php-errors Log: Access error logs via SFTP in the
/tmpdirectory.WP_DEBUG_LOG: Enable WordPress debug mode to generate logs in the
/wp-contentdirectory.WooCommerce Logs: For WooCommerce sites, access logs in
/wp-content/uploads/wc-logs.
Step-by-Step Instructions
1. BionicWP Control Panel Logs
Log into your BionicWP dashboard at my.bionicwp.com.
Navigate to “Sites” and select the site you wish to inspect.
Go to Advanced tab and scroll down to the Logs area.
Select the types of logs displayed under Logs area from the following;
Activity logs
PHP Logs
Web Logs
Click the Refresh button to load the most recent logs.
Note: If logs are not displaying, ensure that
WP_DEBUG_LOGis not enabled, as it can interfere with the control panel's log reporting.
2. Accessing php-errors Log via SFTP
Connect to your site via SFTP.
Navigate to the parent directory above
/htdocs.Locate the
/tmpfolder.Inside
/tmp, find thephp-errorslog file.
3. Enabling WP_DEBUG_LOG
Connect to your site via SFTP.
Locate and edit the
wp-config.phpfile in your site's root directory.Find the line:
define( 'WP_DEBUG', false );Replace it with:
define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); define( 'WP_DEBUG_DISPLAY', false );Save the file.
The
debug.logfile will be generated in the/wp-contentdirectory.
4. Accessing WooCommerce Logs
Connect to your site via SFTP.
Navigate to
/wp-content/uploads/wc-logs.Access the relevant WooCommerce log files for troubleshooting.
Pro Tip: Regularly monitoring your site's logs can help you proactively identify and resolve issues, ensuring optimal performance and user experience.
