Dermot Posted December 31, 2005 Share Posted December 31, 2005 Just completed my first installation of oscommerce - everything went smoothly, logged into the admin section and started making adjustments and then flicked through to the catalog and noticed 3 alerts at the top of the page one of which was telling me to remove the install directory which I did. Then I refreshed the page and recieved this alert. This was all that was on the page. Fatal error: 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 /home/httpd/vhosts/myserver/httpdocs/shop/catalog/includes/application_top.php on line 309 Any ideas?? Thanks! Link to comment Share on other sites More sharing options...
Dermot Posted January 1, 2006 Author Share Posted January 1, 2006 hmmm . . . quiet around here. Should I do an clean re-install? Link to comment Share on other sites More sharing options...
Guest Posted January 1, 2006 Share Posted January 1, 2006 Are you sure you only deleted the "install" directory? That's not an error I've seen before . . . Do you see this error now on all catalog pages, or just some? If some, which? -jared Link to comment Share on other sites More sharing options...
Dermot Posted January 1, 2006 Author Share Posted January 1, 2006 Are you sure you only deleted the "install" directory? That's not an error I've seen before . . . Do you see this error now on all catalog pages, or just some? If some, which? -jared I can't get to any of the other catalog pages :) as I only know the address to the first one from the admin section so I'm doing a clean install and we'll see how things go from there. It wouldn't surprise me if I had deleted something I shouldn't have although I don't remember doing so :blink: Link to comment Share on other sites More sharing options...
Dermot Posted January 1, 2006 Author Share Posted January 1, 2006 Well just completed a clean install and got exactly the same error message when going to the catalog - this is very annoying! :angry: Link to comment Share on other sites More sharing options...
Dermot Posted January 1, 2006 Author Share Posted January 1, 2006 Just downloading a totally new install from the oscommerce site and uploading that to me server - let's see if that fixes things - will continue to share my experience as there doesn't seem to be too many people who have come across this error before. Link to comment Share on other sites More sharing options...
Dermot Posted January 1, 2006 Author Share Posted January 1, 2006 Well, just downloaded a new version of the shop and uploaded it. Went through the entire process and clicked on catalog and received teh same error message again Fatal error: 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 /home/httpd/vhosts/bodybuilders.com.au/httpdocs/catalog/includes/application_top.php on line 309 Think I'll give it a miss unless someone knows what's going on here Link to comment Share on other sites More sharing options...
Dermot Posted January 1, 2006 Author Share Posted January 1, 2006 In case this helps - these are lines 298 - 309 in the application_top.php file on the server. // 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; } (Line 309) $navigation->add_current_page(); Link to comment Share on other sites More sharing options...
Dermot Posted January 2, 2006 Author Share Posted January 2, 2006 Logged in from a different computer and everything worked fine on the first page and then I tried accessing one of the other pages and received the same error. Then when going back to the first page the error message came up. The site can be viewed at http://www.bodybuilders.com.au/catalog Could a few of you see if you get the same error after navigating around the site. It's the stock standard install with the dummy stock still in it. Thanks, :-) Link to comment Share on other sites More sharing options...
wheeloftime Posted January 2, 2006 Share Posted January 2, 2006 Logged in from a different computer and everything worked fine on the first page and then I tried accessing one of the other pages and received the same error. Then when going back to the first page the error message came up. The site can be viewed at http://www.bodybuilders.com.au/catalog Could a few of you see if you get the same error after navigating around the site. It's the stock standard install with the dummy stock still in it. Thanks, :-) Site opens fine at the first start but any next clicks gives the named error. At first start though, when no session is available yet, there is a warning message on top of the main page saying Warning: session.auto_start is enabled - please disable this php feature in php.ini and restart the web server. I am no expert on this but you can bet that the errors are related to this. As you don't have access to the php.ini (unless you run your own server) you should talk to your host for this. Maybe it is something you can override yourself but that I can not answer. Link to comment Share on other sites More sharing options...
Dermot Posted January 2, 2006 Author Share Posted January 2, 2006 Site opens fine at the first start but any next clicks gives the named error.At first start though, when no session is available yet, there is a warning message on top of the main page saying I am no expert on this but you can bet that the errors are related to this. As you don't have access to the php.ini (unless you run your own server) you should talk to your host for this. Maybe it is something you can override yourself but that I can not answer. I was just going to post that :thumbsup: I wouldn't be surprised if that is what the problem is too - thanks wheeloftime Link to comment Share on other sites More sharing options...
TENCENTS Posted January 2, 2006 Share Posted January 2, 2006 It looks like an out-of-the box installation. I wonder, have you had a look at the post-installation instructions (check the contributions), i.e. setting up the rights to the different folders and files - there's quite a bit you need to do after you have unpacked and installed OSC. She can be a real b$#@$, but once you get your head around it you'll see that this is a very solid package. Also, I agree with subsequent replies - you need to check out your PHP.INI to get rid of that 'auto-start' error at the top of the screen (before even thinking of going any further!!). Regards Mike :) Never underestimate the power of stupid people, especially in groups. Link to comment Share on other sites More sharing options...
Dermot Posted January 3, 2006 Author Share Posted January 3, 2006 Seems that there are people using the server who need the auto-start for their sites. What to do now? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.