Calendar search

Home Forums Calendar Products Events Calendar PRO Calendar search

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #1287044
    Miroslav
    Participant

    Hi,

    I have a problem in location searches. On a default events page location search works only for one location – Ljubljana. On the page where I have implemented calendar with a shortcode that does not work.
    In addition I have added geolocation coordinates for another venue – Močvara. After that, location search for this location also works. It also shows this results in location search for a city Mocvara is in (Zagreb), but only on default page.

    default page
    http://beta-muzika.20minuta.hr/kalendar/?tribe_paged=1&tribe_event_display=list&tribe-bar-geoloc-lat=45.7909674&tribe-bar-geoloc-lng=15.976431999999932&tribe-bar-geoloc=mocvara

    page with a shortcode:
    http://beta-muzika.20minuta.hr/kalendar-1/?tribe_paged=1&tribe_event_display=list&tribe-bar-geoloc=mocvara

    Also on a shortcode page there is no “working” sign during the search.

    Best,
    Miroslav

    #1287441
    Victor
    Member

    Hi Miroslav!

    Thanks for reaching out to us! Let me help you with that issue.

    Just to confirm I understand your issue, if you search for a location in the main events page, then it works, but if you search for a location in a calendar embedded using the [tribe_events] shortcode, then it does not work?

    It seems the links you provided redirect me to this other page > http://20minuta.hr/wp-signup.php?new=beta-muzika and I get the message “Registracija je onemogućena.” So I can’t try for myself in your site.

    Also, could you please send us a link to the venues your are not getting results for?

    When the location does not work, could you please see if you get any console errors by inspecting the page? Here’s how you can do so > https://theeventscalendar.com/knowledgebase/using-google-chrome-developer-tools/ If you find any errors, please tell us about them.

    Thanks,
    Victor

    #1290626
    Miroslav
    Participant

    Hi Victor,

    Sorry for that, the domain we were using for our testing site was unexpectedly disconnected… So we had to move the testing site to a new subdomain.
    New links are:
    default page
    http://beta-muzika.strka.hr/kalendar/?tribe_paged=1&tribe_event_display=list&tribe-bar-geoloc-lat=45.7909674&tribe-bar-geoloc-lng=15.976431999999932&tribe-bar-geoloc=mocvara

    and
    shortcode page
    http://beta-muzika.strka.hr/kalendar-1/?tribe_paged=1&tribe_event_display=list&tribe-bar-geoloc=mocvara

    So back to your replay:
    on the main event page only one location works (ljubljana) and all other do not work.
    After I have detected the problem I added coordinates to one locaton in venue settings (venue is mocvara). Then the venue started to work in a location search. But all other venues still do not work.

    in a calendar embedded using the [tribe_events] shortcode non of the location searches work (not even the two from above).

    We have many venues (exactly 3953) and I am not shure which one is working except the two mentioned, all other we have tried do not work.

    On a console I have this two errors:

    Uncaught TypeError: Cannot set property ‘w’ of undefined
    at m (jquery.ba-resize.min.js:9)
    at dispatch (jquery.js:3)
    at r.handle (jquery.js:3)

    Uncaught TypeError: Cannot set property ‘w’ of undefined
    at m (jquery.ba-resize.min.js:9)
    at dispatch (jquery.js:3)
    at r.handle (jquery.js:3)
    at Object.trigger (jquery.js:3)
    at Object.a.event.trigger (jquery-migrate.min.js:2)
    at HTMLFormElement.<anonymous> (jquery.js:3)
    at Function.each (jquery.js:2)
    at a.fn.init.each (jquery.js:2)
    at a.fn.init.trigger (jquery.js:3)
    at HTMLFormElement.<anonymous> (jquery.ba-resize.min.js:9)

    Best,
    Miroslav

    #1290701
    Victor
    Member

    Hi Miroslav!

    Thanks for the explanation.

    The venues may not be showing because they don’t have the geolocation info needed (Lat & Long coordinates). Like you said, when you added the lat and long coordinates to mocvara, then it started showing in the results.

    We have a troubleshooting guide for this https://theeventscalendar.com/knowledgebase/troubleshooting-map-view/. You should try Fixing Venue Data by going to Events > Settings and under Map Settings you should see a button that says Fix venues data. Please click it and see if they work after that.

    Regarding the shortcode embedded calendar, that seems to be a different issue. For the sake of keeping things clean. I would kindly like to ask you to open a separate topic. You can link to this one as a reference.

    Let me know how that goes.

    Best,
    Victor

    #1291045
    Miroslav
    Participant

    Well, the manual input of the coordinates for venues is not an option and should not be necessary for places already listed on the Google.
    I have fixed all venue data and now location search works for all locations except that in Croatia.
    My assumption is that it is because of the country name used in a plugin that is now different from the Google.
    Country name should be Hrvatska (preferable) or Croatia, not Croatia (local name Hrvatska).

    I am opening a new topic regarding the shortcode even though that was the primary issue.

    Best,
    Miroslav

    #1291149
    Victor
    Member

    Hi Miroslav!

    Thanks for following up on this and letting us know about your findings.

    We’ve been able to locate an issue when saving the country for a venue, that results in your issue of not getting geo coordinates for “Croatia (local name Hrvatska)”.

    I have logged a ticket for this so it will be addressed by the dev team in one of our future maintenance releases. I will link this thread to it and change the status of this to “Pending fix” so we’ll let you know as soon as a bugfix is released.

    We don’t have a workaround in the meantime but I will let you know if we happen to find one.

    I apologise for the inconvenience and we’d appreciate your patience.

    Best,
    Victor

    #1291754
    Miroslav
    Participant

    Hi Victor,

    Well I am happy we have detected a problem but we have a lot of other things on our site that relay on a functional calendar… Could you maybe give me an estimate when that fix could be ready?
    Also if there is anything we could do on our end to patch that bug on our venues would be a great input. And we have a lot of venues in Croatia.
    I am thinking of changing country name directly in the database, but I would need more detailed information from you for that.
    We have tried that on one venue and on the event page Google map appeared with the pin, but the filter is still not working.

    Best,
    Miroslav

    #1292120
    Victor
    Member

    Hi Miroslav!

    Thanks for following up!

    I trully understand your position about this issue.

    Unfortunately, we don’t have exact date for this to be fixed, but rest assured we will take this bug seriously, like we do with all others, and we will keep you posted as soon as we have updates for it.

     

    I will reach the team to see if we can come up with a workaround and will come back as soon as I can.

    Best!
    Victor

    #1295248
    Victor
    Member

    Hi Miroslav!

    I’m sorry for the delay here. We’ve been having a higher demand in our forums the last days. That with some unexpected team changes has caused us delays.

    Just wanted to tell you that we’re close to finding a workaround for your issue and I’m pretty sure I’ll be able to come back with it later today.

    Thanks for your patience and understanding.

    Best,
    Victor

    #1295687
    Miroslav
    Participant

    Hi Victor,

    Thank you for keeping me posted. I hope that your team will be complete soon.

    I am looking forward to the workaround solution, that would be excellent end of the week!

    Have a great day!

    Miro

    #1295723
    Victor
    Member

    Hi Miroslav!

    Thank you for your patience here.

    The only workaround for the moment is to change one line of code in the View_Helpers.php file located at /wp-content/plugins/the-events-calendar/common/src/Tribe/View_Helpers.php

    Bear in mind, this is far from ideal because it involves changing a core file from the plugin. So, be aware that if you update the plugin, this file will be overwritten. That said, it will at least solve your particular issue.

    You should change line 100 of the file, which looks like this:

    'HR' => esc_html__( 'Croatia (Local Name: Hrvatska)', 'tribe-common' ),

    to look like this:

    'HR' => 'Croatia',

    That will modify the option you can select as country when you create/edit a venue. For the venues you have already created, you have two options:

    • Manually edit and re-assign the Country to ‘Croatia’ and save the changes. Or,
    • Change the values in the database with the following SQL query:

    UPDATE wp_postmeta
    SET meta_value = 'Croatia'
    WHERE meta_key = '_VenueCountry'
    AND meta_value = 'Croatia (Local Name: Hrvatska)'

    Also bear in mind, that this will only change the _VenueCountry metadata to be ‘Croatia’ instead of ‘Croatia (Local Name: Hrvatska)’. It won’t create the geolocation to display the map view, so you would still have to edit the venues and hit save. This will fetch the geolocation info and save it to the venue.

    If you choose to modify the database, we highly encourage you to make a full backup of your site, both files and database, before running the SQL query. This will ensure you can restore your site if anything goes wrong in the process.

    I hope that works you, let me know if you have any questions in the meantime.

    Best,
    Victor

     

    #1296561
    Miroslav
    Participant

    Thank you Victor for your help so far. This was very useful and it did fix the problem with present venues from Croatia.
    I have run the query and afterwards pressed the Fix venue location (so I did not need to update every single venue on my own).
    But when I enter a new venue I am still not able to select Croatia. In order to work properly, I need to run sql query and venue update for each new input.
    On a country drop down menu it is still Croatia local name Hrvatska for country. Do I need to change the code on some other place as well?

    Best,
    Miro

    #1296856
    Victor
    Member

    Hi Miro!

    I’m glad the fix worked out for you. Thanks for letting me know. 🙂

    Regarding the name ‘Croatia’ not showing in the dropdown, that seems strange. Were you able to change the View_Helpers.php file? Could you please double check this to see if the changes saved properly?

    Let me know about it.

    Thanks,
    Victor

    #1297088
    Miroslav
    Participant

    Hi Victor,

    I checked and file was updated/saved OK, it is now Croatia. I changed the po file as well but that does not have to do anything with database anyway…
    There is no cache plugin and I cleaned browser cache several times.

    Best,
    Miro

    #1297158
    Victor
    Member

    Hi Miro!

    Thanks for checking that.

    This seems strange to me. Could you please try the following and see if it changes anything?

    • Change the WordPress language to other than your current and then change it back to your language.
    • Try deactivating and activating The Events Calendar plugin.

    Let me know if this changes anything.

    Thanks,
    Victor

Viewing 15 posts - 1 through 15 (of 17 total)
  • The topic ‘Calendar search’ is closed to new replies.