Problem with the Recurrence Scheduler

Home Forums Calendar Products Events Calendar PRO Problem with the Recurrence Scheduler

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1328168
    David
    Participant

    Hi,
    I had a problem that affects the correct creation of the future recurring events. The next events were created each day on the execution of the “tribe-recurrence-cron”, but without the category term and the full set of custom fields.

    Searching for an error in the log file, I found this: Uncaught InvalidArgumentException: Event with ID [7592] is not parent of event with ID [8450] in /srv/www/site.com/current/web/app/plugins/events-calendar-pro/src/Tribe/Integrations/WPML/Event_Listener.php:122 and similar ones (with different IDs) repeated almost every day.

    Debugging the events-calendar-pro/src/Tribe/Recurrence/Instance.php I found that at the line 109, the action “tribe_events_pro_recurring_event_instance_inserted” passes $this->post_id and $this->parent_id parameters, but the first one is an INT, the second one a STRING.

    The execution stops with an error, right before running:

    $this->copy_meta();
    $this->set_terms(); 

    I’m not sure that this is a plugin bug or a specific problem of my environment but converting the $parent_id from string to integer, the problem seems to be disappeared.

    However, this is not a definitive solution, so I ask you some hint on how to solve correctly this issue or check if it’s really a bug.

    Thanks,
    David

    #1328792
    Barry
    Member

    Hi David,

    It’s not something I can reproduce – whether I’m creating or updating a recurring event initially or am creating/updating a matching translation, both the post and post parent IDs are integers rather than strings and so I don’t see this error.

    I’d love to have a better handle on why this is happening for you and I wonder if another plugin (or even code from your theme) could be interfering in some way.

    theeventscalendar.com/knowledgebase/testing-for-conflicts

    If you are positioned to do this, either on your current site or a staging/test site, can you deactivate everything except the minimum required WPML plugins (let’s say WPML Multilingual CMS, WPML String Translation and WPML Translation Management) along with the minimum number of plugins on our side required to work with recurring events (The Events Calendar and Events Calendar PRO) and a regular default theme such as Twenty Seventeen.

    Can you still replicate under those conditions? I wonder also if you observe any difference between new and existing events and if there is a specific operation you are doing that triggers this (is there for instance a difference between updating or creating a series of events in the default language vs one of the other languages you are working with)?

    Thanks!

    #1339140
    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 ‘Problem with the Recurrence Scheduler’ is closed to new replies.