Home › Forums › Calendar Products › Events Calendar PRO › Google Maps not Working except in Maps view
- This topic has 11 replies, 4 voices, and was last updated 11 years, 6 months ago by
Brian.
-
AuthorPosts
-
September 30, 2014 at 11:04 pm #779840
Hugh Todd
ParticipantMaps were appearing until recently, I believe, but now are not, except in Maps view.
The only changes I can think of are these:
* Web host recently upgraded to LiteSpeed server.
* I upgraded to Events Pro
* WordPress now v4.0
* The Events Calendar recently updated.
Site is the main site of a Multi-site installation.
Theme is a very minimally altered version of TwentyTwelve.
Any help gratefully received.October 1, 2014 at 6:26 am #780490Brian
MemberHi hughconstructs,
Sorry for the issues with the maps not showing. I can help troubleshoot this with you.
I went to the site and saw the maps not showing and either was the html placeholders for the maps. So…
What are the settings in the individual events edit page under Event Location Details for these two:
- Show Google Map:
- Show Google Maps Link:
I am pretty sure they are, but would like to verify those are checked.
Do you have any custom templates in your theme for the Events Calendar?
Let me know about those two and then we can go from there.
Thanks
October 1, 2014 at 2:59 pm #781474Hugh Todd
ParticipantHi, Brian,
Both Show Google Map and Show Google Maps Link are ticked.
I removed the custom Tribes folder that I had put in my child theme folder, to check whether there was an issue with that, but it seems not.
I’ve tested with the TwentyTwelve parent theme, TwentyThirteen theme and TwentyEleven theme, and turned off all other plugins, all without success.
Scratching my head here.
Working just fine on another website.
October 2, 2014 at 5:25 am #782718Brian
MemberHi,
I am seeing the same thing where one site is not working, but another is fine. This is strange so no help narrow this down.
Can you please turn on the WordPress Debug and the Events Calendar Debug to see if we can get more information.
Events Debug
Go to Events->Settings->Miscellaneous SettingsThen check Debug Mode
WordPress Debug
Please follow the steps in the WordPress Debug Codex in the Example wp-config.php for Debugging section:http://codex.wordpress.org/Debugging_in_WordPress
Please place that coding and load a couple single event pages and then check the error log and see if there are any errors.
Let me know what you find out and we can go from there.
Thanks
October 2, 2014 at 5:53 pm #783936Hugh Todd
ParticipantThis reply is private.
October 3, 2014 at 6:24 am #784917Brian
MemberThanks for providing that information. Two of those do not look like they would do anything to the map display. This one:
Notice: wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /home/bushcare/public_html/wp-includes/functions.php on line 3370
looks like it could possibly be causing an issue, although I have my doubts, if you could find where that is happening that could help.
Filter
We have come up with a filter that may help too. Can you please add this to your theme’s function.php and see if that helps out:add_filter( 'tribe_get_option', 'adjust_tribe_embedded_map_height', 10, 2 );
function adjust_tribe_embedded_map_height( $value, $property ) {
if ( 'embedGoogleMapsHeight' !== $property ) return $value;
return '350px';
}However, that was because some of the issues with the maps are it was there, but it was having no height. However it looks like your maps are not there at all.
Let me know what you find out from that and we can go from there. Sorry this is taking longer then you or I would like, we are having a other people have issues with the maps, but there is no concrete problem linking them altogether right now, but we are working on it.
Thanks
October 3, 2014 at 7:43 am #785052Brian
MemberBeyond adding that filter can you please try the following:
Testing for Conflicts
Also, I know you mentioned not much has changed on your site, but can you please follow the steps on our guide for Testing For Conflicts?https://theeventscalendar.com/support/documentation/testing-for-conflicts/
Please start by changing themes to a base WordPress theme, it may do nothing, but at least we can rule out that.
Wrapper ID
Also, I had another member of the support team look at your site and we are both seeing the wrapper has different ids then we typically use.This is what you have:
tribe-events-gmap-Group activities
This is what is should look like:
#tribe-events-map-0
Do you have any custom templates in your theme? If you do, maybe they need to be updated to work with the current version of the plugin and the google maps script.
Let me know what you find out and we can go from there.
Thanks
October 3, 2014 at 4:05 pm #786058J T
ParticipantI am having the same problem with Google Maps not appearing in the event view. As it happens, I have a dev site that was functioning perfectly and includes all the plugins in use on the live site. Because I had not been to the dev site recently many of the plugins were out of date, including Events Calendar Pro. WordPress had been updated to 4.0 automatically, but the Maps function was working fine. I updated each plugin one-by-one and kept refreshing the page. After all but Events Calendar had been updated, Google Maps was still functioning perfectly. I updated the Events Calendar plugins, hit refresh, and the maps window went blank.
I tried adding the code to the functions.php file, but it had no effect, disappointingly. Dev site URL: http://dev.diocese-oregon.org/October 4, 2014 at 10:20 am #787606gabrielet
ParticipantSame exact problem here.
October 6, 2014 at 7:08 am #791252Brian
MemberJT and gabrielet
Sorry for the troubles you are having. I can help troubleshoot this with you. I have some tests for you to try and then can you please post the results back in a new ticket as we are able better help both of you in your own tickets and that way we will not ping hughconstructs every time we post here 🙂
JT
Thanks for providing the link I looked at your site and found this error in the maps source code:“An error occurred while updating”
It appears that can happen when an update does not go through correctly or the files do not have the correct permissions on the server.
Can you please try these steps after backing up your site:
- Deactivate all the Events Calendar Plugins
- Delete all the Events Calendar Plugins
- Reload the latest version of each plugin and reactive
- Check your site for any changes.
If that does not work can you please follow our testing for conflicts guide and see if that narrows down the issue:
https://theeventscalendar.com/support/documentation/testing-for-conflicts/
Let me know what you find out in a new ticket please and if you have any customizations for the Events Calendar in your theme.
gabrielet
Can you please also try out testing for conflict guide and then report your results in a new ticket as well as include a link to a site if you have one for us to take a look.https://theeventscalendar.com/support/documentation/testing-for-conflicts/
Let me know what you find out in a new ticket please and if you have any customizations for the Events Calendar in your theme.
Thanks
October 16, 2014 at 9:19 pm #815300Hugh Todd
ParticipantSorry it’s taken so long to reply.
It looks as though the change of id on the #tribe-events-map-0 wrapper has to do with this code in my Functions file, which is supposed to change the text of the default WordPress Excerpt box. How it appends “Group Activities” to your wrapper is beyond me! Would you have an explanation?
—————-
add_filter( ‘gettext’, ‘wpse22764_gettext’, 10, 2 );
function wpse22764_gettext( $translation, $original )
{
if ( ‘Excerpt’ == $original ) {
return ‘Group activities’;
}else{
$pos = strpos($original, ‘Excerpts are optional hand-crafted summaries of your’);
if ($pos !== false) {
return ‘Make this lively and inviting.’;
}
}
return $translation;
}—————-
After a bit of testing, with and without the filter you supplied, it seems as though this might be the problematic code.
Hmm. Might have to find another way of changing the Excerpt text!
Thanks for all the help.October 17, 2014 at 7:03 am #815799Brian
MemberHi hughconstructs,
No worries on the time. Glad to see you have narrowed down the issue.
Looking at the coding I do not see why it would be changing it. Maybe you could look through this list of conditionals:
https://gist.github.com/jo-snips/2415009
Then use them to prevent the coding from running on the event pages so it does not change the map.
Since the issue is resolved and the source is found I am going to close this ticket as there is nothing more we can really do here.
If you run into trouble with this or something new please do not hesitate to create a new ticket.
Thanks
-
AuthorPosts
- The topic ‘Google Maps not Working except in Maps view’ is closed to new replies.
