Google map not displaying
-
Hi,
I have multiple sites using this plugin, however on one I have an issue with Google Maps just showing a grey box. However, when I click on the map to expand to the full size version it shows correctly with the right location.
Also, I notice that when I type the address in whilst creating the event it does not show the suggested addresses as per the site that does work.
Here’s an example of an event with the problem –
https://millersmartialarts.co.uk/event/panatukan-2/?instance_id=3655
I can see from the Google API console that there are no errors and successful API calls for the expanded maps. I am not convinced that the API is being called during event creation or whilst showing the initial event page (small map).
I hope you are able to help me resolve this problem.
Thanks very much
Mark
-
Hi @markwest2016,
In the Settings > Viewing Events tab, there is an option you likely have checked:
[] Hide Google Maps until clicked
Also since you didn’t specify, be sure you have entered your Google API in Settings also. Let me know.
Hi Sunny,
Thank you for your reply. I spent some more time working on this issue today. I wondered if I didn’t have all the correct Map API’s enabled. So, I made sure to duplicate the active API’s as per another site I have that is working fine (same WordPress, Theme & Plug-in versions).
Sadly that’s not the problem. ‘Hide Google Maps until Clicked’ is not checked and I do have the API key in place ??
Hope you are able to help with a resolution.
Thanks very much,
Mark
Hi @markwest2016,
Try creating a new key, by clicking on “Get a Key” here:
https://developers.google.com/maps/documentation/javascript/Hi Sunny,
I’ve created a new key as you suggested – for the moment I have not set any access restrictions.
I’ve entered the new key in ai1ec settings, saved and purged all caches.
Sadly I’m still not seeing the map and I’m not seeing any hits success or failure in the API dashboard . . . ?
I’m completely stumped as to what’s going on. Thanks for your help, it’s much appreciated.
Kind Regards
Mark
Just to add some detail. When I hover over the map area the cursor changes to the drag hand and the green + appears in the bottom right hand corner to click through to the full map – which works – the address details get passed through – but obviously this doesn’t utilise the API.
Thanks
MarkHi @markwest2016,
This error could be a result of a combination of factors that can cause a conflict:
– your server’s PHP version
– your version of our Calendar
– your version of WordPress
– other plugins you have installedCan you give me the versions of your host’s PHP, our calendar version, and WordPress version?
Also, try:
Go to your WordPress Dashboard, then to Plugins > Installed Plugins. Disable all plugins and see if the error goes away. If so, activate one at a time until you find what’s breaking the maps.
Hi Sunny,
Thanks for your suggestion.
The versions are:
PHP – 7.0.18
Calendar – 2.5.19
Extended Views – 1.2.10
Wordpress – (was 4.7.4) now 4.7.5These versions match the other site which is working fine.
I have tried deactivating all other plug-ins – although they are a sub-set of plug-ins used on another site (with the exact same theme etc.) that works ok.
Doing a little more digging I am seeing 4xx errors in the GeoCoding API. I am also seeing cURL errors in my error_log relating to the calendar – detail posted below – website path redacted –
[16-Mar-2017 13:30:23 UTC] PHP Warning: http_build_query(): Parameter 1 expected to be Array or Object. Incorrect value given in /website path redacted/cURL.php on line 508
[16-Mar-2017 13:30:25 UTC] Created calendar: Created calendar. Please reload this page to try again. If this error persists, please contact us at [email protected]. In your report please include the information below.<br/>API URL: https://api.time.ly/api/calendars.<br/>Detail: 401 – Unauthorized. – raw error: Array
(
[headers] => Requests_Utility_CaseInsensitiveDictionary Object
(
[data:protected] => Array
(
[cache-control] => no-cache, private
[content-type] => text/html; charset=UTF-8
[date] => Thu, 16 Mar 2017 13:30:29 GMT
[server] => nginx
[set-cookie] => laravel_session=eyJpdiI6IkxhUnpXYWN0QVNsSk9NNWRpRW9cL21nPT0iLCJ2YWx1ZSI6IkNKRnhkWkh4NGZsRUNKcCt6MEhUSUZYV3ZaT3hzVlZLN2hEdVZnYnNDNm50QnA0OG55d3hXbFBCWEVEWmxrbnF6a0pudTRzOHZuZlByZ1NvME05eVNRPT0iLCJtYWMiOiJiNmQyMmRlMGE1YzM4ZjBmNWY3Njc3MGZhNzVlZDM2NmRmMjBmNjFhOGQ3Zjk4MGI2ODhmM2NkYTZkNzcyMDA2In0%3D; expires=Thu, 16-Mar-2017 15:30:29 GMT; Max-Age=7200; path=/; domain=.time.ly; HttpOnly
[x-ratelimit-limit] => 60
[x-ratelimit-remaining] => 59
[content-length] => 13
))
[body] => Unauthorized.
[response] => Array
(
[code] => 401
[message] => Unauthorized
)[cookies] => Array
(
[0] => WP_Http_Cookie Object
(
[name] => laravel_session
[value] => eyJpdiI6IkxhUnpXYWN0QVNsSk9NNWRpRW9cL21nPT0iLCJ2YWx1ZSI6IkNKRnhkWkh4NGZsRUNKcCt6MEhUSUZYV3ZaT3hzVlZLN2hEdVZnYnNDNm50QnA0OG55d3hXbFBCWEVEWmxrbnF6a0pudTRzOHZuZlByZ1NvME05eVNRPT0iLCJtYWMiOiJiNmQyMmRlMGE1YzM4ZjBmNWY3Njc3MGZhNzVlZDM2NmRmMjBmNjFhOGQ3Zjk4MGI2ODhmM2NkYTZkNzcyMDA2In0=
[expires] => 1489678229
[path] => /
[domain] => time.ly
))
[filename] =>
[http_response] => WP_HTTP_Requests_Response Object
(
[response:protected] => Requests_Response Object
(
[body] => Unauthorized.
[raw] => HTTP/1.1 401 Unauthorized
Cache-Control: no-cache, private
Content-Type: text/html; charset=UTF-8
Date: Thu, 16 Mar 2017 13:30:29 GMT
Server: nginx
Set-Cookie: laravel_session=eyJpdiI6IkxhUnpXYWN0QVNsSk9NNWRpRW9cL21nPT0iLCJ2YWx1ZSI6IkNKRnhkWkh4NGZsRUNKcCt6MEhUSUZYV3ZaT3hzVlZLN2hEdVZnYnNDNm50QnA0OG55d3hXbFBCWEVEWmxrbnF6a0pudTRzOHZuZlByZ1NvME05eVNRPT0iLCJtYWMiOiJiNmQyMmRlMGE1YzM4ZjBmNWY3Njc3MGZhNzVlZDM2NmRmMjBmNjFhOGQ3Zjk4MGI2ODhmM2NkYTZkNzcyMDA2In0%3D; expires=Thu, 16-Mar-2017 15:30:29 GMT; Max-Age=7200; path=/; domain=.time.ly; HttpOnly
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 59
Content-Length: 13
Connection: CloseUnauthorized.
[headers] => Requests_Response_Headers Object
(
[data:protected] => Array
(
[cache-control] => Array
(
[0] => no-cache, private
)[content-type] => Array
(
[0] => text/html; charset=UTF-8
)[date] => Array
(
[0] => Thu, 16 Mar 2017 13:30:29 GMT
)[server] => Array
(
[0] => nginx
)[set-cookie] => Array
(
[0] => laravel_session=eyJpdiI6IkxhUnpXYWN0QVNsSk9NNWRpRW9cL21nPT0iLCJ2YWx1ZSI6IkNKRnhkWkh4NGZsRUNKcCt6MEhUSUZYV3ZaT3hzVlZLN2hEdVZnYnNDNm50QnA0OG55d3hXbFBCWEVEWmxrbnF6a0pudTRzOHZuZlByZ1NvME05eVNRPT0iLCJtYWMiOiJiNmQyMmRlMGE1YzM4ZjBmNWY3Njc3MGZhNzVlZDM2NmRmMjBmNjFhOGQ3Zjk4MGI2ODhmM2NkYTZkNzcyMDA2In0%3D; expires=Thu, 16-Mar-2017 15:30:29 GMT; Max-Age=7200; path=/; domain=.time.ly; HttpOnly
)[x-ratelimit-limit] => Array
(
[0] => 60
)[x-ratelimit-remaining] => Array
(
[0] => 59
)[content-length] => Array
(
[0] => 13
))
)
[status_code] => 401
[protocol_version] => 1.1
[success] =>
[redirects] => 0
[url] => https://api.time.ly/api/calendars
[history] => Array
(
)[cookies] => Requests_Cookie_Jar Object
(
[cookies:protected] => Array
(
[laravel_session] => Requests_Cookie Object
(
[name] => laravel_session
[value] => eyJpdiI6IkxhUnpXYWN0QVNsSk9NNWRpRW9cL21nPT0iLCJ2YWx1ZSI6IkNKRnhkWkh4NGZsRUNKcCt6MEhUSUZYV3ZaT3hzVlZLN2hEdVZnYnNDNm50QnA0OG55d3hXbFBCWEVEWmxrbnF6a0pudTRzOHZuZlByZ1NvME05eVNRPT0iLCJtYWMiOiJiNmQyMmRlMGE1YzM4ZjBmNWY3Njc3MGZhNzVlZDM2NmRmMjBmNjFhOGQ3Zjk4MGI2ODhmM2NkYTZkNzcyMDA2In0%3D
[attributes] => Requests_Utility_CaseInsensitiveDictionary Object
(
[data:protected] => Array
(
[expires] => 1489678229
[max-age] => 1489678225
[path] => /
[domain] => time.ly
[httponly] => 1
))
[flags] => Array
(
[creation] => 1489671025
[last-access] => 1489671025
[persistent] =>
[host-only] =>
)[reference_time] => 1489671025
))
)
)
[filename:protected] =>
[data] =>
[headers] =>
[status] =>
))
Hi @markwest2016,
The remaining possiblities for this error are:
WP Smush plugin, if you have it installed, or, low disk space on your server. Please check and advise.
Hi Sunny,
Sorry, please see from line 4 of the log pasted above – This relates to the calendar. I can see the first three lines may relate to WP Smush – but this is a separate issue.
[16-Mar-2017 13:30:25 UTC] Created calendar: Created calendar. Please reload this page to try again. If this error persists, please contact us at [email protected]. In your report please include the information below.<br/>API URL: https://api.time.ly/api/calendars.<br/>Detail: 401 – Unauthorized. – raw error: Array . . . . .
Kind Regards
Mark
Just trying to find out if there is a conflict with another plugin, past users have found that this specific error was caused by a conflict with WP Smush, and also, another user found it was caused by low disk space on the server. I am not arguing which plugin the error occurs in, I am pointing out the potential for a plugin conflict that might be causing the error. Do you have this plugin installed?
Hi Sunny,
Of course, I appreciate your help ??
Yes, I do have this plugin installed – but I did de-activate it in the previous tests and it made no difference.
To be completely sure I have now de-activated and deleted WP Smush. It is no longer installed on the site.
Again, I also have ai1ec installed on another site with the same group of plug-ins (and others) and it works perfectly.
Do you have an option for me to pay for this to be investigated please? I would be happy to pay for a support case to get this investigated/resolved on the site?
I’d be grateful if you would let me know what the options are?
Thanks
Mark
Hi Sunny,
Unfortunately it seems like the calendar is now completely broken ??
I thought it would be worth replacing the plugin. So, I re-downloaded it from the repo, deleted it via FTP and re-uploaded, re-activated and then re-added the extended views.
Now it seems to be completely broken ??
This is very odd and not what I am used to at all.
I hope you are able to help me restore the calendar to at least how it was please?
Thanks very much
Mark
Hi Sunny,
It’s fixed ??
So, when I re-added the plugin I did it via FTP – this seemed to cause CSS/style issues – no idea why.
So, I deleted the plugin again and re-added it directly on the site.
It removed all my events – but that’s not a huge issue. After re-adding the Google API key the maps are now working.
It seems like this may have been a corrupt plugin download initially from the repo perhaps?
Definitely an odd issue. But the resolution for me does seem to have been deleting and re-adding the plugin directly on the site.
Thank you very much for your help.
Mark
Apologies for the problems.. my next step would be a manual reinstall of our calendar, the most intensive step saved for last — of course, the first step is to backup the full database, and also, download the event ics file as backup… Glad it’s working now though..
- The topic ‘Google map not displaying’ is closed to new replies.