Roots Discourse

Bedrock and ACF Google Maps field

Has anyone managed to successfully use a Google Maps field in ACF Pro when setting up a WP install with Bedrock? I’ve adding a maps field but on the post editor, the map box is blank with the letter ‘M’ always prepopulating the search field.

Also the following PHP warning is shown

Warning : Illegal string offset ‘address’ in /Applications/MAMP/htdocs/nvelop.eu/web/app/plugins/advanced-custom-fields-pro/includes/fields/class-acf-field-google-map.php on line 133

In the console, this JS error is present:

Uncaught SyntaxError: Unexpected token M in JSON at position 0
at JSON.parse ()
at Child.getValue (acf-input.js?ver=5.8.7:6103)
at Child.initializeMap (acf-input.js?ver=5.8.7:6206)
at _runHook (acf-input.js?ver=5.8.7:2599)
at Object.doAction (acf-input.js?ver=5.8.7:2425)
at Object.acf.doAction (acf-input.js?ver=5.8.7:865)
at Object.success (acf-input.js?ver=5.8.7:6631)
at i (jquery.js?ver=1.12.4-wp:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2)
at x (jquery.js?ver=1.12.4-wp:4)

This topic was automatically closed after 42 days. New replies are no longer allowed.