• Resolved eubanksto

    (@eubanksto)


    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)
  • Hey @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? 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.
    Thread Starter eubanksto

    (@eubanksto)

    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

    (@eubanksto)

    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

    Hi @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

    (@eubanksto)

    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#

    ScreenShot Events

    Hi @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 ww.wp.xz.cn forum guidelines.

    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!

    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.