• Resolved oleperenjoy

    (@oleperenjoy)


    I run a WordPress site with WooCommerce, and tried using this plugin, but I get a 500 error when turning on either the JS- or CSS optimising. Though it only happens to users which is not logged in. What steps can I take to identify what’s causing this?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    there’s troubleshooting info in the FAQ @oleperenjoy, but my first hunch is you’re also running another optimization plugin which conflicts. if so, be sure to disable any minification (in another plugin or theme).

    hope this helps,
    frank

    Thread Starter oleperenjoy

    (@oleperenjoy)

    I don’t got any other plugins that minifies as far as I can understand. In addition to Autoptimize I only use Cloudflare at this moment (also disabled minifying there).

    Also tried the legacy solution from the FAQ, but no go. Could it be the “AllowOverride All” error? The server is running CentOS, as far as I can see.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Could it be the “AllowOverride All” error?

    depends: if your site renders but the CSS & JS doesn’t load, yes.

    if on the other hand you site itself doesn’t load at all, it’s something else. I would expect a plugin conflict in that case so you could try disabling (and re-enabling) other plugins (and briefly switch theme) to try to pinpoint the conflict?

    Thread Starter oleperenjoy

    (@oleperenjoy)

    The site did not load at all. It worked with a different theme, so going through my themes functions.php file I found that the command “remove_action(‘shutdown’, ‘wp_ob_end_flush_all’, 1); ” made the error happen

    One last question, with your plugin working, is there a point to having the Cloudflare minimising turned on as well?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    going through my themes functions.php file I found that the command “remove_action(‘shutdown’, ‘wp_ob_end_flush_all’, 1); ” made the error happen

    great find, would not have been able to pinpoint that myself. AO indeed needs and entirely depends on the ouput buffer ??

    with your plugin working, is there a point to having the Cloudflare minimising turned on as well?

    only if you have to exclude a significant amount of CSS/ JS from optimization.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘500 error when not logged in’ is closed to new replies.