PHP Warning in src/Tribe/Recurrence/Meta.php on line 884

Home Forums Calendar Products Events Calendar PRO PHP Warning in src/Tribe/Recurrence/Meta.php on line 884

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

    I’ve been seeing these errors in our logs for a bit, and finally tracked it down:

    PHP Warning: Invalid argument supplied for foreach() in /var/www/wp-content/plugins/events-calendar-pro/src/Tribe/Recurrence/Meta.php on line 884

    I was able to trigger this by calling Tribe__Events__Pro__Recurrence__Meta::get_recurrence_for_event() on an event that had no exclusions saved in post meta. Once I saved an exclusion for that event, I was able to call that with no error. When I removed that exclusion, there appears to be an empty exclusion list stored in post meta, so the error is no longer shown.

    There should probably be a check to make sure that $recurrence_meta[ $rule_type ] is available when $rule_type is “exclusions”, similar to the one already done for “rules” just above.

    Screen Shot

    Thanks!

    #1097335
    Brook
    Participant

    Thank you Jeremy for the tip. I will see about getting some checks in there. Likely your event was created in an older version, which would have made this less likely to happen on our test systems prior to launch.

    If this continues giving you problems please let us know. Cheers!

    – Brook

    #1103479
    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 ‘PHP Warning in src/Tribe/Recurrence/Meta.php on line 884’ is closed to new replies.