Error when clicking show cart for first time after putting product in cart
Everytime I put a product in the cart and click show cart, the page starts loading but nothing happens. After some seconds I get an empty wordpress page.
Clicking again, or clicking while loading, on the show cart button does show a working cart page…
This is very annoying for new customers.
This only happens on a new session. (If you test it, you can test it by deleting all cookies/history in your browser. Or close all Chrome windows and then open a new incognito window so you don’t have to delete your whole history).
When it happens I get the following error in the apache log:
[Thu May 23 17:36:39 2013] [warn] [client xx.xx.xx.xx] mod_fcgid: stderr: PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 261900 bytes) in /home/domainname/public_html/wp-includes/formatting.php on line 940, referer: http://www.domainname.net/product/product-name/?added-to-cart=221
My php memory limit is 256MB, my memory limit in wp config is also 256M, but tried lower and higher too. Despite the message I don’t think the memory limit is the reason, I think some script or other bug is causing this problem. Besides that I don’t have any problem with my memory limits or other functions. It is only this problem.
I hope someone can help me. Thanks in advance.
- The topic ‘Error when clicking show cart for first time after putting product in cart’ is closed to new replies.