Bug in Recurrence/Meta

Home Forums Calendar Products Events Calendar PRO Bug in Recurrence/Meta

  • This topic has 3 replies, 4 voices, and was last updated 9 years ago by Patricia OHara.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1252662
    Patricia OHara
    Participant

    I am consistently getting this error in my logs:

    [10-Mar-2017 20:54:32 UTC] PHP Notice: Array to string conversion in …/wp-content/plugins/events-calendar-pro/src/Tribe/Recurrence/Meta.php on line 1508

    Ive tracked it down to this line in the code:
    lines 1389/1390
    `$days_of_week = implode( ‘, ‘, $weekdays );
    $days_of_week = preg_replace( ‘/(.*),/’, ‘$1, ‘ . $date_strings[‘collection_joiner’], $weekdays );`

    You are converting to string and the referring to the $weekdays array which make $days_of_week an array again.

    Should the second line be?
    $days_of_week = preg_replace( '/(.*),/', '$1, ' . $date_strings['collection_joiner'], $days_of_week );

    Thanks

    #1252746
    Cliff
    Member

    Hi, Patty.

    Thanks so much for this detailed report.

    Could you please specify how/when you’re able to recreate this issue? For example, is it when you initially create a new recurring event via wp-admin or Community Events form or maybe some other action?

    #1263041
    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 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Bug in Recurrence/Meta’ is closed to new replies.