An error is logged in the Chrome DevTools console. This seems a dependency issue with Google Maps, are you using the Script Center by any chance? This works for me locally; https://github.com/Really-Simple-Plugins/complianz-integrations/blob/master/custom-betheme-google-maps.php. Additional notes: I recently updated my site to WP 5.0.2 as well as Toolset (Types and Views) and theme Avada 5.7.2 and I was not having the Google Maps issue and error. I left that setting at Default Styling before doing the other recommended tests. since a few weeks we have a problem on our wordpress page and just dont know what to do. Thank you in advance! Successfully merging a pull request may close this issue. The link to the page is here: https://wepec.de/team/. I'll activate private reply fields here so you can share login credentials with me if necessary. If there's any custom JavaScript code in any of these locations, you can try temporarily commenting it all out: - Temporarily deactivate all plugins except Types, Views, and Maps. Please let me know the results of these tests. thank you for this! I am trying to: create a view of a custom post type that has a location that I would like to show the map of upon viewing the post type, Link to a page where the issue can be seen: hidden link, Instead, I got: no map and an error "Uncaught ReferenceError: google is not defined" in the console (see attached image). I would suggest using this set-up; https://github.com/Really-Simple-Plugins/complianz-integrations/blob/master/custom-google-maps.php and add it as a MU plugin. In the plugin is written. - Theme options like field code, tracking code If so, can you share it? Sign up for a free GitHub account to open an issue and contact its maintainers and the community. The error is reproducible here https://stackblitz.com/edit/components-issue-8f7l3p?file=src%2Fapp%2Fexample-component.ts, just check the console. Read more about our automatic conversation locking policy. I attempted to add the optional 2nd Key to the Toolset > Maps > Settings area and I am not able to update or click the "Check API" button on the page. I can begin the process of figuring out which version of Toolset Types / Views gets broken by which Avada version, but could you all take a look. [Resolved] Updated site and now get Uncaught ReferenceError: google is not defined, Displaying WordPress Content on Google Maps, How to Build Advanced Sites With Gutenberg and No Coding, Shortcodes in Gutenberg Dynamic Sources. and I replaced it with map but Im not sure if thats correct though? Solution: Update plugins, WordPress, and theme. The Google map does not appear, but sometimes if you refresh the page more often, it works. Viewing 7 replies - 1 through 7 (of 7 total), Uncaught ReferenceError: google is not defined, https://github.com/Really-Simple-Plugins/complianz-integrations/blob/master/custom-google-maps.php, https://github.com/Really-Simple-Plugins/complianz-integrations/blob/master/custom-betheme-google-maps.php, This reply was modified 4 months, 1 week ago by. We are grateful for any help! Problem: After updating, I see an error "Uncaught ReferenceError: google is not defined" in the console and no maps appear on the front-end. If none of these solves the problem, I can try making a clone of your site to run some additional tests. The text was updated successfully, but these errors were encountered: This issue has been automatically locked due to inactivity. We can add a dependency there if needed. Home Toolset Professional Support [Resolved] Updated site and now get Uncaught ReferenceError: google is not defined. Can you tell me: - Are you using a custom map style / JSON file? There's a good chance that you are reading advice that it now obsolete. - Go to Avada > Theme Options > Advanced > Theme Features and tell me if toggling the Google Maps script setting has any effect. Support Plugin: Complianz - GDPR/CCPA Cookie Consent Uncaught ReferenceError: google is not defined. The page I need help with: [log in to see the link]. This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP. privacy statement. - Views editor JS panels This topic contains 5 replies, has 2 voices. The issue here is that the script mfn_google_maps should wait for the Google API to load. Have a question about this project? Test again. I tried to add a little code, so that this function would wait until google exists, but then something else complained about not finding google :/ Was that the right way of doing it? In the Avada > Contact form > Google Map Styling - I did have that set to Custom, but switching it back to the Default Styling did not change the error. I'm running some map tests locally with Avada 5.7.2 and I'm not experiencing the same error you described. Toolset support works 6 days per week, 19 hours per day. Let me know how much you want to code yourself, so I can make a suggestion. Everyone can read this forum, but only Toolset clients can post in it. The error message is gone, but my Google Map wont show up neither Any idea? Sorry for the delay, if you are able you could send us your copy as well, so we can use it with our license via complianz.io/contact/ or us wetransfer.com. I mentioned getting the BeTheme, but all I got received was a Dev License by BeTheme, I asked for the files, but not yet received them. to your account. Activate a default theme like Twenty Nineteen, then test again. This support ticket is created 3 years, 6 months ago. Note, we are also using a CDN and Breeze plugin for caching. Please file a new issue if you are encountering a similar or related problem. Last updated by Eric 3 years, 6 months ago. Yeah, as expected it is the Avada theme unfortunately this leaves little room for me and my client as I can't undo the theme selection. Hi, please try the following troubleshooting steps first: - Also in Avada > Theme Options > Advanced > Dynamic CSS and JS, temporarily disable the JavaScript compiler if it's in use. You signed in with another tab or window. This action has been performed automatically by a bot. https://stackblitz.com/edit/components-issue-8f7l3p?file=src%2Fapp%2Fexample-component.ts, fix(google-maps): instantiate geocoder lazily, fix(google-maps): instantiate geocoder lazily (. Need to tell us something about the quality of support, How to remove personal information from your database for support.
Replace initMap with a variable from the inline script which runs the init, or the URL where this script resides. - If the problem is not resolved, I'll be glad to take a closer look. But I still dont get it to work
- etc. I have a copy of BeTheme, so whoever is first:-), I did as described in the How to use these integrations section. bug(GeoCoder): ERROR ReferenceError: google is not defined. Otherwise, I need to get my hands on BeTheme and create an integration. Just in case, I turned these off as well when doing the tests. - Layouts JS In the console the following error occurs: In Safe Mode it works, and also if we turn off Google Maps in the integrations. I attempted each of your suggestions w/o success. Well occasionally send you account related emails. - Clear your browser cache, log out, and log back in. Does anyone have any ideas? Already on GitHub? By clicking Sign up for GitHub, you agree to our terms of service and Sign in - If the problem is resolved, reactivate your theme and other plugins one by one until the problem returns. - Go to Avada > Theme Options > Advanced > Dynamic CSS and JS, and reset Fusion caches.