Hi !
I use Enfold and Advanced Custom Field.
Since (i think) the Enfold update regarding the google map API key, acf’s google map field in back-office froze after 2-3 second.
I tried :
– switch to Twenty Sixteen : it works.
– switch back to Enfold : it freeze. And the console fill itself with a lot of errors :
js?v=3&libraries=places&callback=google.loader.callbacks.maps:78 Uncaught TypeError: Cannot read property '2' of undefined
util.js:210 Uncaught TypeError: _.m is not a function
common.js:211 Uncaught TypeError: _.m is not a function
2common.js:11 Uncaught TypeError: _.L is not a constructor
common.js:39 Uncaught TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.
js?v=3&libraries=places&callback=google.loader.callbacks.maps:108 Uncaught TypeError: _.H is not a constructor
common.js:5 Uncaught TypeError: Cannot read property '27' of undefined
[...]
I tried with or without the API key.
I contacted ACF support too.
Any idea ?
Thanks
Hi szed,
Please send us a temporary admin login so that we can have a closer look. You can post the details in the Private Content section of your reply.
Regards,
Rikard
Hi,
ok :)
Thank you!
Hello!
Any luck ? :)
Hi,
We’ve notified Kriesi about this issue.
Best regards,
Josue
has this been fixed?
Nop.
I tried again yesterday with Enfold + ACF up to date and same issue.
Here is the solution do deactivate one of the 2 GMap API loaded :
add_filter( ‘avf_load_google_map_api’, ‘__return_false’ );
in your function.php
Hey!
Did the filter work? What if you have a map widget in the page?
Related thread: https://kriesi.at/support/topic/third-party-google-map-plugin/#post-681515
The filter is basically the same with yours but it will also disable the map widget api.
Regards,
Ismael