Call to undefined method WP_Error::getNextDate()

Home Forums Calendar Products Events Calendar PRO Call to undefined method WP_Error::getNextDate()

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1072569
    Danial Bleile
    Participant

    I’m seeing the following fatal error in our PHP logs:

    PHP Fatal error: Call to undefined method WP_Error::getNextDate() in /var/www/wp-content/plugins/events-calendar-pro/src/Tribe/Recurrence.php on line 119

    In Tribe__Events__Pro__Recurrence, getNextDate includes the following:

    $next_date = $this->series_rules->getNextDate( $current_date );

    It’s possible via Tribe__Events__Pro__Recurrence__Series_Rules_Factory, build_rule_for_type() that $this->series_rules is actually a WP_Error instance, which would cause this fatal error.

    I’m not sure what caused the issue or how to reproduce it, but the chain of events appears valid.

    #1073223
    George
    Participant

    Hey @wsuwebcommunications,

    Thanks for reporting this error! I’m not quite sure why this would arise either, and cannot recreate it on my own site (and I don’t see it in my error logs), but this is something I can definitely create a bug ticket out of for further investigation.

    To that end, would you mind sharing your “System Information” here so we can have a better picture of your site’s environment? Here’s how to share that information → https://theeventscalendar.com/knowledgebase/sharing-sys-info/

    Thank you!
    George

    #1083892
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Call to undefined method WP_Error::getNextDate()’ is closed to new replies.