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