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

I am developing a wordpress plugin locally using:

  • MAMP (updated to PHP 5.4.4)
  • Phpstorm
  • Chrome

I disabled the short tag, magic quotes and zlib compression, but sometimes it load-scripts.phpreturns all gibberish:

Broken page

There are no styles in the administration area, and none of the scripts on the page load or work.

Sometimes, although they work with several hard updates (shift + cmd + r)

I saw several similar examples and tried to correct them, but to no avail (therefore, disabling short tags, magic quotes, and zlib compression).

I tried it in Firefox and it breaks ... but when I refresh the page several times, the problem disappears.

I can not reproduce the problem in Safari.

+5
7

. cookie .

+11

, hakre, MAMP. , MAMP > "" > "PHP" "" "-". MAMP, - cookie .

+12

cookie. -.

, , , - apache, , - , -, PHP , .

- . . .

, , , - . - - .

- , , , , .

+1

wp-includes .

0

- Mamp, .

cookie, .

0

, DOMDocument () , wasn ' . - :

$xml->save("TEMP/test.xml");

TEMP , , .

(, $xml->save("test.xml"); .

0

, , . , Empty Cache and Hard Reload .

0

All Articles