How can I see the error message logs?

Issue Summary

I want to change rating.php in WooCommerce and I can’t see the error log message.

Troubleshooting Questions

  • Does this happen for all sites in Local, or just one in particular? Yes

  • Are you able to create a new, plain WordPress site in Local and access it in a Browser? Yes

Replication

Describe the steps that others can take to replicate this issue. If you have screenshots that can help clarify what is happening, please include them!

I used the log file from this post, but I don’t get any logs. How do I retrieve Local's log file?

I’m beginner to WordPress. I want to override rating.php file for WooCommerce. To do that, I put my file here Local Sites/furniture/app/public/wp-content/themes/hello-elementor/woocommerce/loop. And then I receive this error in front-end, but no error message in local-lightning.log

Also, I tried to add this configuration to wp-config.php:

// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG', true );

// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );

// Disable display of errors and warnings
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );

System Details

  • Which version of Local is being used? 5.10.5

  • What Operating System (OS) and OS version is being used? Ubuntu 20.04.2 LST

  • Attach the Local Log. See this Community Forum post for instructions on how to do so:
    local-lightning.log (294.3 KB)

Security Reminder

Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.