• Resolved justin85

    (@justin85)


    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!

Viewing 1 replies (of 1 total)
  • Thread Starter justin85

    (@justin85)

    Figured out.

    For issue 2). the plugin conflicts with wp-d3 plugin which was outdated, all works after removed the wp-d3 plugin.

    btw the 1.7.0.2 fixed everything.

    Thanks author!

    topic closed.

Viewing 1 replies (of 1 total)

The topic ‘Uncaught SyntaxError: Unexpected token ‘<'’ is closed to new replies.