500 Error after updating recurring events

Home Forums Calendar Products Events Calendar PRO 500 Error after updating recurring events

Viewing 6 posts - 31 through 36 (of 36 total)
  • Author
    Posts
  • #1328325
    Matt Sloan
    Participant

    Thanks for the reply!

    My theme is actually dependant on Piklist. So, I switched to the default twentyseventeen theme, deactivated Piklist, and was able to successfully create a once-recurring event. I turned Piklist back on in the twentyseventeen theme and was able to successfully create another once-recurring event. However, once I switched my custom theme back on, I started getting 500 errors again. They were different this time, though. They were max-memory-size errors. When I expanded the memory size, I got timeout errors.

    Here are my stack traces:
    [31-Jul-2017 09:58:38 America/New_York] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 32 bytes) in /Users/jcolfer/Sites/carnes-crossroads/wp-content/plugins/events-calendar-pro/src/Tribe/Recurrence.php on line 131
    [31-Jul-2017 09:58:38 America/New_York] PHP Stack trace:
    [31-Jul-2017 09:58:38 America/New_York] PHP 1. {main}() /Users/jcolfer/Sites/carnes-crossroads/wp-admin/post.php:0
    [31-Jul-2017 09:58:38 America/New_York] PHP 2. edit_post() /Users/jcolfer/Sites/carnes-crossroads/wp-admin/post.php:193
    [31-Jul-2017 09:58:38 America/New_York] PHP 3. wp_update_post() /Users/jcolfer/Sites/carnes-crossroads/wp-admin/includes/post.php:378
    [31-Jul-2017 09:58:38 America/New_York] PHP 4. wp_insert_post() /Users/jcolfer/Sites/carnes-crossroads/wp-includes/post.php:3583
    [31-Jul-2017 09:58:38 America/New_York] PHP 5. do_action() /Users/jcolfer/Sites/carnes-crossroads/wp-includes/post.php:3510
    [31-Jul-2017 09:58:38 America/New_York] PHP 6. WP_Hook->do_action() /Users/jcolfer/Sites/carnes-crossroads/wp-includes/plugin.php:453
    [31-Jul-2017 09:58:38 America/New_York] PHP 7. WP_Hook->apply_filters() /Users/jcolfer/Sites/carnes-crossroads/wp-includes/class-wp-hook.php:323
    [31-Jul-2017 09:58:38 America/New_York] PHP 8. call_user_func_array:{/Users/jcolfer/Sites/carnes-crossroads/wp-includes/class-wp-hook.php:300}() /Users/jcolfer/Sites/carnes-crossroads/wp-includes/class-wp-hook.php:300
    [31-Jul-2017 09:58:38 America/New_York] PHP 9. Tribe__Events__Main->addEventMeta() /Users/jcolfer/Sites/carnes-crossroads/wp-includes/class-wp-hook.php:300
    [31-Jul-2017 09:58:38 America/New_York] PHP 10. Tribe__Events__Meta__Save->maybe_save() /Users/jcolfer/Sites/carnes-crossroads/wp-content/plugins/the-events-calendar/src/Tribe/Main.php:3014
    [31-Jul-2017 09:58:38 America/New_York] PHP 11. Tribe__Events__Meta__Save->save() /Users/jcolfer/Sites/carnes-crossroads/wp-content/plugins/the-events-calendar/src/Tribe/Meta/Save.php:153
    [31-Jul-2017 09:58:38 America/New_York] PHP 12. Tribe__Events__API::saveEventMeta() /Users/jcolfer/Sites/carnes-crossroads/wp-content/plugins/the-events-calendar/src/Tribe/Meta/Save.php:121
    [31-Jul-2017 09:58:38 America/New_York] PHP 13. do_action() /Users/jcolfer/Sites/carnes-crossroads/wp-content/plugins/the-events-calendar/src/Tribe/API.php:176
    [31-Jul-2017 09:58:38 America/New_York] PHP 14. WP_Hook->do_action() /Users/jcolfer/Sites/carnes-crossroads/wp-includes/plugin.php:453
    [31-Jul-2017 09:58:38 America/New_York] PHP 15. WP_Hook->apply_filters() /Users/jcolfer/Sites/carnes-crossroads/wp-includes/class-wp-hook.php:323
    [31-Jul-2017 09:58:38 America/New_York] PHP 16. call_user_func_array:{/Users/jcolfer/Sites/carnes-crossroads/wp-includes/class-wp-hook.php:298}() /Users/jcolfer/Sites/carnes-crossroads/wp-includes/class-wp-hook.php:298
    [31-Jul-2017 09:58:38 America/New_York] PHP 17. Tribe__Events__Pro__Recurrence__Meta::updateRecurrenceMeta() /Users/jcolfer/Sites/carnes-crossroads/wp-includes/class-wp-hook.php:298
    [31-Jul-2017 09:58:38 America/New_York] PHP 18. Tribe__Events__Pro__Recurrence__Events_Saver->save_events() /Users/jcolfer/Sites/carnes-crossroads/wp-content/plugins/events-calendar-pro/src/Tribe/Recurrence/Meta.php:549
    [31-Jul-2017 09:58:38 America/New_York] PHP 19. Tribe__Events__Pro__Recurrence->getDates() /Users/jcolfer/Sites/carnes-crossroads/wp-content/plugins/events-calendar-pro/src/Tribe/Recurrence/Events_Saver.php:61
    [31-Jul-2017 09:58:38 America/New_York] PHP 20. Tribe__Events__Pro__Recurrence->getNextDate() /Users/jcolfer/Sites/carnes-crossroads/wp-content/plugins/events-calendar-pro/src/Tribe/Recurrence.php:76

    and

    31-Jul-2017 09:42:17 America/New_York] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /Users/jcolfer/Sites/carnes-crossroads/wp-content/plugins/events-calendar-pro/src/Tribe/Recurrence.php on line 131
    [31-Jul-2017 09:42:17 America/New_York] PHP Stack trace:
    [31-Jul-2017 09:42:17 America/New_York] PHP 1. {main}() /Users/jcolfer/Sites/carnes-crossroads/wp-admin/post.php:0
    [31-Jul-2017 09:42:17 America/New_York] PHP 2. edit_post() /Users/jcolfer/Sites/carnes-crossroads/wp-admin/post.php:193
    [31-Jul-2017 09:42:17 America/New_York] PHP 3. wp_update_post() /Users/jcolfer/Sites/carnes-crossroads/wp-admin/includes/post.php:378
    [31-Jul-2017 09:42:17 America/New_York] PHP 4. wp_insert_post() /Users/jcolfer/Sites/carnes-crossroads/wp-includes/post.php:3583
    [31-Jul-2017 09:42:17 America/New_York] PHP 5. do_action() /Users/jcolfer/Sites/carnes-crossroads/wp-includes/post.php:3510
    [31-Jul-2017 09:42:17 America/New_York] PHP 6. WP_Hook->do_action() /Users/jcolfer/Sites/carnes-crossroads/wp-includes/plugin.php:453
    [31-Jul-2017 09:42:17 America/New_York] PHP 7. WP_Hook->apply_filters() /Users/jcolfer/Sites/carnes-crossroads/wp-includes/class-wp-hook.php:323
    [31-Jul-2017 09:42:17 America/New_York] PHP 8. call_user_func_array:{/Users/jcolfer/Sites/carnes-crossroads/wp-includes/class-wp-hook.php:300}() /Users/jcolfer/Sites/carnes-crossroads/wp-includes/class-wp-hook.php:300
    [31-Jul-2017 09:42:17 America/New_York] PHP 9. Tribe__Events__Main->addEventMeta() /Users/jcolfer/Sites/carnes-crossroads/wp-includes/class-wp-hook.php:300
    [31-Jul-2017 09:42:17 America/New_York] PHP 10. Tribe__Events__Meta__Save->maybe_save() /Users/jcolfer/Sites/carnes-crossroads/wp-content/plugins/the-events-calendar/src/Tribe/Main.php:3020
    [31-Jul-2017 09:42:17 America/New_York] PHP 11. Tribe__Events__Meta__Save->save() /Users/jcolfer/Sites/carnes-crossroads/wp-content/plugins/the-events-calendar/src/Tribe/Meta/Save.php:153
    [31-Jul-2017 09:42:17 America/New_York] PHP 12. Tribe__Events__API::saveEventMeta() /Users/jcolfer/Sites/carnes-crossroads/wp-content/plugins/the-events-calendar/src/Tribe/Meta/Save.php:121
    [31-Jul-2017 09:42:17 America/New_York] PHP 13. do_action() /Users/jcolfer/Sites/carnes-crossroads/wp-content/plugins/the-events-calendar/src/Tribe/API.php:176
    [31-Jul-2017 09:42:17 America/New_York] PHP 14. WP_Hook->do_action() /Users/jcolfer/Sites/carnes-crossroads/wp-includes/plugin.php:453
    [31-Jul-2017 09:42:17 America/New_York] PHP 15. WP_Hook->apply_filters() /Users/jcolfer/Sites/carnes-crossroads/wp-includes/class-wp-hook.php:323
    [31-Jul-2017 09:42:17 America/New_York] PHP 16. call_user_func_array:{/Users/jcolfer/Sites/carnes-crossroads/wp-includes/class-wp-hook.php:298}() /Users/jcolfer/Sites/carnes-crossroads/wp-includes/class-wp-hook.php:298
    [31-Jul-2017 09:42:17 America/New_York] PHP 17. Tribe__Events__Pro__Recurrence__Meta::updateRecurrenceMeta() /Users/jcolfer/Sites/carnes-crossroads/wp-includes/class-wp-hook.php:298
    [31-Jul-2017 09:42:17 America/New_York] PHP 18. Tribe__Events__Pro__Recurrence__Events_Saver->save_events() /Users/jcolfer/Sites/carnes-crossroads/wp-content/plugins/events-calendar-pro/src/Tribe/Recurrence/Meta.php:563
    [31-Jul-2017 09:42:17 America/New_York] PHP 19. Tribe__Events__Pro__Recurrence->getDates() /Users/jcolfer/Sites/carnes-crossroads/wp-content/plugins/events-calendar-pro/src/Tribe/Recurrence/Events_Saver.php:61
    [31-Jul-2017 09:42:17 America/New_York] PHP 20. Tribe__Events__Pro__Recurrence->getNextDate() /Users/jcolfer/Sites/carnes-crossroads/wp-content/plugins/events-calendar-pro/src/Tribe/Recurrence.php:76

    #1328607
    Victor
    Keymaster

    Hello Matt!

    Thanks for following up with this.

    I’ve just realised I forgot to mention that I can reproduce the first error when updating the recurring event, not creating it. so, could you please try updating the event with the Piklist plugin activated to see if you get the same issue as before?

    If you can confirm this behaviour, then it means there is a conflict with the Piklist plugin, so we’ll have a closer inspection to it and see if we can find the root cause of the problem and see if we can come up with a workaround.

    Those new out of memory and max execution time errors seem to be something different, but might be of similar causes.

    Let us know how it goes.

    Thanks,
    Victor

    #1328712
    Matt Sloan
    Participant

    Thanks for your reply. I switched back to the default twentyseventeen theme, deactivated the Piklist plugin, and successfully updated an existing recurring event. I re-activated the Piklist plugin and then tried to update an existing recurring event (still in the default theme), and I got the 500 error. The stack trace is like the earlier ones:

    [01-Aug-2017 12:41:43 UTC] PHP Catchable fatal error: Argument 1 passed to Tribe__Events__Pro__Recurrence__Series_Rules_Factory::build_from() must be of the type array, string given, called in /Users/jcolfer/Sites/carnes-crossroads/wp-content/plugins/events-calendar-pro/src/Tribe/Recurrence/Meta.php on line 1060 and defined in /Users/jcolfer/Sites/carnes-crossroads/wp-content/plugins/events-calendar-pro/src/Tribe/Recurrence/Series_Rules_Factory.php on line 32
    [01-Aug-2017 12:41:43 UTC] PHP Stack trace:
    [01-Aug-2017 12:41:43 UTC] PHP 1. {main}() /Users/jcolfer/Sites/carnes-crossroads/wp-admin/post.php:0
    [01-Aug-2017 12:41:43 UTC] PHP 2. edit_post($post_data = *uninitialized*) /Users/jcolfer/Sites/carnes-crossroads/wp-admin/post.php:193
    [01-Aug-2017 12:41:43 UTC] PHP 3. wp_update_post($postarr = *uninitialized*, $wp_error = *uninitialized*) /Users/jcolfer/Sites/carnes-crossroads/wp-admin/includes/post.php:378
    [01-Aug-2017 12:41:43 UTC] PHP 4. wp_insert_post($postarr = *uninitialized*, $wp_error = *uninitialized*) /Users/jcolfer/Sites/carnes-crossroads/wp-includes/post.php:3583
    [01-Aug-2017 12:41:43 UTC] PHP 5. do_action($tag = *uninitialized*, $arg = *uninitialized*, *uninitialized*, *uninitialized*) /Users/jcolfer/Sites/carnes-crossroads/wp-includes/post.php:3484
    [01-Aug-2017 12:41:43 UTC] PHP 6. WP_Hook->do_action($args = *uninitialized*) /Users/jcolfer/Sites/carnes-crossroads/wp-includes/plugin.php:453
    [01-Aug-2017 12:41:43 UTC] PHP 7. WP_Hook->apply_filters($value = *uninitialized*, $args = *uninitialized*) /Users/jcolfer/Sites/carnes-crossroads/wp-includes/class-wp-hook.php:323
    [01-Aug-2017 12:41:43 UTC] PHP 8. call_user_func_array:{/Users/jcolfer/Sites/carnes-crossroads/wp-includes/class-wp-hook.php:300}(*uninitialized*, *uninitialized*) /Users/jcolfer/Sites/carnes-crossroads/wp-includes/class-wp-hook.php:300
    [01-Aug-2017 12:41:43 UTC] PHP 9. wp_save_post_revision($post_id = *uninitialized*) /Users/jcolfer/Sites/carnes-crossroads/wp-includes/class-wp-hook.php:300
    [01-Aug-2017 12:41:43 UTC] PHP 10. _wp_put_post_revision($post = *uninitialized*, $autosave = *uninitialized*) /Users/jcolfer/Sites/carnes-crossroads/wp-includes/revision.php:186
    [01-Aug-2017 12:41:43 UTC] PHP 11. wp_insert_post($postarr = *uninitialized*, $wp_error = *uninitialized*) /Users/jcolfer/Sites/carnes-crossroads/wp-includes/revision.php:300
    [01-Aug-2017 12:41:43 UTC] PHP 12. do_action($tag = *uninitialized*, $arg = *uninitialized*, *uninitialized*, *uninitialized*) /Users/jcolfer/Sites/carnes-crossroads/wp-includes/post.php:3510
    [01-Aug-2017 12:41:43 UTC] PHP 13. WP_Hook->do_action($args = *uninitialized*) /Users/jcolfer/Sites/carnes-crossroads/wp-includes/plugin.php:453
    [01-Aug-2017 12:41:43 UTC] PHP 14. WP_Hook->apply_filters($value = *uninitialized*, $args = *uninitialized*) /Users/jcolfer/Sites/carnes-crossroads/wp-includes/class-wp-hook.php:323
    [01-Aug-2017 12:41:43 UTC] PHP 15. call_user_func_array:{/Users/jcolfer/Sites/carnes-crossroads/wp-includes/class-wp-hook.php:300}(*uninitialized*, *uninitialized*) /Users/jcolfer/Sites/carnes-crossroads/wp-includes/class-wp-hook.php:300
    [01-Aug-2017 12:41:43 UTC] PHP 16. Tribe__Events__Main->addEventMeta($postId = *uninitialized*, $post = *uninitialized*) /Users/jcolfer/Sites/carnes-crossroads/wp-includes/class-wp-hook.php:300
    [01-Aug-2017 12:41:43 UTC] PHP 17. Tribe__Events__Revisions__Event->save() /Users/jcolfer/Sites/carnes-crossroads/wp-content/plugins/the-events-calendar/src/Tribe/Main.php:3006
    [01-Aug-2017 12:41:43 UTC] PHP 18. Tribe__Events__Meta__Save->save() /Users/jcolfer/Sites/carnes-crossroads/wp-content/plugins/the-events-calendar/src/Tribe/Revisions/Event.php:32
    [01-Aug-2017 12:41:43 UTC] PHP 19. Tribe__Events__API::saveEventMeta($event_id = *uninitialized*, $data = *uninitialized*, $event = *uninitialized*) /Users/jcolfer/Sites/carnes-crossroads/wp-content/plugins/the-events-calendar/src/Tribe/Meta/Save.php:121
    [01-Aug-2017 12:41:43 UTC] PHP 20. do_action($tag = *uninitialized*, $arg = *uninitialized*, *uninitialized*) /Users/jcolfer/Sites/carnes-crossroads/wp-content/plugins/the-events-calendar/src/Tribe/API.php:176
    [01-Aug-2017 12:41:43 UTC] PHP 21. WP_Hook->do_action($args = *uninitialized*) /Users/jcolfer/Sites/carnes-crossroads/wp-includes/plugin.php:453
    [01-Aug-2017 12:41:43 UTC] PHP 22. WP_Hook->apply_filters($value = *uninitialized*, $args = *uninitialized*) /Users/jcolfer/Sites/carnes-crossroads/wp-includes/class-wp-hook.php:323
    [01-Aug-2017 12:41:43 UTC] PHP 23. call_user_func_array:{/Users/jcolfer/Sites/carnes-crossroads/wp-includes/class-wp-hook.php:298}(*uninitialized*, *uninitialized*) /Users/jcolfer/Sites/carnes-crossroads/wp-includes/class-wp-hook.php:298
    [01-Aug-2017 12:41:43 UTC] PHP 24. Tribe__Events__Pro__Recurrence__Meta::updateRecurrenceMeta($event_id = *uninitialized*, $data = *uninitialized*) /Users/jcolfer/Sites/carnes-crossroads/wp-includes/class-wp-hook.php:298
    [01-Aug-2017 12:41:43 UTC] PHP 25. Tribe__Events__Pro__Recurrence__Events_Saver->save_events() /Users/jcolfer/Sites/carnes-crossroads/wp-content/plugins/events-calendar-pro/src/Tribe/Recurrence/Meta.php:549
    [01-Aug-2017 12:41:43 UTC] PHP 26. Tribe__Events__Pro__Recurrence__Meta::get_recurrence_for_event($event_id = *uninitialized*) /Users/jcolfer/Sites/carnes-crossroads/wp-content/plugins/events-calendar-pro/src/Tribe/Recurrence/Events_Saver.php:45
    [01-Aug-2017 12:41:43 UTC] PHP 27. Tribe__Events__Pro__Recurrence__Series_Rules_Factory->build_from($recurrence = *uninitialized*, $rule_type = *uninitialized*) /Users/jcolfer/Sites/carnes-crossroads/wp-content/plugins/events-calendar-pro/src/Tribe/Recurrence/Meta.php:1060

    #1329697
    Victor
    Keymaster

    Hello Matt!

    Thanks for confirming that with me.

    While I’m not sure about the specifics, we certainly have a conflict with the Piklist plugin, so I have logged a report about this conflict and linked it to this thread as a reference. Our dev team will address it in the future to see if they can come up with a fix for this conflict.

    Unfortunately, I cannot commit to a date as it’s on the developer’s hand now. But rest assured we will let you know as soon as we have a resolution.

    In the meantime, the only workaround I could find so far was deactivating the Piklist plugin. I know this might not be ideal for you case if your site depends on its functionality, but that’s the only way I could find to prevent the fatal errors from occurring.

    Let me know if you have other questions.

    Best,
    Victor

    #1374995
    Victor
    Keymaster

    Hello Matt!

    Just wanted to share with you that a new maintenance release (for the Week of 1st November 2017) is out, including a fix for this issue, preventing the Fatal errors from occurring when Piklist plugin is active.

    Find out more about this release → https://theeventscalendar.com/maintenance-release-for-the-week-of-1-november-2017/

    Please note that this fix might not be perfect yet, because we still encounter problems when updates to the recurrence won’t “stick” when the Piklist plugin is active.

    We will still be working towards completely solving this.

    Please update the plugins and let us know if the fix works for your site.

    Best,
    Victor

    #1391551
    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 6 posts - 31 through 36 (of 36 total)
  • The topic ‘500 Error after updating recurring events’ is closed to new replies.