• Resolved ojasya

    (@ojasya)


    Hey there

    Thanks for the great plugin

    After latest update in plugins I am getting this error

    Uncaught TypeError: Cannot read properties of undefined (reading ‘createInstance’)

    if Delay Javascript Execution option is on in the cache plugin(wp Rocket)

    If I deactivate this option, everything works fine. Before plugin updates(both Wp google map & wp rocket) it used to work okay with this option enable too

    Looking forward for a solution

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @ojasya,

    Thank you so much for getting in touch, we really appreciate your time.

    Unfortunately, delaying specific scripts from executing can cause a few issues as WP Google Maps sends a request to the Google Maps API in order to generate the map data which only once has returned, is WP Google Maps able to apply and manipulate some of this data so the script order is quite important.

    I don’t believe there were any changes to the script calls in the latest WP Google Maps update, however, script delays can cause issues as mentioned.

    Might I suggest perhaps adding exclusions for the WP Google Maps script files to WP Rocket and confirming if this perhaps helps?

    Additionally, feel free to get in touch with us directly via our website as one of our agents will be more than happy to take a closer look at any other options.

    Kindest Regards,
    Steven De Beer

    Thread Starter ojasya

    (@ojasya)

    Hi @stevendebeer

    Thanks for your prompt reply!

    Yes your explanation completely makes sense.
    If you can help me with excluding required scripts, that would be awesome.

    Thanks

    • This reply was modified 2 years, 11 months ago by ojasya.

    Hi @ojasya,

    Thank you so much for getting back to me.

    If possible, the full file directory that can be excluded is as follows:
    wp-content/plugins/wp-google-maps/js
    and
    wp-content/plugins/wp-google-maps/js/v8

    If WP Rocket requires you to specifically exclude the .js files, this should look something like the below:
    wp-content/plugins/wp-google-maps/js/dataTables.responsive.js
    wp-content/plugins/wp-google-maps/js/jQuery.dataTables.js
    wp-content/plugins/wp-google-maps/js/v8/wp-google-maps.min.js

    Kindly note, this is for WP Google Maps so if you require any additional assistance, feel free to get in touch with us directly via our website.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cannot read properties of undefined (reading ‘createInstance’)’ is closed to new replies.