• Resolved PapGeo

    (@papgeo)


    Hi, I followed this topic: https://www.ads-software.com/support/topic/502-bad-gateway-error-on-activation/

    I found out that the plugin doesn’t produce the 500 Internal Server Error only when I have the Optimize Javascript code checked.

    If I have them all checked (HTML, Javascript, CSS) it gives me 502 Bad Gateway and the error_log contains the following:

    mod_fcgid: stderr: PHP Fatal error: Class ‘WC_Data_Store_WP’ not found in /var/www/vhosts/mysite/httpdocs/wp-content/plugins/woocommerce/includes/data-stores/class-wc-coupon-data-store-cpt.php on line 17, referer: https://mysite.com/wp-admin/options-general.php?page=autoptimize

    So, does the CSS of the Woocommerce has the problem?

    Also, how do I exclude woocommerce’s CSS as you mentioned in the other topic? Will I need to? I don’t know

    Thanks in advance!

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

    (@optimizingmatters)

    hmmm … the error-message is for accessing the AO settings page, not for the front-end (which is where AO optimizes).

    so some questions:
    * do you have the 502 on the settings-page or on the front-end?
    * do you have the 502 when only HTML optimization is active?
    * do you have the 502 when only CSS optimization is active?
    * do you have the 502 when JS & HTML optimization are active?

    frank

    Thread Starter PapGeo

    (@papgeo)

    Finally the problem isn’t caused by your plugin. I’m talking with the hosting provider.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    ok, i’ll mark the topic as resolved, but feel free to keep me posted @papgeo, always happy to learn! ??

    Thread Starter PapGeo

    (@papgeo)

    Ok, I will! Again, thanks ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘500 Internal Server Error’ is closed to new replies.