Tagged: maps
-
AuthorPosts
-
September 10, 2018 at 12:13 pm #1007865
Hi,
We have a problem with enfold and the plugin “Chauffeur Booking System for WordPress”. In the admin panel for the plugin we can not see all its options becouse we get this error in the console:
InvalidValueError: setMap: not an instance of Map
Here you have the full issue:
https://ibb.co/bN8LVUIf we disable enfold and select other theme, the error disappears and the plugin works fine. We have tried disabling the maps load in the enfold performance option, but even so, the problem continues.
Do you know how we can fix this issue?
Thanks for your help.
September 10, 2018 at 12:18 pm #1007868Hey,
Thanks for contacting us!
To make sure, have you referred to this post – https://kriesi.at/documentation/enfold/google-map/#how-to-register-a-google-maps-api-key and inserted API key in Enfold theme options?
Regards,
YigitSeptember 10, 2018 at 12:25 pm #1007871Hi,
Sure, we reviewed all, and we have a api configured in this moment to can use the maps also in the pages created with enfold where we add a map with the enfold options.Here you have the option checked in the admin panel:
https://ibb.co/kp1tH9Thanks .
September 10, 2018 at 12:41 pm #1007879Hi,
Please create us an admin account and I’ll check if I can find any reasons for this error.
Best regards,
PeterSeptember 10, 2018 at 1:16 pm #1007908This reply has been marked as private.September 11, 2018 at 6:52 am #1008195Hi,
Thanks for that, though the htaccess details are not working. Could you check and verify please?
Best regards,
RikardSeptember 11, 2018 at 9:26 am #1008279Hi,
The details are ok, please try again.
Thanks for your help.
September 11, 2018 at 8:56 pm #1008607Hi temptel,
Best regards,
VictoriaSeptember 12, 2018 at 10:17 am #1008819Hi Victoria,
The problem is in the admin panel, you can see the error here:
https://ibb.co/bN8LVU
I pasted you the url where you can see that error in private. With this error not all the features over the maps work, by example a system to draw over the map. When we disable Enfold and active other theme, these features work fine.
Regards.September 12, 2018 at 10:49 am #1008838Hi,
Please try to add this code to the child theme functions.php:
add_filter('avf_load_google_map_api_prohibited', 'avia_block_theme_google_maps', 10, 1); function avia_block_theme_google_maps($block) { global $post; if(is_admin() && !empty($post->ID) && ($post->ID == 10007)) $block = true; return $block; }
It should block the google maps api loaded by enfold on the page you gave us.
Best regards,
PeterSeptember 13, 2018 at 11:17 am #1009328Hi Dude,
Problem fixed with that code!
Thanks!!
September 13, 2018 at 1:48 pm #1009395Hi,
Great, glad I could help you :)
Best regards,
Peter -
AuthorPosts
- You must be logged in to reply to this topic.