• Resolved bkf0

    (@bentleykfrog)


    Recently I’ve had an issue regarding the load-styles.php stylesheets in the wordpress admin. The problem presents itself by not loading some admin stylesheets; for example: the stylesheet ‘../wp-admin/load-styles.php?c=1&dir=ltr&load=admin-bar,wp-admin&ver=3.4.1’ presents itself as a blank page in Firebug’s css editor and shows 0 rules in Firefox’s Style Editor.

    Loading the stylesheet directly in the browser presents either a gzlib error or a ‘page not found’ page. Curiously if you change the ‘c=1’ to ‘c=0’ the stylesheet loads correctly. This suggests to me that compression is failing in the load-styles.php script. It also suggests, since the stylesheet issue has only presented itself in the last week, that there is an error occurring with gzlib on my hosting server, and that the issue is not with wordpress.

    The easiest way to resolve this without editing the core wordpress files is to change the value of ‘can_compress_scripts’ to 0 in the options table of the wordpress database (typically wp_options). I’m not sure yet of any possible conflicts that can occur by modifying this value. To be extra cautious, I’d recommend re-installing wordpress and re-creating the wordpress database on your hosting server first.

Viewing 1 replies (of 1 total)
  • joemoe1984

    (@joemoe1984)

    Thanks for the overview of whats happening. I was able to figure out what was going on with my local installation from the information your provided.

    My fix had nothing to do with WordPress at all but with one of the PHP modules that wasn’t loaded. If you go into your php.ini file look for the following line.

    zlib.output_compression = Off

    Change that to

    zlib.output_compression = On

    Restart your Apache server and then try again. All my Admin pages were loading the styles properly now.

Viewing 1 replies (of 1 total)
  • The topic ‘gzdeflate() and load-styles.php issue’ is closed to new replies.