Home › Forums › WoodMart support forum › Google Map Not Working – Uncaught ReferenceError: Maplace is not defined
Google Map Not Working – Uncaught ReferenceError: Maplace is not defined
- This topic has 18 replies, 4 voices, and was last updated 6 years, 7 months ago by Artem Temos.
-
AuthorPosts
-
April 24, 2018 at 1:52 pm #54329
Zach HenshallParticipantThis is the full error from inspect on Chrome –
Uncaught ReferenceError: Maplace is not defined
at HTMLDocument.<anonymous> ((index):824)
at i (jquery.js?ver=1.12.4:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
at Function.ready (jquery.js?ver=1.12.4:2)
at HTMLDocument.K (jquery.js?ver=1.12.4:2)
util.js:229 Google Maps API warning: SensorNotRequired https://developers.google.com/maps/documentation/javascript/error-messages#sensor-not-required
ZB.j @ util.js:229
util.js:229 Google Maps API warning: RetiredVersion https://developers.google.com/maps/documentation/javascript/error-messages#retired-version
ZB.j @ util.js:229April 24, 2018 at 2:22 pm #54338
Zach HenshallParticipantJust to add, I’ve disabled all other plugins and even tried a suggestion you made to another user earlier to modify the google-map.php shortcode file without any luck. I’ve even disabled our Cloudflare CDN to ensure it is nothing there.
April 24, 2018 at 3:12 pm #54353
Elise NoromitMemberHello,
Please find woodmart/inc/shortcodes/google-map.php file and replace this line in it
woodmart_enqueue_script( ‘maplace’ );
for this line
wp_enqueue_script( ‘maplace’ );
Best Regards
April 24, 2018 at 3:21 pm #54354
Zach HenshallParticipantThanks for getting back to me.
I have already tried changing that line. I changed it back as it made no difference I didn’t want to complicate any other troubleshooting.
For what it is worth I’ve modified the line as you asked but from what I am seeing here it is still broken.
Cheers
April 24, 2018 at 4:27 pm #54365
Elise NoromitMemberHello,
Please provide your admin access and FTP
Best Regards
April 24, 2018 at 4:34 pm #54366
Zach HenshallParticipantDetails
April 25, 2018 at 6:01 am #54402
Artem TemosKeymasterOK, we are waiting for the FTP access.
April 25, 2018 at 9:03 am #54465
Zach HenshallParticipantFTP Details
April 25, 2018 at 9:06 am #54468
Artem TemosKeymasterThe data seems to be wrong. Both for WordPress dashboard and FTP. We can’t log in.
April 25, 2018 at 9:17 am #54473
Zach HenshallParticipantPassword update
April 25, 2018 at 9:33 am #54478
vikktorParticipantSame problem here, after last theme update, google maps stopped working.
From browser console:
ReferenceError: Maplace is not defined[Learn More]
kontakt:1682:5
perf_trace {“name”: “e2e”, “parent”: “PageEvents.BIGPIPE_ONLOAD”}April 25, 2018 at 9:41 am #54481
Elise NoromitMemberHello,
We have checked and see that code line has been modified in the process of copying that is why code brought no effect. Please try again and replace this line
woodmart_enqueue_script( 'maplace' );
with this one:
wp_enqueue_script( 'maplace' );
This line is in this file woodmart/inc/shortcodes/google-map.php
Best Regards
April 25, 2018 at 9:52 am #54487
Zach HenshallParticipantOkay, I see what you mean. The map container is now loading but is only showing a gray background, there is no map loading correctly.
Thanks for the help so far.
April 25, 2018 at 9:57 am #54490
Zach HenshallParticipantUPDATE – If I drop the person onto the map then street view loads but no maps…..
April 25, 2018 at 10:19 am #54495
Elise NoromitMemberApril 25, 2018 at 10:40 am #54500
Zach HenshallParticipantAh, that fixed it. Thanks so much for all the help. I’m guessing the change of code will be in the next theme update?
April 25, 2018 at 11:25 am #54505
Artem TemosKeymasterYes, we will fix it in our next theme update.
April 25, 2018 at 11:56 am #54508
vikktorParticipantHello Elise,
that line fixed it. Thanks!
April 25, 2018 at 12:54 pm #54515
Artem TemosKeymasterYou are welcome!
-
AuthorPosts
- You must be logged in to create new topics. Login / Register