Title: Javascript error after plugin update
Last modified: November 28, 2023

---

# Javascript error after plugin update

 *  Resolved [bt_dev](https://wordpress.org/support/users/biotrace/)
 * (@biotrace)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/javascript-error-after-plugin-update-2/)
 * 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](https://wordpress.org/support/users/biotrace/)
 * (@biotrace)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/javascript-error-after-plugin-update-2/#post-17240265)
 * 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](https://wordpress.org/support/users/dylanauty/)
 * (@dylanauty)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/javascript-error-after-plugin-update-2/#post-17240920)
 * Hi [@biotrace](https://wordpress.org/support/users/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](https://www.wpgmaps.com/contact-us/),
   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.

 * ![](https://ps.w.org/wp-google-maps/assets/icon-256x256.png?rev=3058363)
 * [WP Go Maps - Google Maps, OpenStreetMap, Leaflet Map](https://wordpress.org/plugins/wp-google-maps/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-google-maps/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-google-maps/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-google-maps/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-google-maps/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-google-maps/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [DylanAuty](https://wordpress.org/support/users/dylanauty/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/javascript-error-after-plugin-update-2/#post-17240920)
 * Status: resolved