Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Troubleshooting › WP eStore – php error when trying to check out on my site
- This topic has 13 replies, 4 voices, and was last updated 9 years, 10 months ago by wzp.
-
AuthorPosts
-
December 24, 2014 at 8:03 pm #11976rayrozenMember
Hello there! This is for:
[http://www.ahaherb.com/upcoming-herbal-medicine-systems-classes-jan-march/]
When I add an item to the cart and try to check out, i get this message:
“Your shopping cart is empty. Please add an item to your cart. You can load the checkout page and make sure the shopping cart is not empty. If you are the admin of this site and you are certain that the shopping cart is not empty then the PHP Session on your server is not working correctly. Please check this article”
I’ve contacted my host but they are as of yet unable to find the issue. This issue was happening before I updated to the latest version of wordpress, and continues to persist. It happens across all browsers, even after clearing the cache.
If you have any advice, I would appreciate it! Thanks so much:)
December 24, 2014 at 11:50 pm #67625wpCommerceModeratorHi, Please enable “Alternate Redirection Method” and see how it goes. It’s under
WP eStore->Settings->Advanced Settings->Miscellaneous Advanced Settings
.December 25, 2014 at 1:42 am #67626rayrozenMemberHi there! Thank you so much for your post but, unfortunately, that did not solve the problem:( Any other ideas?
Thanks again!!!
December 25, 2014 at 2:17 am #67627rayrozenMemberSorry to post again so soon but I thought I would add:
Just to see if it would work, I updated the wp estore plug in, but no luck. My host double checked the php and looked for any integration problems with other plug ins, but everything looks fine. I am totally stumped here!
Thanks in advance for any help you might have.
December 25, 2014 at 11:28 pm #67628wpCommerceModeratorActually this issue is caused by the transition between www and non-www versions of your website. When you are adding items to the shopping your site is loading as [www.ahaherb.com]. But when eStore is submitting data to PayPal it’s loading as [ahaherb.com]. Have you specified two different URLs in the following fields?
1)WordPress Address (URL)
2)Site Address (URL)
You will find them under
Settings -> General
from your WP dashboard.December 26, 2014 at 1:06 am #67629rayrozenMemberHi there, and thanks so much for your response! The site is listed at “http://www.ahaherb.com” under both options (wordpress url and site url). Hmmm. Do you have any ideas about how to solve this?
Thanks so much!
December 26, 2014 at 1:25 am #67630wzpModeratorThe use of “www” is really an anarchism. The majority of modern day sites only support the non www form of URL. Set everything to the non www URL format, and then impliment a .htaccess rewrite rule for the www format.
December 27, 2014 at 4:11 am #67631rayrozenMemberTHANK YOU so much. That seems to have resolved the problem. I also have wp estore installed for another client, and it looks like she is having the same error popping up. However, she does not have www. before her url. However, she does have http:// before the url; would that cause the same problem? Will the fix be the same in this case?
Thanks so much!
December 27, 2014 at 4:36 am #67632wzpModeratorEverything should be identical. Any exceptions should be handled by .htaccess rewrite rules.
December 27, 2014 at 7:14 pm #67633rayrozenMemberThank you very much for all of your help!
January 16, 2015 at 4:01 pm #67634ronimmMemberHi there. This is for:
[http://themindandthebrain.com/personal-development/motivation-and-productivity/] and all the rest of the pages.
I have the same issues and I think that I have tried all the solutions presented on the forum already and still have no luck with processing the order. It still comes up with the same message: Your shopping cart is empty. Please add an item to your cart. You can load the checkout page and make sure the shopping cart is not empty.
If you are the admin of this site and you are certain that the shopping cart is not empty then the PHP Session on your server is not working correctly. Please check this article.
What I did so far is:
– I checked my PHP myself and asked my host provider for the same and it works with no issues.
– I Changed theme to 2014 no luck.
– I Disabled all the plugins and activated only estore and still no luck.
– I Checked my urls – and they are both without www.
– I Ticked Enable Alternate Redirection Method and still no luck.
Can you please help me solve the issue as I don’t know what to do anymore.
Many thanks in advance
January 16, 2015 at 4:06 pm #67635wzpModeratorI checked my PHP myself and asked my host provider for the same and it works with no issues.
So, you are telling us is that you performed this test, and that PHP sessions are working correctly?
https://support.tipsandtricks-hq.com/forums/topic/php-session-not-working-correctly
January 16, 2015 at 4:15 pm #67636ronimmMemberI checked in my PHP admin if this is as suggested in the post: “session.save_path = /tmp” and it is.
Then I contacted support (I’m with hostagtor) and they tested my PHP sessions and they said that everything works as it should. They advised me to contact yourselves. Would you be able to fix the issue for me please? I would really appreciate that.
January 16, 2015 at 7:48 pm #67637wzpModeratorIn my last message, I included a link to a post, containing instructions for performing a test. Did you do the test, and what are the results?
I just did a test myself and that test failed which tells me that you do have a PHP session issue on your server. So this issue has nothing to do with our plugin. The post I shared earlier has help on what you should tell your hosting provider so they can fix the configuration in the server.
-
AuthorPosts
- You must be logged in to reply to this topic.