Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help please with fatal errors?


thenook

Recommended Posts

Hello,

 

I get the following error when I try to checkout by clicking the checkout button:

 

Fatal error: Call to a member function set_snapshot() on a non-object in /var/www/html/checkout_shipping.php on line 18

 

Here's that section of the file, " $navigation->set_snapshot();" is line 18.

<?php
/*
 $Id: checkout_shipping.php,v 1.16 2003/06/09 23:03:53 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url]

 Copyright © 2003 osCommerce

 Released under the GNU General Public License
*/

 require('includes/application_top.php');
 require('includes/classes/http_client.php');

// if the customer is not logged on, redirect them to the login page
 if (!tep_session_is_registered('customer_id')) {
   $navigation->set_snapshot();
   tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
 }

// if there is nothing in the customers cart, redirect them to the shopping cart page
 if ($cart->count_contents() < 1) {
   tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
 }

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...