Impossible checkout (Immediate expired session) after server move
Hi,
A few days ago, I asked to my hosting company if my server was OK for the new Paypal changes (Paypal sent me an e-mail telling me that I should check them all):
TLS 1.2 HTTP/1.1 requirement
HTTPS requirement for IPN Postback
Discontinue GET Method for Classic API
etc.
They told me that my server was too old, and they offered me to change to a new one. I accepted. After the change of server, the store had two problems:
1) Some characters didn't show properly
2) The sessions expired immediately, after clicking at any link of the store (so checkout is impossible).
I though it would be a good excuse to upgrade my store to the last version, so I proceed.
The character set problem was solved, but the expired session problem was still there.
After that, I decided to install a clean new copy of ZC, with a default database, and the expired session problem persists. No addons, no templates, no changes in code (just both configuration.php files).
I don't know what to do. Any help would be appreciated. Server and ZC versions below.
Thank you in advance!
Xavier.
Server data:
Server Host: comp22.cyberneticos.com (164.138.208.220)Server OS: Linux 2.6.32-673.8.1.lve1.4.3.1.el6.x86_64 Server Date: 07/25/2016 16:23:13 Server Up Time: 16:23:13 up 33 days, 4:39, 0 users, load average: 1.18, 1.11, 1.14HTTP Server: Apache/2PHP Version: 5.6.16 (Zend: 2.6.0)PHP File Uploads: OnUpload Max Size: 2MPHP Memory Limit: 128MPOST Max Size: 8MDatabase: MySQL 10.0.26-MariaDBDatabase Host: localhost (127.0.0.1)Database Date: 07/25/2016 16:23:13Database Data Size: 507 kBDatabase Index Size: 640 kBMySQL Slow Query Log Status: OnMySQL Slow Query Log File: comp22-slow.logMySQL Mode: (None set)
Zen Cart 1.5.5a
Database Patch Level: 1.5.5
v1.5.5a [2016-07-25 13:54:42] (New Installation-v155a)
v1.5.5a [2016-07-25 13:54:42] (New Installation-v155a)
Re: Impossible checkout (Immediate expired session) after server move
Helpful info:
Settings in configuration->sessions
Host?
Thinking maybe session related info available from phpinfo(): (normally available in admin at version button, but probably unable to get there based on the current issue) can create a file with the following info in it:
Code:
<?php echo phpinfo();
access the file from the Web, provide associated info.
Do you have cookies disabled on your browser or computer?
Re: Impossible checkout (Immediate expired session) after server move
Quote:
Originally Posted by
mc12345678
Helpful info:
Settings in configuration->sessions
Host?
Thinking maybe session related info available from phpinfo(): (normally available in admin at version button, but probably unable to get there based on the current issue) can create a file with the following info in it:
Code:
<?php echo phpinfo();
access the file from the Web, provide associated info.
Yes, I can access this information, but I think there are sensitive information that can't be posted here. What do you need exactly?
Quote:
Do you have cookies disabled on your browser or computer?
No, I have cookies activated. I have also followed all this steps:
https://www.zen-cart.com/content.php...working-for-me
I have also asked to the hosting company if the php.ini is OK (I'm waiting for their response).
Thank you for helping!
Xavier.
PD: The session problem is for the account in the store, not in the Admin. I can operate normally in the admin...
Re: Impossible checkout (Immediate expired session) after server move
Do you have SSL enabled/available?
Also is this the site that is in your signature? If so, getting a 403 error now. :/ (didn't try earlier)
So, the store side is having session problem, but the admin side is not. The template that is being used for any of these tests, is it a stock ZC template? Thought that was said as a yes before, but want to confirm. An older template that doesn't properly handle session information as expected by ZC could cause this.
Have an .htaccess file in the root of the store? Not required by ZC, but if it has something obscure in it then might possibly cause an issue? As to the info for sessions from phpinfo, I was kind of trying to get a kick start on likely questions that would help resolve. I'm drawing a blank at the moment on what would help. The session info from the admin as it relates to your includes/configure.php path info may help. (paths should match generally speaking.)
Hopefully someone else will come along and be able to chime in a little more. Long day for me.
Re: Impossible checkout (Immediate expired session) after server move
Quote:
Originally Posted by
mc12345678
Do you have SSL enabled/available?
I have SSL enabled.
Quote:
Also is this the site that is in your signature? If so, getting a 403 error now. :/ (didn't try earlier)
I have moved the store for testing to /store.
Quote:
So, the store side is having session problem, but the admin side is not. The template that is being used for any of these tests, is it a stock ZC template? Thought that was said as a yes before, but want to confirm. An older template that doesn't properly handle session information as expected by ZC could cause this.
No templates installed.
Quote:
Have an .htaccess file in the root of the store? Not required by ZC, but if it has something obscure in it then might possibly cause an issue?
No .htaccess in the root.
Quote:
Hopefully someone else will come along and be able to chime in a little more. Long day for me.
Thank you, and have a nice end of the day!
Re: Impossible checkout (Immediate expired session) after server move
Knowing that it is now in a sub-folder, I just accessed the site and was able to navigate to my favorite two problem products in the hardware category. I didn't come across a session issue... even added one to my cart with no problem. Have you tried a different browser or computer?
Re: Impossible checkout (Immediate expired session) after server move
Ya, it could be a browser "cached cookies" problem. Clearing the browser's cache and cookies can solve a multitude of problems like this where the browser thinks you're pointing one place but you've actually moved it and it can't sync up anymore.
Re: Impossible checkout (Immediate expired session) after server move
Hi!
I have just received response of my hosting service, and they have solved the problem. It was a bad configuration of the server (something about "suhosin.session.encrypt = off")... Now it works!!
Thank you very much for your help!
Xavier.