Title: Invariant Violation
Last modified: April 6, 2020

---

# Invariant Violation

 *  [Michel Jongbloed](https://wordpress.org/support/users/michel-jongbloed/)
 * (@michel-jongbloed)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/invariant-violation/)
 * I get the following error when opening the Products page on my WooCommerce server:
 *     ```
       Uncaught Error: Invariant Violation: AdminBarNav.render(): A valid ReactComponent must be returned. You may have returned undefined, an array or some other invalid object.
           at r (main.min.js?ver=5.4:5)
           at p._renderValidatedComponent (main.min.js?ver=5.4:2)
           at p.ReactCompositeComponent__renderValidatedComponent [as _renderValidatedComponent] (main.min.js?ver=5.4:4)
           at p._updateRenderedComponent (main.min.js?ver=5.4:2)
           at p._performComponentUpdate (main.min.js?ver=5.4:2)
           at p.updateComponent (main.min.js?ver=5.4:2)
           at p.ReactCompositeComponent_updateComponent [as updateComponent] (main.min.js?ver=5.4:4)
           at performUpdateIfNecessary (main.min.js?ver=5.4:2)
           at Object.performUpdateIfNecessary (main.min.js?ver=5.4:4)
           at s (main.min.js?ver=5.4:4)
       ```
   
 * When I deactivate the WP Log Viewer the error message is gone.

The topic ‘Invariant Violation’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-log-viewer_75add2.svg)
 * [WP Log Viewer](https://wordpress.org/plugins/wp-log-viewer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-log-viewer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-log-viewer/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-log-viewer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-log-viewer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-log-viewer/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Michel Jongbloed](https://wordpress.org/support/users/michel-jongbloed/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/invariant-violation/)
 * Status: not resolved