Support » Plugin: WooCommerce Smart COD » Not able to open Cash on delivery

  • Resolved amirnaik

    (@amirnaik)


    Hi Stratos,

    I am not able to open Cash on delivery in checkout option to edit setting after activating the plugin. It’s taking time to load and comes up with just a message ”
    Have your customers pay with cash (or by other means) upon delivery”. my woocommerce version is 3.3.3.

    The only way I am able to open cash on delivery in settings by deactivating your plugin. In short I am not able to use your plugin. I love your plugin and I want to use it.

    Thanks,

    • This topic was modified 1 year, 9 months ago by amirnaik.
Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author Stratos Vetsos

    (@fullstackhouse)

    Hi,

    That’s sound like a php timeout issue.
    Please can you provide me your php error log, so I can assist you?

    Best Regards

    Plugin Author Stratos Vetsos

    (@fullstackhouse)

    Hi,

    Any update on this?

    Hi,

    I am getting the following error in log file each time I am trying to open Cash on delivery setting after activating the plugin:

    PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/WEBSITE/public_html/wp-includes/formatting.php on line 4762.

    I am able to open Cash on delivery default setting page when the plugin is deactivated.

    Thanks,

    Plugin Author Stratos Vetsos

    (@fullstackhouse)

    Are there any error log messages referring our plugin?

    Do you have a very large amount of shipping zones / shipping methods / shipping classes ?

    Which versions of the plugins do you use ? ( woocommerce, woocommerce smart cod )

    Please try to disable all other plugins and leave only those two ( woocommerce, woocommerce smart cod ) and try again to enter the settings page. If that works, reactivate the other plugins, one by one until you find the conflicting one.

    Can you copy / paste your system status report from WooCommerce?

    Best Regards

    Are there any error log messages referring our plugin?
    >No

    Do you have a very large amount of shipping zones / shipping methods / shipping classes ?
    >Yes in a way, I have created shipping zones as per my country’s pincodes divided into 5 shipping zones. I will be adding more pincodes later.

    Which versions of the plugins do you use ? ( woocommerce, woocommerce smart cod )
    >woocommerce version is 3.3.3 and smart COD version is 1.4.9.3

    Please try to disable all other plugins and leave only those two ( woocommerce, woocommerce smart cod ) and try again to enter the settings page. If that works, reactivate the other plugins, one by one until you find the conflicting one.
    >I have tried, it not working having the same issue.

    I guess it must because of the huge lists of pincodes I have added in Shipping.

    Plugin Author Stratos Vetsos

    (@fullstackhouse)

    Nope, that’s not a concern ( the unique pincodes inside a shipping zone ).
    There might be an issue if you had like unique 15000 shipping zones, so that’s definitely not the case.

    I will try to figure this out and get back to you. It’s strange, no one has faced such an issue except you.

    Best Regards

    Plugin Author Stratos Vetsos

    (@fullstackhouse)

    Just to be sure, can you please leave only one shipping zone and see if the page loads? So we can exclude this scenario?

    You can also try to increase the php timeout to 60s, see here ( https://thimpress.com/knowledge-base/how-to-increase-maximum-execution-time-for-wordpress-site/ ), although that should be a last resort solution.

    Best Regards

    Hi,

    It worked, I had to set php.ini: max_execution_time = 120 as 60 was not working. It must due to shared hosting. Thank you!

    Thanks & Regards,

    Plugin Author Stratos Vetsos

    (@fullstackhouse)

    Hi,
    Nice to hear that, although it shouldn’t take so long to load.

    It will be lot appreciated, if you rate our plugin!
    Best Regards

    Plugin Author Stratos Vetsos

    (@fullstackhouse)

    Hi again,

    I have to ask.. why 4 stars?
    It will be lot appreciated, if you change it to 5, I really tried my best to assist you.

    Best Regards and have a nice day.

    Plugin Author Stratos Vetsos

    (@fullstackhouse)

    Many thanks

    Hi.
    Same problem here.
    I only get first line: “Have your customers pay with cash (or by other means) upon delivery.”
    But I also get error: “Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 98304 bytes) in ………wp-includes/functions.php on line 3729”.
    It’s for sure caused by an amount of Shipping zones and related Rates I set.
    Unfortunately I use share webhosting and max memory limit is 128 MB. Is there any solution for this?
    Thank you.

    Plugin Author Stratos Vetsos

    (@fullstackhouse)

    Hi,

    Unfortunately that cannot be done in an easy way. It has to change the logic of the plugin, to generate the zones / prices pairs on demand with ajax.

    This is something that will be implemented in the future. If you don’t want to use the different zones extra fees feature, I can send you a version with this feature disabled.

    Also I think that 128MB for any WooCommerce installation is very low. You’ll have severe performance issues anyway.

    Best Regards

    Thank you for your clarifying answer 🙂
    Actually, different zones extra fees was the feature I wanted to use the most.
    Do you think that 256 MB would be enough?
    Is there a way to test if I’ll have any performance issues like you’ve said?
    I have not had any problems with anything yet.
    Thanks

    Plugin Author Stratos Vetsos

    (@fullstackhouse)

    Actually I can’t tell you that for sure. The amount of your shipping zones / methods combinations, plus the amount of other active plugins and how heavy they are, defines this.

    There is a safe way you can figure this out. Create a local installation of your website in your pc ( use xampp or whatever ) and adjust the memory until you find out the one that suits you.

    Best Regards

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Not able to open Cash on delivery’ is closed to new replies.