• Resolved bt_dev

    (@biotrace)


    We had a fairly old version of the plugin (sorry not sure what version it was previously) and after updating we are getting a javascript console error and the map is not loading. Please let me know if this is a known issue and any work arounds. Thanks! (API key changed for security)

    Uncaught (in promise) InvalidValueError: _wpgmzaMapEngineLoadedCallback is not a function at .mg (js?v=quarterly&language=en&libraries=geometry%2Cplaces%2Cvisualization&key=vbnvQLxxxxxnvnvbnVdsfsdfsdfvfdM&callback=__wpgmzaMapEngineLoadedCallback&ver=xxx)
    at Eea (js?v=quarterly&language=en&libraries=geometry%2Cplaces%2Cvisualization&key=vbnvQLxxxxxnvnvbnVdsfsdfsdfvfdM&callback=__wpgmzaMapEngineLoadedCallback&ver=xxx)
    at js?v=quarterly&language=en&libraries=geometry%2Cplaces%2Cvisualization&key=vbnvQLxxxxxnvnvbnVdsfsdfsdfvfdM&callback=__wpgmzaMapEngineLoadedCallback&ver=xxx

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter bt_dev

    (@biotrace)

    UPDATE: Ok, we have narrowed the issue down to the WP Rocket caching plugin. The map displays fine when WP Rocket is disabled but does not display and returns JS error when enabled.

    Is there known a workaround for compatibility with WP Rocket?

    Plugin Author DylanAuty

    (@dylanauty)

    Hi @biotrace,

    Thank you for getting in touch, we do appreciate your time.

    Optimization plugins like WP Rocket are supported but, yes they may require some additional configuration to get working as expected.

    Unfortunately, we don’t have a details guide specifically aimed at WP Rocket, but the key points would be:

    • Don’t combine external files. The Google Maps API must be loaded remotely
    • Deferred/Async loading may need to be disabled or reconfigured so it does not alter the loading order for our code files
    • In some cases, optimizing inline JavaScript can cause issues with map initialization

    If you’d like to get in touch with us on our website, I’d be happy to help you configure this specifically for your site/setup.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Javascript error after plugin update’ is closed to new replies.