Title: PHP Error in debug mode
Last modified: January 4, 2017

---

# PHP Error in debug mode

 *  Resolved [eubanksto](https://wordpress.org/support/users/eubanksto/)
 * (@eubanksto)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/php-error-in-debug-mode/)
 * I’ve enabled debug mode in wp-config.php and when the events calendar plugin 
   is enabled, I’m getting the following notice.
 * > Notice: Trying to get property of non-object in /home/nbchurch/public_html/
   > wp-includes/class-wp-query.php on line 2904
   > Notice: Trying to get property of non-object in /home/nbchurch/public_html/
   > wp-includes/class-wp-query.php on line 2910
   > Notice: Trying to get property of non-object in /home/nbchurch/public_html/
   > wp-includes/class-wp-query.php on line 2919
 * I don’t have any updates to perform to wordpress or events calendar but referencing
   the lines in the file mentioned, this is what each says:
 * 2904:
 * > if ( !$post_status_obj->public && ! in_array( $status, $q_status ) ) {
 * 2910:
 * > if ( $post_status_obj->protected ) {
 * 2919:
 * > } elseif ( $post_status_obj->private ) {
 * The following is the entire section in the php file that it’s referencing. Since
   it’s referring to post statuses, I checked the status of each of the 10 events
   in the calendar and they’re all set to “published” so nothing weird there.
 * > // If the post_status was specifically requested, let it pass through.
   >  if (!
   > $post_status_obj->public && ! in_array( $status, $q_status ) ) {
   >  if ( ! is_user_logged_in() ) {
   >  // User must be logged in to view unpublished
   > posts. $this->posts = array(); } else { if ( $post_status_obj->protected ) {//
   > User must have edit permissions on the draft to preview. if ( ! current_user_can(
   > $edit_cap, $this->posts[0]->ID) ) { $this->posts = array(); } else { $this-
   > >is_preview = true; if ( ‘future’ != $status ) $this->posts[0]->post_date =
   > current_time(‘mysql’); } } elseif ( $post_status_obj->private ) { if ( ! current_user_can(
   > $read_cap, $this->posts[0]->ID) ) $this->posts = array(); } else { $this->posts
   > = array(); } } }

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

 *  [shelbelliott](https://wordpress.org/support/users/shelbelliott/)
 * (@shelbelliott)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/php-error-in-debug-mode/#post-8634400)
 * Hey [@eubanksto](https://wordpress.org/support/users/eubanksto/),
 * Thanks for using The Events Calendar, I’m happy to help! In order to help, I 
   would like to get some more information from you, if I can:
 * -First, if you could please test for conflicts by following [this documentation](https://theeventscalendar.com/knowledgebase/testing-for-conflicts/)?
   Let me know what you find. This will help me determine how deeply we need to 
   look into the specific configuration of your site, or if this is a bug. 🙂
 * -Can you send me a link to your site so I can do some firsthand troubleshooting?
   I can often be more helpful in giving solutions to problems I can see and interact
   with.
 * -Finally, could you please send me your system information? You can get this 
   info by going to “Events > Help” in your WordPress dashboard, and then scrolling
   to the System Information section, and copying it.
 * Thanks!
    Shelby 🙂
    -  This reply was modified 9 years, 5 months ago by [shelbelliott](https://wordpress.org/support/users/shelbelliott/).
 *  Thread Starter [eubanksto](https://wordpress.org/support/users/eubanksto/)
 * (@eubanksto)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/php-error-in-debug-mode/#post-8666097)
 * Went through those steps. No theme or plugin conflicts or out of date plugins.
   
   But, I am getting this error in the console:
 * `Unexpected CSS token: :`
    on line 1011 which is: `filter: progid: DXImageTransform.
   Microsoft.gradient(startColorstr='#325f81', endColorstr='#3d87c0', GradientType
   =1);`
 * I was getting the error before I updated the calendar to its most recent version
   this last week but now I’m getting the following error in addition to the other
   one. This isn’t a “debug” error. It’s just in the top of the dashboard window.
   It wants me to update the filter bar but there isn’t an update for it.
    `The 
   following plugins are out of date: The Events Calendar: Filter Bar 4.3.4. All
   add-ons contain dependencies on The Events Calendar and will not function properly
   unless paired with the right version.`
 * Site link is NewBeginnings.Church
 * I allowed it to send that information to the Modern Tribes support team. Let 
   me know if I need to share the system info privately as well.
 *  Thread Starter [eubanksto](https://wordpress.org/support/users/eubanksto/)
 * (@eubanksto)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/php-error-in-debug-mode/#post-8666366)
 * I don’t know what changed for this to show up but now I see the following error
   on the front end when viewing the main calendar page:
 * `Notice: Undefined offset: 0 in /home/nbchurch/public_html/wp-content/plugins/
   the-events-calendar/src/Tribe/Asset/Bootstrap_Datepicker.php on line 15`
 *  [shelbelliott](https://wordpress.org/support/users/shelbelliott/)
 * (@shelbelliott)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/php-error-in-debug-mode/#post-8697368)
 * Hi [@eubanksto](https://wordpress.org/support/users/eubanksto/),
 * Sorry for the delay on this one! I believe this is related to a bug that we already
   have documented, and that should be fixed in an upcoming release. Have you noticed
   any adverse effects with the calendar’s function that you need help with in the
   meantime?
 * Best,
 * Shelby
 *  Thread Starter [eubanksto](https://wordpress.org/support/users/eubanksto/)
 * (@eubanksto)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/php-error-in-debug-mode/#post-8699114)
 * That’s good. Well actually, I purchased Events Calendar Pro so that I could have
   access to the shortcodes and advanced widgets. I assumed they would allow me 
   to put what is automatically created on the default events page on another page
   but I can’t get anything to remotely resemble that. I’m attaching an image of
   the events page that I’m talking about. I would like to be able to put this content
   in an actual page so that I could add more sections and content below the events
   list/calendar area.
 * _By the way, my “Calendar” link is a custom link of the regular events page but
   after making some “Filter” selections, I copied that link and made it the custom
   link in the menu so that when clicking the menu link “Calendar” it loads the 
   page with a filter already selected. [http://newbeginnings.church/calendar/list/?tribe\_eventcategory%5B%5D=63#](http://newbeginnings.church/calendar/list/?tribe_eventcategory%5B%5D=63#)_
 * ![ScreenShot Events](https://i0.wp.com/newbeginnings.church/wp-content/uploads/
   2017/01/SS.jpg)
 *  [Caroline](https://wordpress.org/support/users/tribecari/)
 * (@tribecari)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/php-error-in-debug-mode/#post-8717187)
 * Hi [@eubanksto](https://wordpress.org/support/users/eubanksto/),
 * Thanks for following up with some more information on what you’re trying to accomplish
   here! Unfortunately we are not able to provide support for premium plugins such
   as Events Calendar PRO here due to the [WordPress.org forum guidelines](http://codex.wordpress.org/Forum_Welcome).
 * Please do head over to the forums on our website, open a new thread and we’d 
   be happy to help you there. You can access our premium support forums by logging
   in to your account with us and submitting a post to the [the appropriate forum section here](https://theeventscalendar.com/support-forums/)!
 * Thanks so much, and we’ll see you there!

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

The topic ‘PHP Error in debug mode’ is closed to new replies.

 * ![](https://ps.w.org/the-events-calendar/assets/icon-256x256.gif?rev=2516440)
 * [The Events Calendar](https://wordpress.org/plugins/the-events-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-events-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-events-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/the-events-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-events-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-events-calendar/reviews/)

## Tags

 * [php-error](https://wordpress.org/support/topic-tag/php-error/)

 * 6 replies
 * 3 participants
 * Last reply from: [Caroline](https://wordpress.org/support/users/tribecari/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/php-error-in-debug-mode/#post-8717187)
 * Status: resolved