Home › Forums › Calendar Products › Events Calendar PRO › Linked_Posts (Venue and Organizer) do NOT update.
- This topic has 14 replies, 3 voices, and was last updated 9 years, 9 months ago by
Cliff.
-
AuthorPosts
-
July 18, 2016 at 10:55 am #1141117
Zachary
ParticipantWhen I select an existing Venue and click Update, the edit form doesn’t display those saved relationships (it looks like no Venue is related). For what it’s worth, the issue appears to be in rendering, not updating. As far as I can tell, the updated Venue is stored in the
wp_postmetatable.The same holds true for Organizers.
July 18, 2016 at 8:37 pm #1141313Cliff
MemberHi Zachary. I’m not sure exactly what you’re looking for. Could you please be more specific of which URL you’re at and what you’re expecting to see?
July 19, 2016 at 4:04 am #1141390Zachary
ParticipantSure thing. I’m on an Event edit page, and I’m selecting an existing Venue for the Location (see attached). After clicking Update, the Event appears as if no Venue is selected.
When I look in the wp_postmeta table, I can see that the relationship to the Venue was in fact stored. However, it doesn’t display as selected on the edit page OR when viewing the post.
I’ve deactivated all plugins except Events Calendar and Events Calendar PRO, and I’ve switched to the Twenty Fourteen theme.
July 19, 2016 at 8:53 am #1141488Cliff
MemberOk, so I installed and activated Twenty Fourteen theme and deactivated all plugins other than TEC and TEC PRO, then I went to view an event that has a Venue assigned and it did display on the front-end. So I went to edit this existing event to remove the existing Venue (by clicking Use New Venue and leaving all fields blank), Updated it, then edited it again to add back a Venue (a different one than before, just to test), Updated it, and it saved just fine and appears just fine on the front-end.
Since I cannot replicate your issue, maybe you could send over some video screencast(s) of your site’s issue?
July 19, 2016 at 12:43 pm #1141650Zachary
ParticipantThis reply is private.
July 19, 2016 at 3:09 pm #1141707Cliff
MemberThanks for that video (although it’s super blurry so I couldn’t read the Venue’s Post ID). Could you please send me a screenshot of the Venue edit screen (including the browser address bar URL) for the Meade Hall venue?
Thanks!
July 20, 2016 at 11:36 am #1142070Zachary
ParticipantThis reply is private.
-
This reply was modified 9 years, 10 months ago by
Zachary.
July 20, 2016 at 3:32 pm #1142192Cliff
MemberThanks for that extra info. One of our developers took a look and asked if you have any Object Caching enabled and if yes, what are you using?
July 25, 2016 at 7:51 am #1143639Zachary
ParticipantNo object caching (locally). Perhaps something on the server. I’d have to talk with the sysadmin.
July 25, 2016 at 3:30 pm #1143858Cliff
MemberI can’t tell if you were planning to ask them or not, but here’s a helpful reference from WordPress VIP about object caching. Please let me know what you find out from your admin.
July 26, 2016 at 6:38 am #1144125Zachary
ParticipantWe aren’t using Object Caching in production. Regardless, the issue persists locally, so its cause wouldn’t be Object Caching, right?
Perhaps you could point me to the method that retrieves the Venue ID from the database? I’ve been digging around, but haven’t found it yet.
July 26, 2016 at 6:57 am #1144138Zachary
ParticipantI did some more of my own sleuthing, and made it down to the getEventMeta method in the-events-calendar/src/Tribe/Main.php. The unexpected result: the get_post_meta query was returning 0 event though there appeared to be an _EventVenueID value in the database.
So then I looked at the DB again, and there were two entries for the same post ID. The first stored 0, the second stored a venue ID, and get_post_meta must only use the first return.
Any idea how two _EventVenueID values might get stored in the wp_postmeta table with the same post ID?
July 26, 2016 at 7:21 am #1144150Zachary
ParticipantI may have resolved the issue. I filtered the wp_postmeta table and deleted any _EventVenueID or _EventOrganizerID values that were 0. This, at least, removes the symptom.
If new (duplicate) zero values are inserted, I guess I’ll be back. 🙂
July 26, 2016 at 8:00 am #1144195Cliff
MemberInteresting. I haven’t experienced that in my local testing site (https://cl.ly/1d1s2E2d3N0O) and haven’t heard of others experiencing it, but please do let us know if it happens again.
Thanks!
-
This reply was modified 9 years, 10 months ago by
-
AuthorPosts
- The topic ‘Linked_Posts (Venue and Organizer) do NOT update.’ is closed to new replies.
