JS Error breaking other things
-
Hi,
I’ve had several people who are using my free theme complaining that images have stopped displaying on their homepage. When they disable WP Google Maps they start working again.
I’ve had a look and there is a JS error in the inspector that’s preventing other scripts from running properly:Uncaught TypeError: Cannot read property ‘match’ of undefined
wpgmaps.js?ver=7.0.00b:1238var m = data.center.match(/-?\d+(\.\d*)?/g);
Is this a known fault or is there a fix for this?
I have a theme option that allows users to paste the WP Google Maps shortcode in so it displays in a specific part of the homepage.
Here is part of the display code:echo wp_kses( do_shortcode( $mapShortcode ), 'post');
Any help would be much appreciated.
Thanks
Steven
- The topic ‘JS Error breaking other things’ is closed to new replies.