Title: PHP 5.3.6 breaking javascript?
Last modified: August 20, 2016

---

# PHP 5.3.6 breaking javascript?

 *  [krispy_b](https://wordpress.org/support/users/krispy_b/)
 * (@krispy_b)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/php-536-breaking-javascript/)
 * All of my WordPress installs on my windows 2003 server have javascript errors(
   both in jquery and tinymce), causing the editing post/page window to show in 
   a ‘plain’ form, with mosst of the functionality broken.
 * the FIRST error shows below – with it pointing at the first \” escaped quote?
   later errors show jQuery not defined, and tinymce not defined – all appears due
   to the javascript not parsing;
 * **Error: illegal character**
    Source File: [http://www.dev-decor.co.uk/wp-admin/load-scripts.php?c=1&load=jquery,utils&ver=7bb5fde83e0949a753f31e184d1c6ac7](http://www.dev-decor.co.uk/wp-admin/load-scripts.php?c=1&load=jquery,utils&ver=7bb5fde83e0949a753f31e184d1c6ac7)
   Line: 16, Column: 77 Source Code: (function(E,B){function ka(a,b,d){if(d===B&&
   a.nodeType===1){d=a.getAttribute(\”data-\”+b);if(typeof d===\”string\”){try{d
   =d===\”true\”?true:d===\”false\”?false:d===\”null\”?null:!c.isNaN(d)?parseFloat(
   d):Ja.test(d)?c.parseJSON(d):d}catch(e){}c.data(a,b,d)}else d=B}return d}function
   U(){return false}function ca(){return true}function la(a,b,d){d[0].type=a;return
   c.event.handle.apply(b,d)}function Ka(a){var b,d,e,f,h,l,k,o,x,r,A,C=[];f=[];
   h=c.data(this,this.nodeType?\”events\”:\”__events__\”);if(typeof h===\”function\”)
   h=
 * I thought my upgrades to 3.2 had caused an issue (that or installing wincache
   php extension which i’ve since disabled), but I have a single 3.14 wordpress 
   blog on the same server, which shows exactly the same symptons – all were working
   before i upgraded the PHP to 5.3.6 to enable me to upgrade to wordpress 3.2.
 * so I believe the problem (and others may be having it too), is that the PHP 5.3.6
   version with WordPress is causing issues with the javascript files that are used?
 * another website I run on the server which I wrote myself, which also uses tinymce
   is working and displaying the editor fine – so it’s def something to do with 
   how wordpress is using those javascript files?
 * please dont’ tell me to turn plugins off in my 3.2 upgraded sites, because the
   3.14 site I’ve not touched in any way has broken overnight, at the time i upgraded
   php.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [krispy_b](https://wordpress.org/support/users/krispy_b/)
 * (@krispy_b)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/php-536-breaking-javascript/#post-2169179)
 * Just as an update, as I’m seeing similar issues in others posts…
 * On one of the sites (one of the new 3.2 upgraded ones), I changed the theme to
   the new 20 eleven one – no change, javascript on admin still not loading. I didnt’
   think it would make a difference, as I said, the 3.14 untouched workdpress install
   is broken, and the only change is the new version of php in the environment.
 * when I get time (tomorrow earliest) i may try a vanilla (no plugin) install within
   a sub directory of one of my domains on the server, to see if the same issue 
   occurs there – my guess is yes.
 * the issue seems to be the javascript files getting written out differently – 
   causing the browser to error?
 * firefox is pointing to the first \” in the javascripts as the problem?
 * /*!
    * jQuery JavaScript Library v1.4.4 * [http://jquery.com/](http://jquery.com/)**
   Copyright 2010, John Resig * Dual licensed under the MIT or GPL Version 2 licenses.*
   [http://jquery.org/license](http://jquery.org/license) * * Includes Sizzle.js*
   [http://sizzlejs.com/](http://sizzlejs.com/) * Copyright 2010, The Dojo Foundation*
   Released under the MIT, BSD, and GPL Licenses. * * Date: Thu Nov 11 19:04:53 
   2010 -0500 */ (function(E,B){function ka(a,b,d){if(d===B&&a.nodeType===1){d=a.
   getAttribute(\”data ^
 * firefox also mentions charset is UTF-8 if that’s of interest
 *  [Andrew Ozz](https://wordpress.org/support/users/azaozz/)
 * (@azaozz)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/php-536-breaking-javascript/#post-2169232)
 * Try adding `define('SCRIPT_DEBUG', true);` to wp-config.php so you load the non-
   minified JS files.
 * > the FIRST error shows below – with it pointing at the first `\"` escaped quote?
 * Yes, seems something is adding `\` chars to the JS files that shouldn’t be there.
   As if they are run through addslashes(). Can you check the JS files on the server
   and confirm that the slashes aren’t there?
 *  Thread Starter [krispy_b](https://wordpress.org/support/users/krispy_b/)
 * (@krispy_b)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/php-536-breaking-javascript/#post-2169254)
 * YES!
 * > Try adding define(‘SCRIPT_DEBUG’, true); to wp-config.php so you load the non-
   > minified JS files.
 * the debug option fixed a site immediately… the tinymce editor suddenly works 
   again, icons and options are back, and the javascript errors have disappeared.
 * what is odd – where should i look for the .js files – as the main (90k) jquery.
   js files in my wp instilations – shows the header;
 * /*!
    * **jQuery JavaScript Library v1.6.1** * [http://jquery.com/](http://jquery.com/)**
   Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses.*
   [http://jquery.org/license](http://jquery.org/license) * * Includes Sizzle.js*
   [http://sizzlejs.com/](http://sizzlejs.com/) * Copyright 2011, The Dojo Foundation*
   Released under the MIT, BSD, and GPL Licenses. * * Date: Thu May 12 15:04:36 
   2011 -0400
 * yet the javascript file showing errors shows; jQuery JavaScript Library v1.4.4
 * do you know what sort of ‘hit’ in performance I’ll see running the debug mode
   on scripts?
 *  [Andrew Ozz](https://wordpress.org/support/users/azaozz/)
 * (@azaozz)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/php-536-breaking-javascript/#post-2169341)
 * Looks like something (your theme or a plugin) is loading the old version of jQuery
   everywhere. Not good.
 * SCRIPT_DEBUG forces the non-minified JS files to be loaded separately (it turns
   off concatenation too) so there is some delay especially on high latency connections.
   However that affects mostly the admin, not the front-end.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘PHP 5.3.6 breaking javascript?’ is closed to new replies.

## Tags

 * [javascript error](https://wordpress.org/support/topic-tag/javascript-error/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [Andrew Ozz](https://wordpress.org/support/users/azaozz/)
 * Last activity: [14 years, 10 months ago](https://wordpress.org/support/topic/php-536-breaking-javascript/#post-2169341)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
