• Hi,

    First of all, thanks for the great plugin.
    We’re running into an issue with the latest version of Events Calendar Pro and Event Calendar Newsletter. Hitting Generate results in an ‘error’ message, looking at the ajax request it’s returning a 500 error.

    In our server logs I’m seeing:

    Got error 'PHP message: PHP Fatal error:  Uncaught TypeError: Return value of TEC\\Events_Pro\\Custom_Tables\\V1\\Updates\\Controller::add_off_pattern_flag_to_rule() must be of the type array, string returned in ****/wp-content/plugins/events-calendar-pro/src/Events_Pro/Custom_Tables/V1/Traits/With_Event_Recurrence.php:430\nStack trace:\n#0 ****/wp-content/plugins/events-calendar-pro/src/Events_Pro/Custom_Tables/V1/Traits/With_Event_Recurrence.php(495): TEC\\Events_Pro\\Custom_Tables\\V1\\Updates\\Controller->add_off_pattern_flag_to_rule()\n#1 [internal function]: TEC\\Events_Pro\\Custom_Tables\\V1\\Updates\\Controller->TEC\\Events_Pro\\Custom_Tables\\V1\\Traits\\{closure}()\n#2 ****/wp-content/plugins/events-calendar-pro/src/Events_Pro/Custom_Tables/V1/Traits/With_Event_Recurrence.php(496): array_map()\n#3 ****/wp-content/plugins/events-calendar-pro/src/Events_Pro/Custom_Tables/...', referer: https://stage.****.com/wp-admin/admin.php?page=eventcalendarnewsletter

    If deactivate Events Calendar Pro, I’m able to Generate newsletter HTML.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Brian Hogg

    (@brianhogg)

    Hi @manwithpowers ,

    Glad you’re enjoying the plugin!

    I’m not able to replicate the error with Events Calendar PRO and a recurring event, so it might be something specific to the events you have on your site and the recurring event rules. I’ve sent a message to the team over at The Events Calendar to see if they’re able to put in a fix, as it looks like that “string” return value should actually be allowed (according to their documentation near it). Hopefully they can put in a fix soon but it might also be worth sending a message to their support team:

    https://theeventscalendar.com/support/

    Cheers!

    Thread Starter manwithpowers

    (@manwithpowers)

    Will do, thanks for the speedy reply!

    Plugin Author Brian Hogg

    (@brianhogg)

    From the team at The Events Calendar, it looks like it could be some malformed data in _EventRecurrence for the event(s) that are being returned (ie. SELECT post_id, meta_value FROM wp_postmeta WHERE meta_key = '_EventRecurrence' ). The output from that might shed some light (ideally narrowed down to the post_ids or the event IDs that you think should be returned for the newsletter), if you’re comfortable getting data from your database directly.

    I’ll try to loop them in here, or if you do contact their support, feel free to point them to this thread.

    Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘500 Error’ is closed to new replies.