Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Admin login parse errors with default install - 2.2ms2


BillS

Recommended Posts

After performing a default install and trying to access the admin panel (http://localhost/catalog/admin/index.php), I receive the following errors:

 

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

 

The line in question for the parse error is: var $cookie_path = substr(DIR_WS_ADMIN, 0, -1);

 

I have compared the files, including the admin/includes/configure.php file, with the virgin downloaded files and found no differences.

 

What have I missed?

Link to comment
Share on other sites

Try reloading admin/includes/functions/sessions.php

 

Vger

 

Vger - Thanks for the quick reply. I downloaded a fresh file from a different mirror and installed it in the admin/includes/functions directory. However, I still get the same two errors.

 

Any further suggestions?

 

BillS

Link to comment
Share on other sites

Imo admin/includes/classes/sessions has a php error that is before session_set_save_handler() and therefore the function is not loading.

 

Upload a fresh admin/includes/classes/sessions.php

Link to comment
Share on other sites

Imo admin/includes/classes/sessions has a php error that is before session_set_save_handler() and therefore the function is not loading.

 

Upload a fresh admin/includes/classes/sessions.php

 

Something else must be going on - I have downloaded both sessions.php files from the other linux mirror and installed them in their respective folders. I am using SuSE Linux Enterprise Server 9 with php4. I still get the same two errors. I have looked at the code setting the DIR_WS_ADMIN value, and see nothing wrong with it. While I am waiting to see if anyone has any other ideas, I'll reinstall oscommerce from scratch with the file set from the European mirror. BTW, I assume I am accessing the admin part of the site correctly: catalog/admin/index.php. I could not find any admin link on the home page of the site.

Link to comment
Share on other sites

Bill

 

The default catalog/admin/includes/classes/sessions.php has no parse errors.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...