Code Errors

Home Forums Calendar Products Events Calendar PRO Code Errors

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1157020
    tuberb
    Participant

    I was asked to create a new support topic from this thread: https://theeventscalendar.com/support/forums/topic/possible-code-errors/.

    I am getting warnings in error logs relating to this:

    PHP Warning: Invalid argument supplied for foreach() in /home/…/public_html/wp-content/plugins/events-calendar-pro/src/Tribe/Recurrence/Meta.php on line 893

    For at least one of the sites I am seeing it for, the error is getting logged once a day around the same time each day; not sure what might be triggering that.

    When I look at the code in the script (Meta.php) I see this line:

    if ( ! empty( $recurrence_data[‘excluded-dates’] ) ) {
    foreach ( (array) $recurrence_data[‘excluded-dates’] as $date ) {
    self::add_date_exclusion_to_recurrence( $recurrence_meta, $date );
    }
    }

    Not sure if the (array) before $recurrence_data[‘excluded-dates’] is superfluous and might be the cause of the warning.

    Barry

    #1157382
    Cliff
    Member

    Hi. Sorry you’re experiencing this.

    I’d suggest following our recommended troubleshooting steps:

    Could you please make sure all your Modern Tribe plugins (and WordPress core) are at their latest versions?

    Once you verify you’re on the latest versions, please test to see if the issue is still happening for you.

    If it is, please follow our Testing for Conflicts Guide (basically switch to TwentySixteen theme and deactivate all plugins and custom code other than Modern Tribe plugins) and see if that helps narrow down the cause of this.

    If it doesn’t, please enable WP_DEBUG and WP_DEBUG_LOG and share any PHP errors you see while changing tickets quantity, navigating your site’s home page, events page, single-event pages, and any other of your site’s pages relevant to this ticket.

    Then, please share your System Information (while in Testing for Conflicts mode).

    You might also see if you can spot any console errors at your site. (If needed, you may reference our KB article Using Google Chrome Developer Tools.)

    Let us know what you find out.

    Thanks.

    #1158736
    ISANS
    Participant

    Hi. I don’t have a solution, just want to say I’m getting the same error: /wp-content/plugins/events-calendar-pro/src/Tribe/Recurrence/Meta.php on line 893. It’s been logging daily since early July.

    #1158913
    Cliff
    Member

    Hi Kristy.

    Thanks for sharing your feedback. Please follow the troubleshooting steps I provided, above, and if it’s still not working for you, please create your own thread so we can handle each user’s issue separately to make sure we fully resolve them.

    Barry, please let me know how things go for you.

    Thank you.

    #1167977
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Code Errors’ is closed to new replies.