WPIntell

Source evidence

500 Error

Event Calendar Newsletter · support · 2023-01-05T12:29:00+00:00

complaintsentiment
highseverity
1.0relevance
3replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

4 / 32 rows with source links

12.5% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

28 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
manwithpowers unresolved
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. 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! Will do, thanks for the speedy reply! 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!

Comments

3 shown
Brian Hogg 2023-01-05T12:51:00+00:00

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!

manwithpowers 2023-01-05T12:53:00+00:00

Will do, thanks for the speedy reply!

Brian Hogg 2023-01-05T17:48:00+00:00

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!