Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse Error and Fatal Error


Guest

Recommended Posts

Hi,

 

I'm a real newbe on osC.

 

I've just installed it, and first screen after installation gives me a menu with "catalog" and "admin" to choose from.

 

1) When choosing admin, I receive the following error: Parse error: parse error, unexpected '(', expecting ',' or ';' in /srv/www/htdocs/catalog/admin/includes/classes/sessions.php on line 33

 

2) When entering catalog, it says in the bottom of the default shop page: Fatal error: Call to undefined function: session_write_close() in /srv/www/htdocs/catalog/includes/functions/sessions.php on line 106

 

What's the problem?

 

I am using php 4.4.0, can that be the problem?

 

Thanks for any support in helping me out...

 

Regards

Fredrik

Link to comment
Share on other sites

Hi,

 

Here is some update on the case...

 

PROBLEM 1: Fatal error: Call to undefined function: session_write_close() in /srv/www/htdocs/catalog/includes/functions/sessions.php on line 106

 

This shows up on the bottom of the page when I try to enter the demo shop.

 

When looking into the code, it shows:

function tep_session_close() {

if (PHP_VERSION >= '4.0.4') {

/* return session_write_close();

*/

return session_close();

} elseif (function_exists('session_close')) {

return session_close();

}

}

 

 

The remarks above I have applied, they solved the issue.

It seems like session_write_close is not implemented in PHP 4.4.0, but session_close is....

Any php knowledgeble who can comment on this?

 

PROBLEM 2: Parse error: parse error, unexpected '(', expecting ',' or ';' in /srv/www/htdocs/catalog/admin/includes/classes/sessions.php on line 33

 

When looking into the code, the following line appears.

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

 

It's the substr that wont work !!!!

When looking into the docs, it all seems right.

 

Again, could it be the PHP 4.4.0 that is screwed?

 

Thanks for any comments.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...