joelrnorris joelrnorris - 1 year ago 148
PHP Question

Uncaught SyntaxError: Unexpected token ILLEGAL load-scripts.php:1

I'm developing a wordpress plugin locally using:

  • MAMP (updated to PHP 5.4.4)

  • PhpStorm

  • Chrome

I've turned off short tag, magic quotes and zlib compression, but occasionally
comes back all gibberish:

Broken page

The admin area has no styling, and none of the scripts on the page load or work.

Occasionally, though they do work with a few hard refreshes ( shift + cmd + r )

I've seen a few similar examples and tried their fixes, to no avail (hence disabling short tags, magic quotes and zlib compression).

I've tried it in Firefox, and it breaks ... but when I hard-refresh the page a few times, the issue goes away.

I cannot replicate the issue in Safari.

Answer Source

I had the same issue. Deleting my cookies from that domain and clearing my cache fixed it.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download