Uncaught SyntaxError: Unexpected token ‘<'
-
WP version:5.4.2
WP-GPX-Maps Version: 1.7.01
Thanks for this great plugin!
I have upgraded to the latest version and i didn’t experience the login issues, however, I found:
1) Jetpack won’t connect to my site.
2) The Maps on the next published pages won’t show up anymore.For issue 1), I removed the texts after “?>” on the wp-gpx-maps-admin.php and it works.
For issue 2), I have observed:
a) the maps won’t show up anymore and the chart won’t show up anymore
b) the summary table shows correctly.I have tried:
a) check the previous posts with sgpx short code, they all work. then I rebooted the host server and still works.
b) copy the same shortcode to a new post, it does NOT work.at this situation, I use chrome dev tools to check the js console output and find the error:
Uncaught SyntaxError: Unexpected token ‘<‘ (index):xxx
</p></div><p> <script type="text/javascript"></p><p> jQuery(document).ready(function() {</p><p> jQuery( "#wpgpxmaps_2120_3767435" ).wpgpxmaps( {I think it relates to some syntax error but I have run the js file with some syntax checker but no luck. also, I tried to rollback to previous version which is 1.7.00 the problem persists.
Please kindly share me your ideas about how to fix this.
Thank you!
The topic ‘Uncaught SyntaxError: Unexpected token ‘<'’ is closed to new replies.