Support » Plugin: Price Based on Country for WooCommerce » Gateway Timeout on Activation

  • Resolved landed

    (@landed)


    Hi I was using the free version fine and needed to deactivate all plugins to test why something was not working. Now I cant reactivate your excellent plugin. It tries to for a long time then comes back with an Gateway Timeout as it was in processing too long. I can’t imagine what is causing this. Is there a external API that is not working? We need a better failover system. Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Oscar Gare

    (@oscargare)

    Hi,
    yes, it is a it’s a known issue.
    The plugin does a bulk update of the prices by exchange rate for all your zones on the plugin activation. It you have a large number of zones and products, it’s possible that your server can’t process it.
    We hope to solve this problem in the next major update.

    To activate the plugin again, you’ll have to change the line of code which does the bulk update on the plugin activation.

    If you are using version 1.8, edit the file wp-content/plugins/woocommerce-product-price-based-on-countries/includes/class-wcpbc-install.php
    replace the line 76 by:
    //self::sync_exchange_rate_prices();
    and save the file.

    After, you can activate the plugin again.

    Thank you oscar.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.