Title: 502 error after activating plugin
Last modified: December 16, 2024

---

# 502 error after activating plugin

 *  Resolved [Derek Ashauer](https://wordpress.org/support/users/sccr410/)
 * (@sccr410)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/502-error-after-activating-plugin/)
 * Using LocalWP, nginx, PHP 8.2.23
 * After activating the plugin, the entire admin area is inaccessible giving a 502
   error. Enabling error logging returns no errors in the logs.
 * The frontend is accessible though.

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Support [dizzyatinnocraft](https://wordpress.org/support/users/dizzyatinnocraft/)
 * (@dizzyatinnocraft)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/502-error-after-activating-plugin/#post-18202262)
 * [@sccr410](https://wordpress.org/support/users/sccr410/) can you enable debug
   logging by adding:
 *     ```wp-block-code
       define('WP_DEBUG', true);define('WP_DEBUG_LOG', true);define('WP_DEBUG_DISPLAY', false);
       ```
   
 * to your wp-config.php, then check the `/path/to/wordpress/wp-content/debug.log`
   file?
 *  Thread Starter [Derek Ashauer](https://wordpress.org/support/users/sccr410/)
 * (@sccr410)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/502-error-after-activating-plugin/#post-18202265)
 * As mentioned, I already added logging and nothing appeared there.
 *  Plugin Support [dizzyatinnocraft](https://wordpress.org/support/users/dizzyatinnocraft/)
 * (@dizzyatinnocraft)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/502-error-after-activating-plugin/#post-18202287)
 * [@sccr410](https://wordpress.org/support/users/sccr410/) Apologies, I thought
   you meant webserver logs, not the debug.log file. Without an error message there’s
   not much I can do to help. You could add `define('MATOMO_SAFE_MODE', true);` 
   to your wp-config.php to try and get access to wp-admin again. Though if this
   bypasses the error, it won’t reveal the source of the original error. If it does
   bypass the error, you may be able to find more detail via the system report page(
   at `Matomo Analytics > Diagnostics`).
 * If you’re unable to see an error in any error log, the only other option to finding
   the cause would be to use a debugger or insert `echo` statements in the plugin
   to see where the error is (starting from the contents in `/path/to/wordpress/
   wp-content/plugins/matomo/matomo.php`).
 *  Plugin Support [dizzyatinnocraft](https://wordpress.org/support/users/dizzyatinnocraft/)
 * (@dizzyatinnocraft)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/502-error-after-activating-plugin/#post-18215715)
 * [@sccr410](https://wordpress.org/support/users/sccr410/) is this still something
   you are experiencing/looking into?
 *  Thread Starter [Derek Ashauer](https://wordpress.org/support/users/sccr410/)
 * (@sccr410)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/502-error-after-activating-plugin/#post-18216053)
 * I have not yet been able to try safe mode yet, will after the new year – thanks
   for checking
 *  Plugin Support [dizzyatinnocraft](https://wordpress.org/support/users/dizzyatinnocraft/)
 * (@dizzyatinnocraft)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/502-error-after-activating-plugin/#post-18277963)
 * I’m marking this as resolved due to a lack of response, however if you need more
   help or have an update, feel free to reply or create another issue.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘502 error after activating plugin’ is closed to new replies.

 * ![](https://ps.w.org/matomo/assets/icon-256x256.png?rev=3531741)
 * [Matomo Analytics - Powerful, Privacy-First Insights for WordPress](https://wordpress.org/plugins/matomo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/matomo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/matomo/)
 * [Active Topics](https://wordpress.org/support/plugin/matomo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/matomo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/matomo/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [dizzyatinnocraft](https://wordpress.org/support/users/dizzyatinnocraft/)
 * Last activity: [1 year, 4 months ago](https://wordpress.org/support/topic/502-error-after-activating-plugin/#post-18277963)
 * Status: resolved