Forum Replies Created
-
AuthorPosts
-
@hector1069 I can’t see a map on your site. Please add the map and post a link to that page.
Follow the instructions in my posting and read ahead through the solutions I have provided in the following threads:
And from all the props I got you can see it is working.
@hector1069 simply use my solution that has proven to work: https://kriesi.at/support/topic/google-maps-7/#post-656457
@tobiy you can use my solution: https://kriesi.at/support/topic/google-maps-7/#post-656457
@kvento simply remove the referrer
@fabiobezerrafocux please flip the coordinates. The first field is -46.60597689999997 the second one is -23.4886288
@fabiobezerrafocux the modification of the script on your site looks fine. Are you sure the key you use is a browser key? If I create a map on my site and use your address data (Rua Dr. Marrei Junior, 179 – Vila Dom Pedro II, Sao Paulo, Brasilien) I can fetch the coordinates without any problem and the map gets displayed. If your key is correct than I have to assume there is a second issue. In that case I can only propose you disable all plugins to see whether the map works without any other plugin. If it does you have to enable one plugin after the other and check each time whether the map still gets displayed to find the conflicting plugin.
1. It takes a couple of minutes for the key to get active
2. Clearing the cache is mandatory@itziarsolla please clear you browser cache. The map shows as expected.
- This reply was modified 8 years, 4 months ago by mensmaximus.
@Petra_MUC please see my comment at https://kriesi.at/support/topic/google-maps-7/#post-656457
@fabiobezerrafocux just enter the address in google maps: https://www.google.de/maps. Then right click on the marker and select “what is here” to get a small box showing the ccordinates
The browser console windows shows: DeletedApiProjectMapError
This means the key you provided is not valid. Please check your key or create a new one.
Change the rule i posted to:
#top #menu-item-search { visibility: hidden; }
Pleas post a link to the page where the map should display.
Add the following css rule to your custom css field:
li.menu-item-search { visibility: hidden; }
That should do the trick.
Take a look at the browser console window: [AVIA-MAP-ERROR] Latitude or Longitude missing. You have to enter the correct coordinates in the map element.
@itziarsolla have you cleared your browser cache and any caching plugin after changing the scripts?
@webshophardenberg your address data in the googlemap are wrong or missing (longitude and latidue) this will prevent the map from rendering.
In addition it seems you have an other plugin loading the googlemap api as well and causing an error in the browser console window.
July 5, 2016 at 7:38 pm in reply to: "Update Cart" button on checkout page is not working. Confirmed with Woocomerce #657221@spidercreations as with every development there might be rare circumstances that can not be foreseen and therefore may cause issues. However from the responses from this thread my modified script works well. And from my own experience with 127 woocommerce installations running the modified script in combination with enfold and lot of different plugins I can honestly say it is save to use.
@creativeweblogo does it happen before or after you applied my solution: https://kriesi.at/support/topic/google-maps-7/#post-656457
@luke7263 I maintain sites all over the world and in some countries I still see only the “no api key” warning while on others it fails completely. Adding the apikey however fixes both issues.
Maybe this is connected somehow to “grandfathering” apps created before 22nd of June.
http://googlegeodevelopers.blogspot.de/2016/06/building-for-scale-updates-to-google.htmlPlease see my comment at https://kriesi.at/support/topic/google-maps-7/#post-656457
Please see my comment at https://kriesi.at/support/topic/google-maps-7/#post-656457
And now it works as I said
@geekeey still I see this error:
“Google Maps API error: RefererNotAllowedMapError https://developers.google.com/maps/documentation/javascript/error-messages#referer-not-allowed-map-error
Your site URL to be authorized: http://boleyn……..”Please enter your domain in the http referrer field of the api key at googles developer console or remove it at all to make the api key work form any domain.
- This reply was modified 8 years, 4 months ago by mensmaximus.
URL to website please
@geekeey not working after applying my changes? Did you clear your browser cache and any cache from plugins? I implemented the hotfix in a couple of sites and it works well.
@vinay yes it is a change in the google api however it is a theme issue because the theme is using a deprecated api call.
For those in need of a quick fix please go to https://console.developers.google.com create an account, an app and then a browser api key. If you don’t know what I am talking about visit https://developers.google.com/maps/documentation/javascript/get-api-key for help.
After you have created your key login to your ftp account and browse to /wp-content/themes/enfold/js/. Copy the file shortcode.js to your local computer. Open it in a text editor and locate line 458
src: 'https://maps.googleapis.com/maps/api/js?v=3.24&callback=aviaOnGoogleMapsLoaded'
Now append your key to that line:
src: 'https://maps.googleapis.com/maps/api/js?v=3.24&callback=aviaOnGoogleMapsLoaded&key=Put_your_google_api_browser_key_here'
Save the file and copy it back to your server. You might make a copy of the old file and keep it if you need it again.
The same change must be made to the file /wp-content/themes/enfold/config-templatebuilder/avia-template-builder/assets/js/avia-element-behavior.js on line 55.
Remember this file will be overwritten with the next update.
Important: You need to clear you browser cache and any cache from caching plugins to see the changes.
@kriesi simply introduce a new setting “google api key” in the enfold settings and append the key as shown above. You might consider to introduce a central place for loading the maps api instead of loading it conditionally in three places (twi js files above and class-framework.widgets.php). You even might consider to create a filter for loading the api to allow users to append additional parameters if needed.- This reply was modified 8 years, 4 months ago by mensmaximus. Reason: Added important information about clearing cache
I am not affiliated to Kriesi and I honestly can say – YES – you can use it for major companies. I have recommended enfold to hundreds of clients and no one has ever regretted the decision to buy enfold. However in terms of traffic and security you have to take counter measures on the server side to make sure you are save and the performance is good. Enfold is not the limiting part – your server setup is. You should hire a technical consultant with a good working background of server technology (apache/nginx, mysql/mariadb, php, caching) and of course an excellent reputation when it comes to WordPress. Hope this helps.
-
AuthorPosts