WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] 2.5 Admin Ajax Javascript Broken (22 posts)

  1. thefatguy
    Member
    Posted 6 years ago #

    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.

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    Check the wp-content/cache/js-cache folder. Delete anything you find in there. Delete anything you find in the cache folder for that matter.

    I have no idea how jquery could get messed up though. Verify that the copy on your server is identical to the normal one in your download. Maybe something on your server is messing with it.

    Look for other copies of jquery on your site. Maybe something else is injecting a different version into the page.

  3. thefatguy
    Member
    Posted 6 years ago #

    I'm sorry, Otto, but I have posted this twice - it looked to me here like it was getting eaten. Feel free to delete my other moron posts.

  4. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    It was getting eaten. I fixed it. No worries.

  5. thefatguy
    Member
    Posted 6 years ago #

    Well, durn...I have no wp-content/cache/js-cache.

    Regarding jquery.js, I've done the following:
    - re-uploaded from the original 2.5 download
    - re-downloaded 2.5 and then re-uploaded
    - downloaded from the working test site, and uploaded to the production site.
    Indeed, I've uploaded the files and directories so many times last night and this morning that I don't think there's a combo I've missed.

  6. thefatguy
    Member
    Posted 6 years ago #

    Well, I found the problem. One of my other administrators had changed the content encoding to UTF-7. I can't believe that I missed that in two debugging sessions. My apologies for clogging up the forums.

    I'm off to chop off some heads, or at least some fingers.

  7. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    LOL. Is UTF-7 the predecessor to UTF-8? :-D

  8. thefatguy
    Member
    Posted 6 years ago #

    What I think it is, is a one-hour and three-letter difference from UTC-7.

    No kidding.

  9. granted
    Member
    Posted 6 years ago #

    How did they change the encoding? And how did you change it back? I'm having a similar problem since upgrading to 2.5.1 when trying to edit or write posts. When I open a draft post (any one) Firebug shows an error over and over with jquery. Eventually it gets in the thousands and my host cuts me off for overloading their cpu.

    I've tried re-upgrading 2.5.1 and downgrading to 2.5 by restoring backups, but to no avail. I've deactivated all plugins. The problem shows in IE, Safari and Firefox on both of my Windows XP Pro computers.

    Any help would be appreciated!

  10. askapache
    Member
    Posted 6 years ago #

    I'm also seeing the same thing.. I think it started when I turned on a plugin a day ago and nothing will fix it.. heres the error in firefox

    jQuery is not defined

    the dashboard feeds don't work, the mediaupload doesn't show up.. weird.

  11. askapache
    Member
    Posted 6 years ago #

    Another error when I go to write a new page..

    edToolbar is not defined
    http://www.site.com/wp-admin/page-new.php
    Line 777
  12. askapache
    Member
    Posted 6 years ago #

    When I go to edit a dashboard feed.
    syntax error
    http://www.site.com/wp-admin/js/common.js?ver=20080318
    Line 1`

    jQuery is not defined
    http://www.site.com/wp-admin/index.php?edit=dashboard_secondary#dashboard_secondary
    Line 330
    jQuery is not defined
    http://www.site.com/wp-admin/index.php?edit=dashboard_secondary#dashboard_secondary
    Line 495

    Go to the themes page

    jQuery is not defined
    http://www.site.com/wp-admin/themes.php
    Line 330

    on the deactivating plugins

    syntax error
    http://www.site.com/wp-admin/js/common.js?ver=20080318
    Line 1
    jQuery is not defined
    http://www.site.com/wp-admin/plugins.php?deactivate=true
    Line 323
    syntax error
    http://www.site.com/wp-admin/js/common.js?ver=20080318
    Line 1
  13. askapache
    Member
    Posted 6 years ago #

    *sheepish grin*

    oops it was because of a 301 redirecting /wp-admin/js/ to /js/

  14. jobesmind
    Member
    Posted 6 years ago #

    Here you go;

    So jQuery has been used as trojan all over, major companies like WatchGuard (makers of the firebox) have decieded they had enough and have blocked it. Try going to a friends house or something, I cant blog at work because of the firebox lol but can at home just fine.

    2008-05-02 17:02:01 Deny 74.208.70.163 http/tcp 51710 80 1-Trusted 0-External ProxyDrop: HTTP Virus found   (HTTP-proxy-00) HTTP-Client.1 src_ip_nat="74.219.101.194" src_port_nat="10173" rc="593" msg_id="262184" proxy_act="HTTP-Client.1" virus="Trojan.Downloader.JS.Agent-1" host="www.cpuhead.com" path="/wp-includes/js/jquery/jquery.js?ver=1.2.3" 	Traffic

    also i cannot download the WP package becasue it contains the "trojan" lol

    Log

    2008-05-02 17:00:55 Deny 72.233.56.139 http/tcp 51654 80 1-Trusted 0-External ProxyDrop: HTTP Virus found   (HTTP-proxy-00) HTTP-Client.1 src_ip_nat="74.219.101.194" src_port_nat="10091" rc="593" msg_id="262184" proxy_act="HTTP-Client.1" virus="Exploit.Gif.PHPembedded" host="wordpress.org" path="/latest.zip" 	Traffic

    Go figure

  15. slicksno
    Member
    Posted 6 years ago #

    I am also having a problem with creating a post or uploading images. I can't even get to the screen to insert any images, my browser just sits there with the gray screen, tried both IE and Firefox. I notice the the 'Save' and 'Publish' buttons are blinking in the background. This also happens when WP tries to create my permalink automatically at the top of the post. It takes a long time and the 'Save' and 'Publish' buttons are blinking. This is the first post I have tried to create since upgrading to 2.5.1.

  16. mskogly
    Member
    Posted 6 years ago #

    When I deactivate all plugins drag and drop of widgets starts to work again. Hmmm.

  17. mskogly
    Member
    Posted 6 years ago #

    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.

  18. tgwilson
    Member
    Posted 6 years ago #

    We managed to fix this by disabling autosaves with this plugin: http://samm.dreamhosters.com/wordpress/plugins/disable-autosave.php

  19. slicksno
    Member
    Posted 6 years ago #

    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.

  20. millisami
    Member
    Posted 6 years ago #

    I'm also having the same problem.
    (jQuery is not defined)
    Hasn't anyone got any remedy for this problem yet??

  21. happypwc
    Member
    Posted 6 years ago #

    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 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.

  22. happypwc
    Member
    Posted 6 years ago #

    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 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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.