Post by iwbc » Sat Apr 30, 2016 7:43 am

There are actually more errors than just the session but hopefully they'll go away after this is fixed.

I installed version 2.1.02 but it wasn't working correctly so, I upgraded to v2.2. However, it still displays errors in Firefox and now, admin through Firefox doesn't work at all. Chrome & Internet Explorer don't display errors until I attempt to make a purchase.

Also, per the upgrade instructions, there's supposed to be a /install directory but there wasn't.

It's installed at http://internetwebbuilders.com/myiota/i ... duct_id=50

Clicked Add to Cart and got this error:
SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data at line 1 column 311 of the JSON data
OK
{"success":"Success: You have added <a href=\"http:\/\/internetwebbuilders.com\/myiota\/index.php?route=product\/product&product_id=50\">myIOTA Travel System<\/a> to your <a href=\"http:\/\/internetwebbuilders.com\/myiota\/index.php?route=checkout\/cart\">shopping cart<\/a>!","total":"1 item(s) - $19.99"}<br />
<b>Fatal error</b>: Call to a member function get() on a non-object in <b>/home/MYUSER/public_html/myiota/index.php</b> on line <b>97</b><br />
- Cart showed 2 added @ $39.98 so tried deleting and got this error even though it deleted 1 item each time:
SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data at line 1 column 31 of the JSON data
OK
{"total":"1 item(s) - $19.99"}<br />
<b>Fatal error</b>: Call to a member function get() on a non-object in <b>/home/MYUSER/public_html/myiota/index.php</b> on line <b>97</b><br />
- SEE THIS PAGE FOR HELP: http://stackoverflow.com/questions/2805 ... 1-column-1

Firefox shows these errors at the top of the page:

Warning: session_start(): open(/tmp/sess_5ace5l4reabfmjgshqulebnge2, O_RDWR) failed: Permission denied (13) in /home/MYUSER/public_html/myiota/system/library/session.php on line 21Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/MYUSER/public_html/myiota/index.php:98) in /home/MYUSER/public_html/myiota/system/library/session.php on line 21

The admin login page accepts a username & password but only these errors appear after I click "Login"; nothing else on the page at all:

Warning: session_start(): open(/tmp/sess_5ace5l4reabfmjgshqulebnge2, O_RDWR) failed: Permission denied (13) in /home/MYUSER/public_html/myiota/system/library/session.php on line 21Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/MYUSER/public_html/myiota/admin/index.php:80) in /home/MYUSER/public_html/myiota/system/library/session.php on line 21Warning: Cannot modify header information - headers already sent by (output started at /home/MYUSER/public_html/myiota/admin/index.php:80) in /home/MYUSER/public_html/myiota/system/library/response.php on line 12
Fatal error: Call to a member function get() on a non-object in /home/MYUSER/public_html/myiota/admin/index.php on line 79

Newbie

Posts

Joined
Sat Apr 30, 2016 7:27 am

Post by inactiveaccount9912 » Mon May 02, 2016 6:17 pm

Try changeing the session storage path to one that you have permissions to.(trough php.ini)

Code: Select all

session.save_path = "/path/to/your/folder"

Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am

Post by iwbc » Tue May 03, 2016 5:00 am

Thanks, I added that variable and appropriate paths to the sites public_html/php.ini & admin/php.ini files. Neither file had a session.save_path variables in them.
I have a couple of questions though,
1. Will those php.ini files be overwritten during future version upgrades and bring the problem back?
2. Isn't there a better way to store the path that won't require that I have too modify the path manually if I move the site to a different location such as copying it to another user's account? Right now the path includes the user's username. For example, "/home/USER/public_html/"

Newbie

Posts

Joined
Sat Apr 30, 2016 7:27 am

Post by ajc200x » Wed Jun 01, 2016 7:47 pm

The answer to !will the php.ini file be over written when i upgrade in the future". The answer is probably yes due to the fact they include a universal version, I would extract the zip and delete the php.ini file thats there then do your upgrade.

the reason why you have to manually add, session.save_path= " is, because you are probably using cloud based hosting.


there are two types of "scratch spaces" or temp places, that is local and global, the default I've found is, that with cloud based hosting, you are set to global session saves rather then local temp saves, so you have to point the full absolute path to where you want the session data to save, for example mines

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

make sure you make a dir called tmp and permissions are 775

also you can create a .user.ini file (dont forget the dot before user) in the root and
add session.save_path= "absolutesavepathto/tmp"
and that will override the php.ini file default and retain the session save paths for future upgrades

some hosts will have a different absolute path and you will need to contact them to get the absolute path. this was an issue for me since October 2014, untill i found the fix and now i now i never get logged out due to session faults and now my codemanager works, if you use that I have posted a fix to get working on 2.0.2.0 on isenselabs website for absolute pathing errors, unrelated to this. and also the blackscreen issue, which is fixed by this session save location from global to local webspace.

Andrew Clarke.

Newbie

Posts

Joined
Wed Oct 15, 2014 10:06 pm

Post by Pavan_cs » Sat Jan 07, 2017 1:39 pm

Hi,
I am facing same type of problem,yesterday it was working properly but today I open it on my localhost it show a fatal error message ,
Fatal error: session_set_save_handler(): Session handler's function table is corrupt in C:\Apache24\htdocs\opencart\system\library\session.php on line 16

opencart version 2.3.0.2
Apache version 2.4.23
Php version 7.0.14


Please help me !
Thank you.

Newbie

Posts

Joined
Tue Jan 03, 2017 3:17 pm
Location - Noida,INDIA

Post by Pavan_cs » Sat Jan 07, 2017 2:07 pm

Pavan_cs wrote:Hi,
I am facing same type of problem,yesterday it was working properly but today I open it on my localhost it show a fatal error message ,
Fatal error: session_set_save_handler(): Session handler's function table is corrupt in C:\Apache24\htdocs\opencart\system\library\session.php on line 16

opencart version 2.3.0.2
Apache version 2.4.23
Php version 7.0.14


Please help me !
Thank you.
Oh !
I restart Apache and it works !

Newbie

Posts

Joined
Tue Jan 03, 2017 3:17 pm
Location - Noida,INDIA

Post by Daniel » Wed Jan 25, 2017 4:23 pm

the issue might also be related to php's timezone. or a corrupted php config

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm
Who is online

Users browsing this forum: No registered users and 6 guests