Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore F.A.Q/Instructions › PHP Session not Working Correctly
Tagged: caching, CDN, check out page, permission denied (13), PHP Session, php session error, php session issue, PHP session not working, php warning, session_start, W3 Total Cache, web hosting
- This topic has 68 replies, 24 voices, and was last updated 8 years, 10 months ago by wzp.
-
AuthorPosts
-
March 6, 2011 at 12:25 am #20553amin007Participant
We will address this here as you have posted a new thread:
https://support.tipsandtricks-hq.com/forums/topic/weird-php-behaviour-cart-loses-item-on-posts
March 11, 2011 at 11:48 pm #20554amin007ParticipantHere is another thread that had this same issue and turned out the PHP session wasn’t fully working on the server:
https://support.tipsandtricks-hq.com/forums/topic/product-not-adding-to-cart
March 30, 2011 at 3:06 am #20555kteller8MemberNot sure if it helps you find this fix/bug, but my theme’s slide show stopped working when i upgraded to recent version of WP. I know they did a lot changes to ajax/jquery/java type of stuff, i got this error and upgraded my store version, did everything listed and had trouble. I decided to change themes to something newer and it fixed my issues. So maybe this is something within those limitations; something to help you think about as you temp to fix it;
August 12, 2011 at 9:23 pm #20556cc77MemberShopping Cart Feature is not working
Tested the sales process a few weeks ago and it worked very well including the emails and notifications.
Tried again a week or so ago and when purchasing it shows that the cart is empty
The host provider has spent extensive time on this issue and cannot find the problem. believes it is within the cart not the php.
Today I tested again. Cart works fine with one product. We have not changed anything.
Cart does not function at all with the other two products. If it works at all it takes you to a page that says Error Detected. Shopping Cart is Empty.
Could you please help resolve this issue.
Thank you
August 13, 2011 at 1:47 am #20557amin007Participant@cc77, I know for a fact that the issue is not on the shopping cart side (If you read all the posts in this tread you will see that every single time the issue was on the web host side or a site configuration issue or some other plugin messing the PHP session up). If you provide a URL to your products page I will be able to take a look and do some basic test and get back to you.
Are you using a caching plugin?
September 14, 2011 at 1:23 pm #20558TuttieMemberHI, I ONLY get this problem when I enable coupons, the moment I disable it the cart functions JUST fine.
September 14, 2011 at 11:31 pm #20559adminKeymasterPlease post a link to the page where this is happening so I can go and check it out. Also give me a coupon code that I apply and test this.
September 16, 2011 at 4:04 pm #20560TuttieMemberactually I’ve been testing and had my hosting company come to your page here and they followed your instruction (or so they say) and php is working fine.
I had to disable the cart all together as it would only work if I was logged in but not logged out. I am using Wishlist membership so that MIGHT be the problem but I don’t know where to begin seeing as the sales page is not protected.
September 16, 2011 at 10:52 pm #20561adminKeymasterGlad to hear that your hosting provider fixed the php session issue. Are you using any caching plugin?
January 24, 2012 at 4:42 pm #20562underwolf1MemberHi,
I recently switched the site URL setting in wordpress so that my site could be stored in a folder that my main domain points to and since then I’ve been getting the PHP sessions error message when i try to check out, although from the tests I’ve done the PHP sessions seem to actually being working fine, there’s no problems adding items to the cart etc.
my site is here: [www.underwolf.com]
thanks in advance for the help!
January 25, 2012 at 4:06 am #20563adminKeymasterPlease post a full link to the page where you have the add to cart buttons. I can’t find the add to cart buttons on your homepage link that you gave us.
January 25, 2012 at 12:32 pm #20564underwolf1MemberSorry about that. The page with the add to cart buttons is here:
[http://www.underwolf.com/?portfolio=dollshot-dollshot-uw001]
To clarify a bit more about the “Site Address” setting….So the site is actually located at:
[http://www.underwolf.co/underwolf_new_site] so that’s what I have the “WordPress Address” set to. Thanks again in advance!
January 26, 2012 at 5:59 am #20565adminKeymasterThank you for the details, this is a bit of a crazy setup so I am pretty sure the session value is getting lost in the translation (“underwolf.com” and “underwolf.co” are not the same domain). Lets try this tweak and see how it goes:
Open the “eStore_advanced_configs.php” file and search for the following line of code:
define('WP_ESTORE_SAVE_SESSION_TO_COOKIE', false);
When you find it just replace it with the following:
define('WP_ESTORE_SAVE_SESSION_TO_COOKIE', true);
Now, do a checkout and let me know how you go.
April 28, 2012 at 1:46 am #20566jpizzolatoMemberMore info to share… it appears the problem is only happening with Chrome. It appears to be working properly with IE and Firefox.. what would cause Chrome to fail??
John
April 28, 2012 at 6:46 am #20567adminKeymasterWhen your PHP session on the server works correctly, it will work on every browser. I just checked the link you shared in Chrome and I can checkout fine. Maybe your hosting provider fixed the session issue on the server. If you are still seeing the issue, try clearing your chrome browser’s cookie and cache.
-
AuthorPosts
- You must be logged in to reply to this topic.