Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal Error Admin login Help


bestbetinc

Recommended Posts

Fatal error: Call to a member function Execute() on a non-object in /home/bestbetinc/waxwormkit.com/orders/includes/functions/sessions.php on line 61

I get this when I go to my log on page and my customers can't log in ether.

This Fatal error is also showing on the bottom of my cart page waxwormkit.com/orders

 

I Didn't change anything it just started doing it?

 

osCommerce version 2.0 I think. I know it is a old version. Don't know the PHP version. Not sure if Dreamhost did some kind of upgrade. I have limited smarts with this suff.

 

I did try changing both sessions.php from:

function _sess_write($key, $val) {

global $db;

global $SESS_LIFE;

and

function _sess_write($key, $val) {

global $SESS_LIFE, $db;

To:

function _sess_write($key, $val) {

// The following is only to work around a PHP 5.2.0 bug:

global $db;

if (!is_object ($db)) {

//PHP 5.2.0 bug workaround ...

$db = new queryFactory();

$db->connect (DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_ }

 

global $SESS_LIFE;

 

Now get the error:

 

syntax error, unexpected '}' in /home/bestbetinc/waxwormkit.com/orders/includes/functions/sessions.php on line 56

 

I need simple copy paste info. like I said am limited in the smarts area here. Thanks for any help.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...