Tam Nguyen Photography

New York Beauty and Fashion Photographer

WordPress 3.5 Borked Admin Area? This Might Fix it

Posted on December 11, 2012 in Technology, Tips

WordPress 3.5 Borked Admin Area? This Might Fix it

If you run a WordPress blog and you have some security features, for example, Jeff Starr’s .htaccess firewall or BulletProof Security plugin, you may find that after upgrading to WordPress 3.5, your admin area has some of the below issues:

1. Admin menu flyouts not working
2. Can’t add media in pages/posts/or in the media area
3. Twenty Twelve theme did not load fully on first upgrade

As it turns out, this is due to the .htaccess security feature that blocks WordPress from loading jQuery. Going forward, WordPress will load its jQuery in the backend as followed:

http://example.com/wp-admin/load-scripts.php?c=0&load[]=jquery,utils,json2&ver=3.5

You notice the squared brackets in the request URL? That’s what’s causing the problem. If you disable your BPS plugin, or remove the following line in your .htaccess file, things should return to normal:

RewriteCond %{QUERY_STRING} \[ [NC,OR]
RewriteCond %{QUERY_STRING} \] [NC]

It looks like WordPress developers have decided to load the script dynamically, so the request URL might be here to stay. If you have any questions, feel free to drop a line below.

Update: I also noticed that the default oEmbed media size is no longer available in Settings >> Media Settings. It looks like if your theme doesn’t set the default $content_width, WordPress will use 500px. Here’s where to modify the code in your function.php (edit the $content_width variable)

function my_content_width() {
	global $content_width;
	$content_width = xxx;
}
add_action( 'template_redirect', 'my_content_width' );

15 Comments

  1. Obert Madondo December 11, 2012

    Thanks. I met with the same issues. My admin area is broken. a) the fly-out function on the dashboard menu isn’t working. b) some tubs are frozen (Screen Options, Help, etc) c) the Post Area is missing most of the menu items, except “media”, “visual” and “text” d) the post area doesn’t allow me to type stuff. Essentially, I can’t create and publish posts. I don’t have any security plugins like BulletProof Security. But I do have the likes of Disqus, Akismet, Caching, backup and SEO plugins. Your help is appreciated in advance.

    • Moran December 19, 2012

       Obert, after searching everywhere I found someone with the same problem who had the solution. Just add this line of code into your wp-config.php file … put it on the 2nd last line.

      define(‘CONCATENATE_SCRIPTS’, false );

      • Tam Nguyen Photography December 20, 2012

        WordPress combines a bunch of scripts in the backend and loads them up all at once when you visit the admin area. When you specify that line in your wp-config.php, it stops WordPress from bunching the scripts together. It’s only a workaround, not a fix.

        A true fix would be for WordPress to escape those special characters in the URL and use URL encoder instead.

      • Fabio Poletto January 7, 2013

        Waiting for news on that matter. If you hear of something, please be kind enough to share it here.

        Thanks!

      • Obert Madondo December 21, 2012

        The code resolved the issue. Thanks so much!

      • Fabio Poletto January 7, 2013

        I had the same problem, after installing WordPress 3.5, and this last bit solved the problem for me, too.

        Just writing to let you know. Thank you very much!

      • Bobin January 19, 2013

        this solution saved my WP. Thanks a lot

      • Terry January 22, 2013

        Thank you that fixed my issue!

  2. Andrew December 15, 2012

    I have similar problem after upgrading to 3.5:
    1. Flyouts not working,
    2. Cannot add text to post
    3. My theme options are broken and I can’t update it

    I previously used BPS security but have deleted it long time ago.

    Apparently, re-installing BPS security fixed my problems,
    I deactivated and deleted it again afterwards and things are okay now.

    Thanks!

    • Andy Johnsen December 29, 2012

      Just wanted to say this worked for me too.  My BPS Security plugin had been deactivated and them deleted prior to upgrading to 3.5.  After experiencing the jQuery issues in the admin area (no flyouts, etc.) I re-installed the plugin, activated it, then deactivated it and deleted it.  All’s fine now.

    • Andy Johnsen December 29, 2012

      Just wanted to say this worked for me too.  My BPS Security plugin had been deactivated and them deleted prior to upgrading to 3.5.  After experiencing the jQuery issues in the admin area (no flyouts, etc.) I re-installed the plugin, activated it, then deactivated it and deleted it.  All’s fine now.

  3. Alain May 1, 2013

    Hi all
    Hi have exactly the same problem 🙁
    Who can help me ? because I didn’t understand what to do and I have just launch my new website.
    Please help
    Thank’s!

Leave a Reply

Your email address will not be published. Required fields are marked *