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
-
May 29, 2012 at 5:02 pm #20568kingdommediaMember
Hi I am using your Estore plugin and having same issues as everyone here
Products page is:
[http://www.neurochi.com/downloads/]
The cart fills OK and when you visit other pages and return it seems to be OK and cart is still populated with selected items.
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.
Go to Products Page
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
Warning: Unknown: open(/tmp/sessions/sess_152dca83201dc0eddfc9fd34074002c3, O_RDWR) failed: Permission denied (13) in Unknown on line 0
Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp/sessions) in Unknown on line 0
Can you advise what needs to be done on this to be resolved please?
May 30, 2012 at 12:04 am #20569adminKeymasterPHP Session is not correctly configured on your server. PHP is failing to write to the temporary session file (/tmp/sessions/sess_152dca83201dc0eddfc9fd34074002c3) so its not working. Your hosting provider needs to fix this on your server first.
If you read the first post of this topic then you will see some explanation:
https://support.tipsandtricks-hq.com/forums/topic/php-session-not-working-correctly
It is your hosting providers job to give you a server where PHP session is working correctly so please contact them and request them to fix it.
August 1, 2012 at 2:31 pm #20570BrodieAsarisMemberHello, I think I understand my problem, having reviewed some of the posts on the forum however I would like to know if there is a workaround or solution to my specific issue.
I have a page where the checkout works correctly, with coupons and with/without the session sent to cookies.
[http://www.thinkpositivecoaching.com/business-coaching/business-growth-intensive-leeds/]
However, I also have this domain name pointing to the above page.
[http://www.businessgrowthintensive.co.uk/]
When you arrive at the page via businessgrowthintensive, the checkout doesn’t work under any conditions that I have tried.
I understand that this would be because the domain “businessgrowthintensive.co.uk” does not match “thinkpositivecoaching.com”.
Is there any way to make it so that the checkout will still work when people are arriving from businessgrowthintensive.co.uk ??
WP eStore v 6.1.7
WordPress 3.4.1
Many Thanks.
Brodie
August 2, 2012 at 5:28 am #20571adminKeymasterIn your case, you are using an iframe to load the content of another site. Everything will work until it needs to go to PayPal. PayPal doesn’t allow you to load their site inside an iframe as they consider this a security risk so thats where you are getting stuck.
More details on this here:
https://support.tipsandtricks-hq.com/forums/topic/do-iframes-break-the-estores-payment-flow
August 27, 2012 at 7:43 pm #20572nolmt60243MemberI have a test store that I setup [http://harvestforhumanity.com/projects-and-programs/annual-tree-program/apple-trees/] for a nonprofit organization that I volunteer for. I seem to be having a similar issue to everybody here (shopping cart is empty upon checkout). The products disappear upon checkout or a page change.
I have read through the posts and made sure sessions were enabled from the hosting company. The setting (enable redirection one) in the estore_advanced_settings.php didn’t exist, so I added it, and got no change when trying to checkout.
Any ideas?
August 27, 2012 at 11:53 pm #20573adminKeymaster@nolmt60243, PHP session is still not working on your site. The eStore plugin won’t work until you fix whatever is causing the PHP session to not work on your site.
Did you try turning off all plugins except eStore and see if you still see this PHP session issue? Turning off all plugins temporarily and doing this test will help you determine if there is any bad plugin you have that is destroying your PHP Session.
August 28, 2012 at 4:19 pm #20574nolmt60243Member@admin, I just tried turning off all plugins and checking out, and had the same issue. I also changed back to the regular stock WP theme, and eliminated the possibility of the theme interfering with the plugin.
I am at a loss. Any ideas? How can I verify that the sessions are working properly?
August 29, 2012 at 8:10 am #20575adminKeymasterOkay… that eliminates the possibility of a bad plugin destroying your session. It leaves only one option which is, the PHP session on the server stopped working. It is not holding the PHP Session values any more. If you read all the previous posts in this thread you will see many examples of how hosting providers messed up the PHP session configuration which caused this same issue and everything it was fixed when the hosting provider fixed their server. Who is your hosting provider?
August 30, 2012 at 2:33 am #20576nolmt60243MemberGot everything sorted. My host fixed the session issue on the server.
February 17, 2013 at 5:43 pm #20577WebGuy123MemberHello. I am having a problem with the PHP session not working correctly on checkout for paypal. I disabled the W3 Total Cache plugin and it turns out that my problem is specifically related to the CDN being enabled in the W3 Total Cache Plugin.
When I get the error, I notice that the web address has the CDN domain name listed as the URL (…netdna-cdn.com/wordpress/wp-content/plugins/wp-cart-for-digital-products/eStore_payment_submission.php) instead of my actual domain name.
If I disable the CDN in the W3 Total Cache program the checkout works fine for paypal. Please explain what I need to exclude (or include) within the CDN settings of W3 Total Cache and/or MaxCDN to resolve this issue. Thank you.
February 17, 2013 at 11:24 pm #20578wpCommerceModeratorHi, Can you please tell me if you have done the following already:
https://support.tipsandtricks-hq.com/forums/topic/using-the-plugins-with-w3-total-cache-plugin
February 24, 2013 at 4:44 am #20579SebMemberHi! Just to keep this thread going
My shopping cart is not working all together, meaning I cannot add items to it. Here is my troubleshooting so far:
1. It worked fine as long as I had my site localy hosted. With the same plugins installed and the theme. -> assumption: probably the php session.
2. Did my homework in the forum and sent this to my hosting provider (ipage.com):
//////
Occasionally a server may not have it’s PHP session configured correctly. Please note that you won’t be able to use a shopping cart software without the PHP session working correctly. It is your hosting provider’s responsibility to give you a server where the PHP session is setup properly. Contacting your hosting provider and requesting them to fix it is a good idea.
Making the PHP session to work is not very hard. You mainly have to make sure the following two things are in place:
1) Check if your server’s PHP config is set to allow sessions.
2) Check to make sure the session save path has been configured correctly. This is just a matter of adding a line similar to the following in the php.ini file:
session.save_path = /tmp
It is best to contact your hosting provider so they can do this for you. All you have to do is request them to fix the PHP session issue on your server and they should know what to do.
////////////
Got this answer:
////////////
I have set the ‘session.save_path’ in the ‘php.ini file in the account. So, please check the website from your end.
////////////
3. Checked the function again, but the issue remains. Just to make sure, I also deactivated all my plugins, emptied the cache and tried it again. Same result.
Now I’m at my wits’ end. Can you please look into this for me? You’ll find the cart here:
[http://www.real-adventure.info/know-how/]
Cheers, and yeah it is an awesome plugin!
Seb
February 24, 2013 at 10:02 am #20580SebMemberUnbelievable how ridiculous this issue actually is!
Contacted my hoster once more and they looked into it again, just to find out that they didn’t do a proper job in the first place! (I should have known this)
Long story short, it’s all running smooth now after the host fixed the server config.
Please ignore my previous post.
Thanks again!
Cheers,
Seb
February 24, 2013 at 6:11 pm #20581WebGuy123Member@wpCommerce. Yes, I have followed the steps on the following page: https://support.tipsandtricks-hq.com/forums/topic/using-the-plugins-with-w3-total-cache-plugin
Please explain what I need to exclude (or include) within the CDN settings of W3 Total Cache and/or MaxCDN to resolve this issue. Thank you.
February 25, 2013 at 1:04 am #20582adminKeymaster@WebGuy123, Lets try something in eStore before we go to adjust the CDN settings in the total cache plugin.
Please do the following:
1) Load a fresh copy of the eStore plugin (if you haven’t done it already in the last couple of days):
https://support.tipsandtricks-hq.com/forums/topic/re-install-or-load-a-fresh-build-of-the-plugins
2) Go to eStore Settings -> Advanced Settings menu and then check the following option and save it:
Enable Alternate Redirection Method
Now, do a checkout and let me know how you go.
-
AuthorPosts
- You must be logged in to reply to this topic.