Title: 2.5 Admin Ajax Javascript Broken
Last modified: August 19, 2016

---

# 2.5 Admin Ajax Javascript Broken

 *  Resolved [thefatguy](https://wordpress.org/support/users/thefatguy/)
 * (@thefatguy)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/25-admin-ajax-javascript-broken/)
 * This one has me completely stumped. We (three different authors) have lost all
   functionality in the wp-admin areas. The installation / upgrade from 2.3.3 was
   a complete re-install and literally everything worked just fine for a eight days,
   then boom, gone. The odd thing, to me, is that I have a testing blog set up on
   the same host (VPS, running Red Hat Enterprise Linx) that is **NOT** experiencing
   these Admin problems, and is running all the same plugins.
 * It appears to me that there is some kind of error in jquery.js that I cannot 
   seem to fix. Here is the output from Firebug when I try to **Write a New Post**:
 *     ```
       missing ) after argument list
       [Break on this error] [c])p=p.replace(new RegExp('\\b'(c)'\\b','g'),k[c]);return p}('(J(){7(1e.3N)L w=...
       jquery.js (line 11)
       jQuery is not defined
       [Break on this error] jQuery(document).ready( function() {
       common.js (line 1)
       missing ) after argument list
       [Break on this error] Math.max(Math.min( parseInt((fx.pos * (fx.end[0] - fx.start[0]))...
       jquery.color.js (line 18)
       missing ) after argument list
       [Break on this error] ng"&&typeof fn[0]=="undefined"&&RegExp("function","i").test(fn""));};var i=0;var...
       jquery.schedule.j... (line 2)
       missing ) after argument list
       [Break on this error] var re = jQuery('#' r).html('');\n
       wp-ajax-response.... (line 15)
       missing ; before statement
       [Break on this error] autosaveLast = $('#post #title').val()$('#post #content').val();\n
       autosave.js (line 6)
       missing ] in index expression
       [Break on this error] (function($){$.dimensions={version:'1.2'};$.each(['Height','Width'],function(i,n...
       jquery.dimensions... (line 12)
       missing ) in parenthetical
       [Break on this error] top: (offset.top input.offsetHeight) 'px',\n
       suggest.js (line 57)
       missing ] in index expression
       [Break on this error] $.fn['tabs' method] = function() {\n
       ui.tabs.js (line 31)
       missing ) after argument list
       [Break on this error] return s.nonce || url._ajax_nonce || $('#' s.element ' input[name=_ajax_nonc...
       wp-lists.js (line 22)
       missing ) after argument list
       [Break on this error] b.html('<a href="" class="save">'뉛ꀯ崧.save'</a> <a class="cancel" href="">'뉛ꀯ崧.c...
       slug.js (line 11)
       unmatched ) in regular expression
       [Break on this error] jQuery( '#tags-input' ).val( new_tags.join( ',' ).replace( /\s*,\s*/, ',' ).rep...
       post.js (line 14)
       missing ; before statement
       [Break on this error] document.getElementById('content').style.height = H.ch - 30 'px';\n
       editor.js (line 9)
       missing ) after argument list
       [Break on this error] jQuery("body").append("<div id='TB_load'><img src='"詨஡Ꝟ.src"' /></div>");//add...
       thickbox.js (line 56)
       missing ; before statement
       [Break on this error] while (str.length < threshold) { str = "0" str }\n
       quicktags.js (line 22)
       f has no properties
       [Break on this error] var tinymce={majorVersion:'3',minorVersion:'0.6',releaseDate:'2008-03-xx',_init:...
       tiny_mce_config.p... (line 37)
       edToolbar is not defined
       [Break on this error] <script type="text/javascript">edToolbar()</script>
       ```
   
 * (I hope that code markup worked)
 * Here’s what I’ve done to try to resolve it, and none of it has helped, even briefly.
 * 1) Deactivated all plugins.
    2) Deleted all plugins. 3) Re-load wp-admin and 
   wp-includes from a fresh download of WordPress (deleted the wp-admin and wp-include
   directories, did not overwrite) 4) Cleared cache on Firefox, repeatedly. 5) Cleared
   private data on Firefox, repeatedly. 6) Forced re-load on Firefox, repeatedly.
 * Other indicators of problems:
    - I (a logged-in admin) cannot post a comment – it returns a blank page, with
      no error messages.
    - However, the scriptkiddie spammers can post comments (so my spam queue is 
      filling up rapidly.
    - Ajax/javascript functionality is lost across all Admin pages – widgets, comments,
      theme management.
    - Write Post (or Page) gets me this message: _Your attempt to add this post 
      has failed. Please try again._ Trying again does nothing. No errors reported
      by Firebug, either.
    - Cannot login with IE7.
    - Cannot recover password with IE7.
    - The problem is occurring with three different users in three different parts
      of the country. Meaning, I don’t think it’s a network cache issue.
    - Two different OSes in use – Windows XP, and MacOS
 * So, the common failure across this entire mess is a Firebug error message for
   jquery.js:
 *     ```
       missing ) after argument list
       [c])p=p.replace(new RegExp('\\b'(c)'\\b','g'),k[c]);return p}('(J(){7(1e.3N)L w=...
       ```
   
 * I’m kinda out of options here, short of nuking the database and starting from
   scratch. It’s the only difference between my production install and my test install,
   so I’m suspecting some wacky widget code is stuck in there and blowing something
   up. I’m really reluctant to do that as there are 1500+ posts, and the SQL file
   is over 13MB in size (which bugs me, as that seems excessively large, but I haven’t
   gotten into the database debug mode yet, as I’m a database moron.)
 * Any ideas whatsoever? I’m happy to post any more information that might be helpful,
   including database info.

Viewing 6 replies - 16 through 21 (of 21 total)

[←](https://wordpress.org/support/topic/25-admin-ajax-javascript-broken/?output_format=md)
[1](https://wordpress.org/support/topic/25-admin-ajax-javascript-broken/?output_format=md)
2

 *  [mskogly](https://wordpress.org/support/users/mskogly/)
 * (@mskogly)
 * [18 years ago](https://wordpress.org/support/topic/25-admin-ajax-javascript-broken/page/2/#post-746931)
 * I isolated it to the Feedwordpress plugin, if I activate it the drag and drop
   in the widget section stops working. WordPress 2.5 and 2.5.1
 * Weird stuff.
 *  [tgwilson](https://wordpress.org/support/users/tgwilson/)
 * (@tgwilson)
 * [18 years ago](https://wordpress.org/support/topic/25-admin-ajax-javascript-broken/page/2/#post-746933)
 * We managed to fix this by disabling autosaves with this plugin: [http://samm.dreamhosters.com/wordpress/plugins/disable-autosave.php](http://samm.dreamhosters.com/wordpress/plugins/disable-autosave.php)
 *  [slicksno](https://wordpress.org/support/users/slicksno/)
 * (@slicksno)
 * [18 years ago](https://wordpress.org/support/topic/25-admin-ajax-javascript-broken/page/2/#post-746934)
 * The other thing that I tried was rolling back my installation to 2.5 and just
   do the security fixes that are included in 2.5.1 and things started working again.
 *  [millisami](https://wordpress.org/support/users/millisami/)
 * (@millisami)
 * [18 years ago](https://wordpress.org/support/topic/25-admin-ajax-javascript-broken/page/2/#post-746939)
 * I’m also having the same problem.
    (jQuery is not defined) Hasn’t anyone got 
   any remedy for this problem yet??
 *  [Paul](https://wordpress.org/support/users/happypwc/)
 * (@happypwc)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/25-admin-ajax-javascript-broken/page/2/#post-746948)
 * Gentlemen, I too was having the problems mentioned here. After Googleing and 
   being frustrated, I came across the link to the SVN and downloaded post.js and
   that solved the problem.
 * Please note I used the latest version of Safari in different modes to pinpoint
   the problem and also to view my site as the other browsers do.
 * I downloaded the new post.js from [http://trac.wordpress.org/browser/trunk/wp-admin/js?rev=7975](http://trac.wordpress.org/browser/trunk/wp-admin/js?rev=7975)
   and all my problems went away. Feedwordpress and all my other plugins work fine.
   note:I download in plain text for some reason raw didnt work.
 * Not sure if it was corrupt or what but the post.js from the main zip file was
   larger than the new download post.js.
 *  [Paul](https://wordpress.org/support/users/happypwc/)
 * (@happypwc)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/25-admin-ajax-javascript-broken/page/2/#post-746951)
 * I did some rework on my server and noticed the same thing. Went to [http://trac.wordpress.org/browser/trunk/wp-admin/js?rev=7975](http://trac.wordpress.org/browser/trunk/wp-admin/js?rev=7975)
   and redid what my previous post said and now the problems disappeared again.
 * I wonder what other problems could be fixed by going to this trunk. Please note
   I did download and use the the SVN 2.5.1 tag upgrades first with the problem 
   still happening.

Viewing 6 replies - 16 through 21 (of 21 total)

[←](https://wordpress.org/support/topic/25-admin-ajax-javascript-broken/?output_format=md)
[1](https://wordpress.org/support/topic/25-admin-ajax-javascript-broken/?output_format=md)
2

The topic ‘2.5 Admin Ajax Javascript Broken’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 21 replies
 * 10 participants
 * Last reply from: [Paul](https://wordpress.org/support/users/happypwc/)
 * Last activity: [17 years, 11 months ago](https://wordpress.org/support/topic/25-admin-ajax-javascript-broken/page/2/#post-746951)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
