WordPress.org

Forums

Unexpected token ILLEGAL, even on clean install (3 posts)

  1. say_hello
    Member
    Posted 1 year ago #

    I've been working on a new project and while been working on the front-end, I didn't had any problem. However, I start noticing that some features on the back office (like slide down menus) weren't working. So I fired up debugging console of my browser and found that there is an intermittent issue:

    Uncaught SyntaxError: Unexpected token ILLEGAL load-scripts.php:1
        load-scripts.php?c=1&load%5B%5D=jquery,utils,json2&ver=3.5.1:1
        other times.
    ..

    I had issues Uncaught-syntaxerror-unexpected-token-illegal

    was not able to do configurations of the widgets in wp 3.9
    was not able to access the set-options page
    was not able to switch the accessible mode

    btw .- see the page: http://www.literaturen.org - a non profit page: it is BETA-BETA

    btw - the magic_quotes_gpc, magic_quotes_runtime, are not set off
    do you think that this may help.

    i would be happy to hear from you

    WHAT I WAS INVESTIGATIN SO FAR:

    Uncaught SyntaxError: Unexpected token ILLEGAL load-scripts.php:1
    Uncaught ReferenceError: jQuery is not defined load-scripts.php:2
    (anonymous function)

    Similar issues found in different browsers: Chrome, Safari and Firefox.
    Next step was googling for some answers and found a reference for javascript diagnose here. When I enable SCRIPT_DEBUG, the error stops, and everything runs smoothly again.

    At this moment I don't have any plugin nor theme installed and been running in localhost.

    Couldn't find yet a solution. Any ideas?

  2. say_hello
    Member
    Posted 1 year ago #

    hello here some more findings:

    i ame not able to do many things under dashboard.

    Guess that the issue is not arisen due to jQuery itself.
    It's due to inappropriate calling of jQuery by plugins and/or themes violating WordPress plugins/themes development standard.

  3. Off topic: say_hello? Could you please stop creating and replying to multiple topics about the samething? I've deleted that other duplicate topic.

Topic Closed

This topic has been closed to new replies.

About this Topic