Forums

[resolved] Javascript in Admin Tool Not Loading Properly (3 posts)

  1. lorisir
    Member
    Posted 2 years ago #

    Hello,

    When I login to the admin tool on my site using 2.8, I noticed none of the CSS or Javascript was working. I used Firefox's web developer toolbar to "View CSS" and it came back gobbledy-gook (all corrupt).

    I replaced all CSS files with fresh ones in the /wp-admin/css/ directory, but that didn't help at all.

    I then decided to try to upgrade to 2.8.1 to see if that would just fix my problem.

    When I tried to click on the Upgrade to 2.8.1 link in the footer of the admin tool, I got the error:

    Warning: gzuncompress() [function.gzuncompress]: data error in /[my full path]/wp-includes/http.php on line 1792

    So I upgraded via my dreamhost account which does the back-up and then replaces the files. That seemed to work, kinda.

    CSS was restored, but Javascript (including AJAX, JQuery) are not working in Admin tool.

    When I look at the Error Console in Firefox, I find this javascript error:

    Error: illegal character
    Source File: http://www.jctonline.org/wp-admin/load-scripts.php?c=1&load=jquery,utils&ver=d24248fe4b0cd62086633fd42ef1019b
    Line: 1
    Source Code:
    �is�H�&����"M����;Ӥa���M��͔����*�T��e�����y��L$@JU}cf�x+�-H$r9y�e��_

    My users have come to rely on the user-friendly nature of the admin tool in wordpress.

    How can I get the javascript to come back?

    Thanks,
    Lori

  2. lorisir
    Member
    Posted 2 years ago #

    Okay, so I tried removing the version from the querystring and accessing the javascript directly via this URL:

    http://www.jctonline.org/wp-admin/load-scripts.php?c=1&load=jquery,utils

    And some javascript now loads, but I'm not sure if it is all of it or how to remove the version from within the application.

    Any suggestions?

  3. lorisir
    Member
    Posted 2 years ago #

    I was able to fix this by replacing the http.php file as sbruner suggested in this thread:

    http://wordpress.org/support/topic/278585?replies=35

    He uploaded http.php replacement here:

    http://www.slipfire.com/download/http.txt

    The only weird thing remaining for me is that I already was up to 2.8.1 but I replaced the http.php with what he provided anyway and it seemed to make the "Warning: gzuncompress() [function.gzuncompress]...." errors go away.

    I then closed all browsers and reopened. My javascript seems to be loading properly now as well as CSS.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags