Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Installation error on Admin


stallion

Recommended Posts

Posted

Hi,

 

I have this problem with osC, where the error:

 

Parse error: Parse error, expecting `'." or `';" in /srv/www/htdocs/catalog/admin/includes/classes/sessions.php on line 33

 

Fatal Error: Call to undefined function: session_set_save_handler in /srv/www/htdocs/catalog/admin/includes/functions/sessions.php on line 63

 

To get over this in the past, I've copied over the /classes/sessions.php file from the directory I extracted the zip file into, and it seemed to do the job, although there was an error at the bottom of the catalog screen on line 306; but this isn't happening anymore. Also, if I comment out line 33, I get more errors on line 306

 

Can anyone shed some light?

 

Cheers

Posted

If you are repeatedly getting this problem, then there is obviously something else wrong, either with your site or with the server you are on. My advice, if you are handling sessions in files, then change to handling them via mysql, as in configure.php

 

define('STORE_SESSIONS', 'mysql');

 

If you are already handling sessions in mysql then I'm afraid I can't offer any more advice as to what may be wrong. This is what should be on line 33 and line 34 of that file, on a default osCommerce install.

 

var $cookie_path = substr(DIR_WS_ADMIN, 0, -1);

var $cookie_domain = '';

 

Vger

Posted
If you are repeatedly getting this problem, then there is obviously something else wrong, either with your site or with the server you are on.  My advice, if you are handling sessions in files, then change to handling them via mysql, as in configure.php

 

define('STORE_SESSIONS', 'mysql');

 

If you are already handling sessions in mysql then I'm afraid I can't offer any more advice as to what may be wrong.  This is what should be on line 33 and line 34 of that file, on a default osCommerce install.

 

var $cookie_path = substr(DIR_WS_ADMIN, 0, -1);

var $cookie_domain = '';

 

Vger

 

Thanks for the info, I'll try that.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...