Title: Errors with Content Control
Last modified: January 31, 2019

---

# Errors with Content Control

 *  Resolved [steplab](https://wordpress.org/support/users/steplab/)
 * (@steplab)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/errors-with-content-control/)
 * I have debug.log full of there errors:
    PHP Notice: Trying to get property of
   non-object in …/wp-content/plugins/content-control/classes/Site/Posts.php on 
   line 23 PHP Notice: Trying to get property of non-object in …/wp-content/plugins/
   content-control/classes/Site/Posts.php on line 24 PHP Notice: Trying to get property
   of non-object in …/wp-content/plugins/content-control/classes/Site/Posts.php 
   on line 27
 * Some times when loading a page that have sidebar with widgets with Content Control
   filters I get error like server internal error or bad gateway error.
 * Wordpress version is 4.9.9

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

 *  Plugin Author [Daniel Iser](https://wordpress.org/support/users/danieliser/)
 * (@danieliser)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/errors-with-content-control/#post-11155001)
 * [@steplab](https://wordpress.org/support/users/steplab/) – Thanks for the report,
   will see if anything on those lines jumps out at me.
 * Can you tell me what you have it set up to do currently so I can try to duplicate
   it as close as possible?
 *  Thread Starter [steplab](https://wordpress.org/support/users/steplab/)
 * (@steplab)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/errors-with-content-control/#post-11156397)
 * I have a page template with a sidebar, inside the sidebar I have 4 widget element
   of Login-Logout widget, the first is for logged out users, second is for logged
   in users with role Customer, the third is for logged in and three roles (Instructor,
   Shop Manager, Vendor), the fourth is for a custom role I created.
    Inside same
   sidebar I have also a Menu widget only for logged in user for Customer role. 
   Users can have one or more than one role. In particular I have plugins like Woocommerce,
   Yith Multi Vendor, LearnPress. Thanks

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

The topic ‘Errors with Content Control’ is closed to new replies.

 * ![](https://ps.w.org/content-control/assets/icon-256x256.gif?rev=2968535)
 * [Content Control - The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More](https://wordpress.org/plugins/content-control/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/content-control/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/content-control/)
 * [Active Topics](https://wordpress.org/support/plugin/content-control/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/content-control/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/content-control/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [steplab](https://wordpress.org/support/users/steplab/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/errors-with-content-control/#post-11156397)
 * Status: resolved