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
/tmp
directory.WP_DEBUG_LOG: Enable WordPress debug mode to generate logs in the
/wp-content
directory.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.
Click on the Logs tab.
Use the dropdown menu to filter logs by status codes.
Click the Refresh button to load the most recent logs.
Note: If logs are not displaying, ensure that
WP_DEBUG_LOG
is 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
/tmp
folder.Inside
/tmp
, find thephp-errors
log file.
3. Enabling WP_DEBUG_LOG
Connect to your site via SFTP.
Locate and edit the
wp-config.php
file 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.log
file will be generated in the/wp-content
directory.
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.