Post by glommy.rm » Wed Mar 30, 2016 3:11 pm

Whenever I checkout with a registered account be it old or new I get the error as per the attachment
Error log says the following:
2016-03-30 7:09:30 - PHP Notice: unserialize(): Error at offset 0 of 10 bytes in /home/maxoraadmin/public_html/catalog/controller/journal2/checkout.php on line 271
2016-03-30 7:09:30 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/maxoraadmin/public_html/index.php:102) in /home/maxoraadmin/public_html/catalog/controller/journal2/checkout.php on line 489

There is no problem to checkout if using guest

Attachments

Photo 30-03-2016, 12 07 22.jpg

Photo 30-03-2016, 12 07 22.jpg (193.8 KiB) Viewed 1042 times


New member

Posts

Joined
Tue Jul 28, 2015 10:50 pm

Post by grgr » Wed Mar 30, 2016 4:19 pm

On the basis that the error is with the journal 2 onepage checkout, you might want to ask for support from them.

-
Image Image Image
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS


User avatar
Active Member

Posts

Joined
Mon Mar 28, 2011 4:08 pm
Location - UK

Post by Randem » Wed Mar 30, 2016 4:56 pm

H glommy.rm,

Perhaps this will be of use in the future:

2016 - Why are there so many Terrible themes?!

NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart


User avatar
Active Member

Posts

Joined
Sat Sep 27, 2014 9:17 am

Post by glommy.rm » Thu Mar 31, 2016 7:26 pm

I had it fixed and was told it was a session creation problem.
Not sure what that means.

New member

Posts

Joined
Tue Jul 28, 2015 10:50 pm

Post by Randem » Fri Apr 01, 2016 4:42 am

Have them explain it to you... tell you what they did.

NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart


User avatar
Active Member

Posts

Joined
Sat Sep 27, 2014 9:17 am

Post by ajc200x » Wed Jun 01, 2016 9:10 pm

They changed your tmp data save location from global to local as i presume you are using a cloud based hosting solution.

they added a line below to your php.ini file or created a .user.ini file with a line of code

adding an local absolute path to your tmp directory, for example

session.save_path= "/var/sites/d/dev.mysite.co.uk/public_html/tmp/"

your host will need to give you the absolute path for your website, or you might be able to see it in your config.php file.

the absolute path is non symbolic meaning its a straight path to the directory locally, rather than

session.save_path= "/tmp/"

which is most likely defined as a symbolic link to there global temp space,
this is highly volatile as they probably use a process killer to kill abandoned sql calls & sessions that run,

For example someone extracts there product database SQL using a html/webpage front end, or phpmyadmin, and closes there browser, halfway thru, the server will still be processing that call for data, there process killer will do a process check and fail and kill that process and cause the session errors like un-serialised, and offset session errors, or your browser session will just sit spinning on processing or freeze on a percent or range, until time ends.

For sessions its cut throat, but in slight different manner as the data as far as im aware is just a session file containing a token that is a static and because is located in global "cloud" tmp space, which kind of don't have a static location it could be stored anywhere in the clouds tmp structure, its process killed because it don't know the origin of the creation,
and a new one is created causing errors.

To my experience is that a session in global tmp will last between 2 seconds and 22 seconds, dependent on the hosts infrastructure load at that particular time. I had this issue around 2014, only October 2015 did I learn how to fix it.

with a local absolute define of the tmp path it does not get deleted , in the same manner. and solves the problems.

This is to the best of my knowledge and I stand to be corrected.

Regards

Andrew Clarke.

Newbie

Posts

Joined
Wed Oct 15, 2014 10:06 pm
Who is online

Users browsing this forum: No registered users and 8 guests