• Resolved lmelcarek

    (@lmelcarek)


    Hello, I have the free WPEC to Woocommerce plugin on my site, https://www.florigengreenhouses.com. Currently I have the most recent update, but my site is not working properly, and I’m not sure if it’s a problem with WordPress or the WooCommerce plugin, or even another plugin.

    I thought the WooCommerce plugin might be the problem because when a customer adds a large number of items to their cart, they can’t check out. They either get a blank checkout page with none of their items listed, or they get an “Internal Server Error” message at the top of the page when they try to complete their order. In the latter case, I do get the order sent to my page’s orders section, but I don’t get the customary automatic email sent to me with the order (and the customer doesn’t get a confirmation email either.) However, when a customer is only ordering a few items, they can checkout normally, and the normal automatic emails are sent.

    Can anyone assist me with this? Since I have a free version of WooCommerce, they are not willing to give me tech support on their end.

    Thanks,
    Linnaea
    [email protected]

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Anwer AR

    (@aranwer104)

    Hi @lmelcarek,

    large number of items to their cart

    How much number of items do you consider large number in cart?

    I went to your site and tested several times checking out with reasonable number of items in cart (20 above i guess) and in last test i checkout with almost 40 products (with different quantities) in cart. and don’t get any error while checking out. i used Chrome & Firefox for testing to see any potential JS issues but all the time checking out process and overall experience was normal with no errors/blank screens. and got confirmation Emails in my junk folder.

    One thing to mention all of your product prices are 0$. i assume this is intentional.

    Internal Server Error

    Usually means there’s something wrong with your host (not 100% sure since i have not seen this error anytime). consider contacting your hosting provider to see if everything is fine on their end. also it will be helpful for us to determine any issues if you can come up with error log file (if there’s any).

    Thanks

    Thread Starter lmelcarek

    (@lmelcarek)

    Hi Anwer AR, thanks so much for your reply. People have been having issues once the number of unique product items in the cart are over 75 or 100.

    I did not receive any confirmation emails with your orders, as I normally would when the website is working correctly. I did find them in my site’s order page, though.

    You are correct that the product prices are intentionally $0.

    Would you be able to tell me how to access the error log file? Is this under WooCommerce>Status>Logs? I just looked there and found a long list of fatal errors. Here are the most recent:

    2018-02-28T20:44:51+00:00 CRITICAL Allowed memory size of 67108864 bytes exhausted (tried to allocate 180224 bytes)

    2018-02-28T20:46:41+00:00 CRITICAL Allowed memory size of 67108864 bytes exhausted (tried to allocate 180224 bytes)

    2018-02-28T21:39:11+00:00 CRITICAL Allowed memory size of 67108864 bytes exhausted (tried to allocate 356933 bytes)

    2018-02-28T21:39:16+00:00 CRITICAL Allowed memory size of 67108864 bytes exhausted (tried to allocate 356933 bytes)

    2018-02-28T21:40:46+00:00 CRITICAL Allowed memory size of 67108864 bytes exhausted (tried to allocate 178447 bytes)

    2018-02-28T21:40:53+00:00 CRITICAL Allowed memory size of 67108864 bytes exhausted (tried to allocate 178447 bytes)

    It goes on like this for many lines. Might this have something to do with my issues?

    Thank you again,

    Linnaea

    Yes, the errors tell us that you don’t have enough memory allocated to WordPress. You can find out how much memory you have at:
    WooCommerce > Status: System Status tab, WP Memory Limit.
    The default is 40MB. See if you can push it up to 256Mb:
    https://docs.woocommerce.com/document/increasing-the-wordpress-memory-limit/
    There are several other resources about increasing the memory limit.

    Anwer AR

    (@aranwer104)

    @lmelcarek

    I should have asked you to check WooCommerce logs. this is almost same as server logs and easier to find. WC does store this information so we can trace errors. i apologize but i forget to mention about WC logs and glad that you found it. And above pasted lines from your logs file is really helpful.

    2018-02-28T21:40:53+00:00 CRITICAL Allowed memory size of 67108864 bytes exhausted (tried to allocate 178447 bytes)

    According to the log entries memory limit is around 64MB and at some point 64MB is not enough to run your application correctly. WooCommerce recommends at-least 128MB of memory limit in order to function everything correctly.

    There’s a greater chance to resolve this issue by increasing your server memory limit. we can do so with few different methods.

    Edit wp-config.php file
    wp-config.php file is in the root of WordPress installation and you can find using FTP or Cpanel. open up this file and add below line of code just before where it says “Happy blogging”

    define('WP_MEMORY_LIMIT', '128M');

    Now delete stored logs from WooCommerce > Status > Logs and try to reproduce the error by following same steps ( orders with large quantity ). and come to see logs for more entries.

    You can change limit (128M) to anything less or greater as your site demands. if you keep getting same error in log file then increase the limit (256M,512M..) and follow the above steps again. however its not recommended to set higher limits.

    You can find more methods here at WC docs site.

    If issues are still there after increasing memory limit kindly let us know here so we can see more possible causes and solutions.

    Thanks

    Thread Starter lmelcarek

    (@lmelcarek)

    @aranwer104, this seems to have worked. Thank you so much for your help; I really appreciate it.

    Anwer AR

    (@aranwer104)

    @lmelcarek,

    Glad to hear that, You’re welcome.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Not able to checkout with large # of items in cart’ is closed to new replies.