Home › Forums › Calendar Products › Events Calendar PRO › After update can't assign venue to events
- This topic has 7 replies, 4 voices, and was last updated 9 years, 8 months ago by
marthamcevoy.
-
AuthorPosts
-
August 17, 2016 at 1:13 pm #1152793
marthamcevoy
ParticipantAfter 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
August 17, 2016 at 4:02 pm #1152875marthamcevoy
ParticipantThis issue is also being discussed here:
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.phpIssue #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.August 17, 2016 at 4:15 pm #1152879marthamcevoy
ParticipantNote that there is a similar problem assigning Organizers to events.
August 17, 2016 at 4:22 pm #1152881marthamcevoy
ParticipantAlso, the problem occurs in both the free (4.3.5) and pro (v 4.2.4) versions.
August 17, 2016 at 4:33 pm #1152884marthamcevoy
ParticipantMake that “free (4.2.5) and pro (v 4.2.4) versions”
August 18, 2016 at 2:20 pm #1153369Andras
KeymasterHello 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,
AndrasSeptember 9, 2016 at 9:35 am #1162094Support Droid
KeymasterHey 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 -
This topic was modified 9 years, 9 months ago by
-
AuthorPosts
- The topic ‘After update can't assign venue to events’ is closed to new replies.
