Linked_Posts (Venue and Organizer) do NOT update.

Home Forums Calendar Products Events Calendar PRO Linked_Posts (Venue and Organizer) do NOT update.

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1141117
    Zachary
    Participant

    When 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_postmeta table.

    The same holds true for Organizers.

    #1141313
    Cliff
    Member

    Hi 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?

    #1141390
    Zachary
    Participant

    Sure 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.

    #1141488
    Cliff
    Member

    Ok, 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?

    #1141650
    Zachary
    Participant

    This reply is private.

    #1141707
    Cliff
    Member

    Thanks 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!

    #1142070
    Zachary
    Participant

    This reply is private.

    • This reply was modified 9 years, 10 months ago by Zachary.
    #1142192
    Cliff
    Member

    Thanks 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?

    #1143639
    Zachary
    Participant

    No object caching (locally). Perhaps something on the server. I’d have to talk with the sysadmin.

    #1143858
    Cliff
    Member

    I 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.

    #1144125
    Zachary
    Participant

    We 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.

    #1144138
    Zachary
    Participant

    I 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?

    #1144150
    Zachary
    Participant

    I 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. 🙂

    #1144195
    Cliff
    Member

    Interesting. 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!

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Linked_Posts (Venue and Organizer) do NOT update.’ is closed to new replies.