How to Fix Address-less Venue Not Showing

Home Forums Calendar Products Events Calendar PRO How to Fix Address-less Venue Not Showing

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #333783
    Cliff
    Participant

    Just in case this helps anyone, as it took me a minute to figure out what was going on:

    The venue post meta now hides itself if the venue does not have an address attached. I can see the idea, but we use areas inside a campus as venues, so this just caused all venues to hide automatically after upgrading to 3.6.

    To fix this, you need to create a file at [your-theme]/tribe-events/modules/meta/venue.php and comment out (or remove) the first line. Should look something like this after you’re done:

    //if ( ! tribe_address_exists() ) return;

    That file checks for the address again later, so it won’t fail if you don’t have an address. This patched things right up.

    To the devs: maybe consider a softer check when excluding the whole template? 🙂

    #333795
    Cliff
    Participant

    I should add to the above that you’ll want to copy everything from the original venue.php file before commenting out the line, which is located in plugins/the-events-calendar/views/modules/meta.

    #337832
    Rob
    Member

    Thanks for the heads up here, Cliff – this is awesome and most appreciated. At face value this honestly looks more like a bug than an intended implementation, and I’ve logged it as such – unless the devs tell me there’s a specific reason for this, which isn’t something we’ve ever discussed, I’m guessing it’s just an oversight that is likely a byproduct of the meta walker changes we made in 3.6.

    Just so I understand properly, and can pass the word onto our dev team accurately. You’re doing the following:

    1) Creating a new event
    2) Adding a venue with just a venue name (no other data) in place, attached to that event
    3) Publishing and finding that the venue is totally gone from the frontend, despite existing as a saved venue within the backend of the site

    Let me know – that’s the process I was just able to recreate but wanted to check to confirm you aren’t reporting some other variation on this. I’m glad you found a solution and really appreciate you taking the time to share it here with the community. Let me check with the devs as to when we’re expecting to have this patched – it probably won’t be 3.7, since that’s already almost done and ready to ship, but I’m making a case to include it in our next release.

    Thanks again for the heads up and let me know if you need anything else here 🙂 We’ll be in touch when we’ve heard more on this specific tweak.

    #345113
    Cliff
    Participant

    That’s correct, Rob. Thanks!

    #347036
    Cliff
    Participant

    Looking a bit more, maybe this would be better?

    if ( ! tribe_get_venue_id() ) return;

    #348587
    Rob
    Member

    Cliff: you rule. Thanks for taking the time to reply here and even moreso for offering up this further suggestion…really helpful and should make it that much quicker for our devs to get a patch out the door. We’ll let you know when we’ve got this slated to ship.

    If we can do anything else in the interim, you know how to reach us 🙂 Thanks again for your support.

    #434342
    Leah
    Member

    Hi there,

    I just wanted to drop in and update you on the status of this issue. We are working on a fix, but we were not able to include it in our upcoming release (3.7). Correcting this problem is still important to us and we hope to have a fix done for a future maintenance release. We will do our best to keep you updated here on our progress. Thank you for your patience and understanding while we work on this.

    Best,
    Leah

    #487364

    Thanks for the update. We’re in the same boat, looking forward to a fix.

    #735991
    Brandon University
    Participant

    Thanks, Cliff. I just found this solution independently, and came here to see if it’s already been reported. Excluding the whole template for want of an address seems a little scorched-earth to me, too, especially considering that later on in the same file, an empty address is specifically checked for.

    #736015
    Barry
    Member

    We do indeed have some changes in the works following Cliff’s report and I’m hopeful we’ll see them when our next release goes out – so stay tuned and we’ll do our best to update this thread to ensure you stay in the loop 🙂

    #768935
    Leah
    Member

    Hi there,

    I just wanted to let you know that we were able to work on this issue for our upcoming 3.8 release. Keep an eye out on your site for an update announcement! If you update and are still seeing this problem, please post a new thread so we can check it out. Thank you for your patience while we got this fix in place.

    Best,
    Leah
    and the team at Modern Tribe

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘How to Fix Address-less Venue Not Showing’ is closed to new replies.