After update can't assign venue to events

Home Forums Calendar Products Events Calendar PRO After update can't assign venue to events

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1152793
    marthamcevoy
    Participant

    After updating from 3.0.3 to 4.2.5, venues can not be assigned to events. After Updating on the admin edit screen, the venue is not assigned. I am having this issue with both events that were created before the update and those created after the update.

    This problem is happening with both venues created before the update and venues created afterwards. If I fill in the fields to create a new venue, that venue is created, but not assigned to the event.

    • This topic was modified 9 years, 9 months ago by marthamcevoy. Reason: Added more information
    #1152875
    marthamcevoy
    Participant

    This issue is also being discussed here:

    https://wordpress.org/support/topic/event-update-doesnt-retain-venue-organizer-information?replies=12#post-8768397

    I believe there are 2 problems:

    First, note that for events that do not have a venue attached there is an entry in the postmeta table for key ‘EventVenueID’ with a value of 0.

    Version 4.2.5
    file: the-events-calendar/src/Tribe/Linked_Posts.php

    Issue #1:
    at line 690:
    $currently_linked_posts = $this->get_linked_posts_by_post_type( $event_id, $linked_post_type );

    get_linked_posts_by_post_type() returns an array that contains the post number for the venue to be added, even though it has not yet been written to the DB. So, the code thinks it’s already there and does not add it to the DB.

    Issue #2:
    at line 547:
    In addition to writing the new venue id to the postmeta table, the code needs to remove the pre-existing EventVenueID rows. However, when there is a row with value 0 the unlink_post() function doesn’t remove it because 0 is not a valid venue post.

    #1152879
    marthamcevoy
    Participant

    Note that there is a similar problem assigning Organizers to events.

    #1152881
    marthamcevoy
    Participant

    Also, the problem occurs in both the free (4.3.5) and pro (v 4.2.4) versions.

    #1152884
    marthamcevoy
    Participant

    Make that “free (4.2.5) and pro (v 4.2.4) versions”

    #1153369
    Andras
    Keymaster

    Hello marthamcevoy,

    I’m sorry you are experiencing this issue. We will look into this.

    Meanwhile could you please share your system information with me in a private reply?
    Here’s a handy guide how you can do that:
    https://theeventscalendar.com/knowledgebase/sharing-sys-info/

    I see from your post in the .org forums that you tested this with only The Events Calendar active and twentysixteen. Could you please confirm that?

    Thanks and cheers,
    Andras

    #1162094
    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 7 posts - 1 through 7 (of 7 total)
  • The topic ‘After update can't assign venue to events’ is closed to new replies.