• html and javascript compression worked awesome – but once I clicked on the css checkbox – I got the white screen and wouldn’t even let me in cpanel – had to get server team to remove plugin. I put plugin back and only use it for javascript and html, but I’m super bummed it won’t help me with css, because I really need it !!!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Frank Goossens

    (@futtta)

    Sorry it broke that badly tristadeleon. Kind of surprising it even broke cpanel access, as it’s only active on the frontend (there is code to explicitely do nothing when in /wp-admin/).

    Some questions;
    * What type of server are you on; shared or dedicated? linux or windows? how much memory does PHP get?
    * Do you have access to the PHP error-log, any pointers in there?
    * What theme do you use (I’d be happy to test it on my own installation)?

    kind regards,
    frank

    Thread Starter tristadeleon

    (@tristadeleon)

    Hi, thanks for replying! Linux, 512mb to php per call and it’s shared server. They say they use your plugin on other installs and it works great. So, it must have to do with my site. I’m using the genesis sample theme.

    Plugin Author Frank Goossens

    (@futtta)

    Indeed, in exceptional cases (depending on the amount & quality of the CSS) the CSS optimizer used in Autoptimize might choke (technical explanation here).

    I saw you have a lot of CSS from both your theme and from a multitude of plugins. The easiest way forward would be for you to provide me (futtta at gmail dot com) with a zip-file of wp-content/theme/genesis-sample and wp-content/plugins. That way I can recreate your site (minus the content) on my test-blog and identify which specific CSS is causing this, which we could then simply exclude from optimization.

    frank

    Thread Starter tristadeleon

    (@tristadeleon)

    Hi Frank, I tried emailing you the zip folder but both my email accounts said it was unable to send. my trista at scentswarmers dot com email said that there was a file in there that got blocked. suggestions?

    Plugin Author Frank Goossens

    (@futtta)

    Update for those who would stumble on this discussion (Trista & me have been mailing about this); I recreated a site with the same theme & plugins but could not get CSS optimization to crash. This is probably due to a difference in Apache configuration between my & Trista’s server (configuration which impacts the resources that are allocated to the PCRE-engine in PHP, which is used to do complex search/replace actions in the CSS minifier).

    A short-term solution could be to only aggregate & not minify CSS by -when using AO 1.9 or up- adding this small piece of code to the theme’s functions.php (where it might get overwritten, so better put it in a child theme of your own or in a small plugin);

    add_filter('autoptimize_css_do_minify','stop_ao_css_minify',10,0);
    function stop_ao_css_minify() {
            return false;
    	}

    Longer term I’ll be looking into solutions to code around PCRE-resource related crashes.

    frank

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘javascript part was great, broke my css’ is closed to new replies.