wjn Posted May 6, 2005 Share Posted May 6, 2005 I am trying to restrict access to all pages of the osCommerce site. I have a client that is running a private corporate store that they would not want to compete with their national retailers. So we are trying to make it so that you have to login to the site and then use osC as it normally functions. We still want customers to login (again) as you normally do to purchase something. In this way we want to have a simple username password sitewide entry and then the osC login for individual purchases. I have the sitewide working fine until I go to checkout or login to the osC catalog pages that require a login. Then I get this message: Fatal error: Unknown(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition navigationhistory of the object you are trying to operate on was loaded _before_ the session was started in /hsphere/local/home/barringt/cellstar.barringtongifts.com/catalog/includes/application_top.php on line 352 Line 352 is marked with *** below: // 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(); *** LINE 352 I am using Dreamweaver to do much of the work - thinking it would be quicker - and DW uses session variables to do the access restrictions. There seems to be a conflict of somekind along these lines and I wondered if anyone had any ideas about the best way to proceed? Thanks much for your help. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.