Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Errors on my account page


Vasi

Recommended Posts

Can someone please help me on this as soon as possible. I really need an answer soon

When I click on my account the following errors comes.

Fatal error: Call to a member function set_snapshot() on a non-object in /home/mypapua/public_html/account.php on line 16

When I checkout the product this comes.

Fatal error: Call to a member function set_snapshot() on a non-object in /home/mypapua/public_html/checkout_shipping.php on line 18

Thanks

Link to comment
Share on other sites

Making this code change in application top may fix the issue:

 

Find:

 

// navigation history
 if (tep_session_is_registered('navigation')) {
if (PHP_VERSION < 4) {
  $broken_navigation = $navigation;
  $navigation = new navigationHistory;
  $navigation->unserialize($broken_navigation);
}
 } else {
tep_session_register('navigation');
$navigation = new navigationHistory;
 }
 $navigation->add_current_page();

 

Replace With:

 

// navigation history
 if (tep_session_is_registered('navigation') && is_object($navigation)) {
if (PHP_VERSION < 4) {
  $broken_navigation = $navigation;
  $navigation = new navigationHistory;
  $navigation->unserialize($broken_navigation);
} elseif ( false === is_object($navigation) ) {
  $navigation = new navigationHistory;
}
 } else {
tep_session_register('navigation');
$navigation = new navigationHistory;
 }
 $navigation->add_current_page();

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...