• Resolved DenFunk

    (@denfunk)


    Version 2.1.8, PHP 7.4, WP 5.5

    Uncaught SyntaxError: Unexpected end of JSON input
        at JSON.parse (<anonymous>)
        at setTitlePreview (snippetpreview.js?ver=2.1.7:1)
        at updateAll (snippetpreview.js?ver=2.1.7:1)
        at HTMLDocument.<anonymous> (snippetpreview.js?ver=2.1.7:1)
        at i (load-scripts.php?c=0&load[chunk_0]=jquery,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,underscore,moxiejs,plupload,jquery-ui-tabs,wp-co&load[chunk_1]=demirror&ver=5.5:2)
        at Object.fireWith [as resolveWith] (load-scripts.php?c=0&load[chunk_0]=jquery,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,underscore,moxiejs,plupload,jquery-ui-tabs,wp-co&load[chunk_1]=demirror&ver=5.5:2)
        at Function.ready (load-scripts.php?c=0&load[chunk_0]=jquery,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,underscore,moxiejs,plupload,jquery-ui-tabs,wp-co&load[chunk_1]=demirror&ver=5.5:2)
        at HTMLDocument.J (load-scripts.php?c=0&load[chunk_0]=jquery,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,underscore,moxiejs,plupload,jquery-ui-tabs,wp-co&load[chunk_1]=demirror&ver=5.5:2)
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Rajesh

    (@rajesh-babu)

    Can you tell me where does this happen? while creating new post or editing an existing post?

    Have you tried disabling all other plugins while having this plugin active? The reason is there has been a change in jQuery version and if another plugin tries to consolidate all the javascript files, it might be a problem.

    Plugin Author Rajesh

    (@rajesh-babu)

    Thanks for reporting this bug. Just checked the other bugs reported and it seem to happen on Page screens since WP 5.5. I have fixed this and am currently testing it. Will release a new version by tomorrow.

    • This reply was modified 4 years, 3 months ago by Rajesh.

    Thanks for reporting and fix.

    I am facing the same problem right now.

    • This reply was modified 4 years, 3 months ago by Victor_K.
    Thread Starter DenFunk

    (@denfunk)

    while creating new post and editing an existing post

    Thanks for fix.

    UPD New error after plugin updated

    Uncaught SyntaxError: Unexpected token \ in JSON at position 62
        at JSON.parse (<anonymous>)
        at setTitlePreview (snippetpreview.js?ver=2.1.7:1)
        at updateAll (snippetpreview.js?ver=2.1.7:1)
        at HTMLDocument.<anonymous> (snippetpreview.js?ver=2.1.7:1)
        at i (load-scripts.php?c=0&load[chunk_0]=jquery,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,underscore,moxiejs,plupload,jquery-ui-tabs,wp-co&load[chunk_1]=demirror&ver=5.5:2)
        at Object.fireWith [as resolveWith] (load-scripts.php?c=0&load[chunk_0]=jquery,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,underscore,moxiejs,plupload,jquery-ui-tabs,wp-co&load[chunk_1]=demirror&ver=5.5:2)
        at Function.ready (load-scripts.php?c=0&load[chunk_0]=jquery,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,underscore,moxiejs,plupload,jquery-ui-tabs,wp-co&load[chunk_1]=demirror&ver=5.5:2)
        at HTMLDocument.J (load-scripts.php?c=0&load[chunk_0]=jquery,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,underscore,moxiejs,plupload,jquery-ui-tabs,wp-co&load[chunk_1]=demirror&ver=5.5:2)

    DevTools failed to load SourceMap: Could not parse content for https://****.ru/wp-content/plugins/platinum-seo-pack/psp-include/settings/js/bootstrap-toggle.min.js.map: Unexpected token ? in JSON at position 0

    • This reply was modified 4 years, 3 months ago by DenFunk.
    • This reply was modified 4 years, 3 months ago by DenFunk.
    • This reply was modified 4 years, 3 months ago by DenFunk.
    Plugin Author Rajesh

    (@rajesh-babu)

    A new version 2.1.9 has been released to fix this. let us know if it works and if you like the plugin do leave a review, rating and feedback.

    Thread Starter DenFunk

    (@denfunk)

    This bug is in 2.1.9. Later I will fix this error on my site. After I will write about it.

    Plugin Author Rajesh

    (@rajesh-babu)

    v 2.1.9 had been released 3 hours ago! The bug was in page editor and not Post editor screen.
    1) Have you tried clearing browser cache? if not, clear the cache.
    2) If you are using other plugins and haven’t updated any plugin after WP 5.5 release, do disable other plugins and just have platinum SEO plugin enabled. Then, check if the error occurs.

    • This reply was modified 4 years, 3 months ago by Rajesh.
    Plugin Author Rajesh

    (@rajesh-babu)

    Closing this as the problem has been resolved and the user hasn’t got back.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Uncaught SyntaxError: Unexpected end of JSON input’ is closed to new replies.