• Resolved bookishheather

    (@bookishheather)


    This morning I’ve been experiencing an issue when I update previously created events to add venue and organizer information. When I select a saved organizer and venue and then update the event, neither of them will actually save.

    I tried using both Firefox and Chrome to update the information, and neither worked. Strangely, if I enter new venue values into the fields (instead of using the drop-down menu of saved venues) the new information will appear in the drop-down after saving, but it still won’t display on the event page.

    Any thoughts?

    https://www.ads-software.com/plugins/the-events-calendar/

Viewing 15 replies - 1 through 15 (of 20 total)
  • I’m having the same issue. Would love to hear of any fix. Will let you know if I figure anything out.

    They released an update (v. 4.2.4) that fixed this.

    Thread Starter bookishheather

    (@bookishheather)

    Looks like I’m on v. 4.2.4 but still experiencing the same issue. Drat.

    Hmm, I wonder if this is a different issue than than what we thought we fixed in 4.2.4.

    @lukez09 — did updating resolve the issue for you?

    Here are the steps I just tested and everything seemed to work ok:

    • Activated only The Events Calendar 4.2.4 — no other plugins are active or installed
    • Activated the default WordPress Twenty Sixteen theme
    • Created a new event with no venue or organizer
    • Viewed the event on the front end to make sure no venue or organizer was displayed
    • Edited the event by adding a new organizer and a new venue
    • Saved the event
    • Viewed the event on the front and and confirmed both the new venue and organizer were there
    • Checked the new organizer information in the WordPress admin and confirmed all information saved
    • Created another new event, again not specifying an organizer or venue
    • Saved that event and confirmed no organizer or venue on the front end
    • Edited the event by adding in the saved organizer and venue I created from the first test event
    • Saved the event
    • Confirmed that the organizer and venue were both displayed on the front end
    • Confirmed that the organizer and venue information was still correctly saved in the admin

    Do you see different behavior when following those same steps? Please let us know!

    Geoff

    Thread Starter bookishheather

    (@bookishheather)

    Well, fudge, Geoff. When I turned off all plugins and switched to Twenty Sixteen I didn’t have the problem. After switching back and then turning off each plugin one at a time, I didn’t come up with a culprit.

    Guess that means the problem is with the theme. I even made sure I had the latest version of our theme!

    We only have a couple more of these unsaved organizer/venue events through the end of the year, so I suppose I’ll need to recreate the events as needed and then not post similar events moving forward until I have venue information confirmed.

    Thread Starter bookishheather

    (@bookishheather)

    CORRECTION: It appears to be fixed! I’m not sure which of my steps solved the issue (updating theme? cleaning up venues/organizers?), but after force-refreshing the event page suddenly the two pieces were working. Since Geoff also asked lukez09 about an issue, I won’t marked this as resolved for now.

    I’m having the same issue, tried the newest theme without success. Cannot edit the venue, it doesn’t save it. All other values will be saved.

    This happens only when I try to update the venue from another user’s post (logged in as admin!). I can edit my own posts.

    I’m having this problem with today’s 4.2.5 (which I updated directly to today from 3.0.3). I tested with all other plugins disabled and with the twenty sixteen theme activated.

    The problem is happening for me when I edit both events created with 3.0.3 by other admin users, and on new events created by me with 4.2.5.

    I also tested with pre-existing venues and with “New Venue”. In the later case the sen is created, but not assigned.

    I don’t see anything related in debug.log.

    Thread Starter bookishheather

    (@bookishheather)

    Yep, now that I’m on v4.2.5 I’m having the problem again, only a new variation: it appears to be saving the venue on file, but not the organizer.

    I think I found one bug and am tracking another. Will update again…

    OK, 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.

    Whew!

    The problems assigning Venues and Organizers also occur in the Pro version of the plugin. I have posted this in the support forum for Pro as well.

    Updated to 4.2.5 today – still the same problem.

    Having the same issue! I setup a new or existing venue and as soon as I update, it goes away.

    Any updates? Still the same error…

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Event Update Doesn't Retain Venue, Organizer Information’ is closed to new replies.