• Resolved Szymon Gackowski

    (@szymon-gackowski)


    When I install this plugin it breaks many of the functions of Woocommerce:

    • coupons are not working,
    • Ajax calls (i.e. /?wc-ajax=add_to_cart ) return 500 – Internal server error
    • Some of WC specific sites are not working, in example: the cart

    How can I make this Affiliates plugin work properly with woocommerce?

    https://ww.wp.xz.cn/plugins/affiliates/

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Kento

    (@proaktion)

    Hi Szymon,

    This is most likely due to insufficent PHP memory limits which is easily solved by raising it. The more modules you have installed and activated, the more memory is required and when the limit is exceeded, odd stuff can happen like what you describe.

    You can check the current PHP memory limit under WooCommerce > System Status > WordPress Environment > WP Memory Limit and here are two resources that explain how to raise it:

    http://codex.ww.wp.xz.cn/Editing_wp-config.php#Increasing_memory_allocated_to_PHP
    https://docs.woothemes.com/document/increasing-the-wordpress-memory-limit/

    After checking that and if that doesn’t solve it, please let me know.

    Cheers

    Thread Starter Szymon Gackowski

    (@szymon-gackowski)

    Memory limit is set to 256 MB – I think this is more than enough. What else can I check to find out what’s wrong with this plugin?

    Plugin Author Kento

    (@proaktion)

    Ok thanks, yes that should be enough. As the issues you describe don’t normally appear this would be something specific to your installation. It can be a plugin conflict and there could be errors that cause what you see.

    Enable debugging in wp-config.php by adding these lines:

    define('WP_DEBUG', true);
    define('WP_DEBUG_LOG', true);
    define('WP_DEBUG_DISPLAY', false);

    This will make any errors or warnings appear in your site’s wp-content/debug.log (the file will be created automatically if it doesn’t exist). See more about debugging here https://make.ww.wp.xz.cn/support/handbook/appendix/using-wp_debug/

    If anything comes up in the debug.log it will give pointers to where the conflict arises.

    You should also disable any non-essential plugins and check if the issues still persist.

    I hope that helps, please post if you see anything in the debug.log or if you discover any conflict with other plugins.

    Thread Starter Szymon Gackowski

    (@szymon-gackowski)

    Well, the debug file came out almost empty. I enabled debug, then enabled your plugin and tried to do some actions. Log file was clear (there were 2 PHP notices unconnected to the plugin).
    Still coupons do not work and I get 500 Internal server error sometimes when site is trying to POST data to itself (i.e. during ajax calls).

    Plugin Author Kento

    (@proaktion)

    That’s odd, thanks for checking. That coupons don’t work can’t be related to the plugin directly and an internal server error happens when the server is trying to attend to a request but something goes wrong, e.g. memory … This would require a closer look at your setup but as per the Forum Welcome, it’s not allowed to ask for access here. If you would like us to have a closer look at your site, please post on the free plugin support page here http://www.itthinx.com/plugins/affiliates/ and please include a link to this conversation.

    Thread Starter Szymon Gackowski

    (@szymon-gackowski)

    Well, it need to be connected. When I deactivate Affiliates plugin wverything works completely fine.

    Please take a look at:
    http://excelw30dni.pl/
    try adding something to the cart and then using the coupon code “gacek”. Inspect the site with some developer tools and you will see some POST calls with 500 error.

    Plugin Author Kento

    (@proaktion)

    The 500 is related to a Google Analytics call.

    "NetworkError: 500 Internal Server Error - http://excelw30dni.pl/koszyk/"
    /koszyk/
    ReferenceError: ga is not defined
    ga("require", "ec", "ec.js");

    This could be related to the plugin that is producing the PHP notices in your debug.log : http://ww.wp.xz.cn/plugins/enhanced-e-commerce-for-woocommerce-store/ – it seems that there is a conflict between that plugin and Affiliates. Please try to disable that plugin and the issue should go away.

    Thread Starter Szymon Gackowski

    (@szymon-gackowski)

    I disabled this plugin – still no effect. Coupons are not working. I tried all plugins – only disabling Affiliates makes this error go away.

    Plugin Author Kento

    (@proaktion)

    Can you please also check the apache error log and try with a default theme?

    Thread Starter Szymon Gackowski

    (@szymon-gackowski)

    I checked the server error log – it is clean. I cannot change theme there.

    Plugin Author Kento

    (@proaktion)

    Ok thanks, maybe you can set up a test site instead. In any case, this would really require a closer look at your setup.

    In order to avoid violating the directions in the Forum Welcome and if you would like us to have a closer look at your site, please post on the free plugin support page here http://www.itthinx.com/plugins/affiliates/ and please include a link to this conversation.

    Thread Starter Szymon Gackowski

    (@szymon-gackowski)

    Sorry, I cannot give you access to this website. It isn’t for me to decide.

    Plugin Author Kento

    (@proaktion)

    It seems that in your setup this won’t work and given that there are limitations on how far we can go into looking into the causes if these issues on your site, I would recommend you should try another solution. Feel free to get back on the plugin support page I’ve indicated to you if you need support that goes beyond what can be offered here.

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Installing this plugin breaks woocommerce’ is closed to new replies.