• Hello,

    I’m trying to install that beautiful theme Origamiez which works when the plugin Autoptimize is not activated.

    When Autoptimize is “on”, I get an Error 502 ‘Bad Gateway’ on the front page and a blank page (with a little grey circle searching in the middle) from the live preview in the WP Admin. I tried on two differents blogs and got the same error.

    Is there anything to do to make them work together ? ??

    Thank you for your attention.
    Sorry for my English.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author Alex Kalh

    (@colourstheme)

    Hi @niyati,

    Thanks for your feedback, I’m checking my theme with Autoptimize.
    https://www.ads-software.com/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 ??

    Theme Author Alex Kalh

    (@colourstheme)

    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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Theme conflict with Autoptimize’ is closed to new replies.