Hi @niyati,
Thanks for your feedback, I’m checking my theme with Autoptimize.
https://ww.wp.xz.cn/plugins/autoptimize/
And, I’ll contact with you later .. (1 or 2 days)
Best,
Alex Kalh
Thread Starter
niyati
(@niyati)
Hi !
Thank you Alex for your help!
If this can help, I’ve just noticed the 502 code only appears when ‘Optimize CSS’ is activated, no issue to optimize html & javascript with the Autoptimize plugin.
I also noticed a small bug when using a ‘Lazy Load’ plugin but I posted it in the plugin support – not sure where to publish that.
Have a nice day 🙂
Hi @niyati,
I’ve been checked Origamiez with plugin “autoptimize”
It is compatiable !
I don’t see error “Error 502 Bad Gateway”, or any warning.
Could you deactive all other plugins !?
Only active “autoptimize” with Origamiez theme, and check again !?
Best,
Alex Kalh
Thread Starter
niyati
(@niyati)
Hi Alex,
Thank you for your answer.
I deactivated all other plugins (wordfence Security, Block Referrer Spam, WP Content Copy Protection) and I still get this on both blogs
502 Bad Gateway —
nginx/1.6.0
when Optimize CSS of Autoptimize is activated. I only get the issue with that theme, that’s strange :/
I get stuff like this when I check error.log
[Tue Sep 22 23:06:40 2015] [notice] child pid 11121 exit signal Segmentation fault (11)
(I don’t know exactly what it means – and the number after pid is the only thing that changes everytime) My host says the problem appears with some WordPress themes since 4.0 but didn’t have any solution to offer as server is fine.
Have a nice day 🙂
hiya guys;
I’m autoptimize’s developer. I tested the theme on my testblog and it seems to work OK for me as well.
Segfaults are caused by PCRE (the regular experession parser in PHP) running into resource limitations and throwing a stack overflow (see this page). The CSS optimizer that is used in AO uses regular expressions pretty intensively.
So how can you solve this? Well you could:
* ask your host to look at that PCRE-page and take some of the actions proposed there
* force AO to use the “legacy” minifier (see FAQ)
* try to exclude some of the CSS from optimization (by e.g. adding bootstrap to the list of CSS optimization exclusion).
Hope this clarifies,
frank