Guest Posted December 15, 2004 Share Posted December 15, 2004 I' Have just finished my work whit a oscommerce shop that seems to work very well in local, on a widows 2000 machine with easyphp as internet server. I have then upped the site on a internet domain and, after fiddling with the various configuration files i could make the admin part work perfectly, while the client side suffers from some strange problem : - the home page displays correctly, but when i click on a product i get the following error : Fatal Error : Unknown(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition <b>navigationhistory</b> of the object you are trying to operate on was loaded _before_the session was started in c:1inetpub\.....\catalog\includes\application_top.php on line 310 The error seems to be originated by a marginal part of code where the navigation history is loaded. so i disabled the ooffending code, and everything seemed to work fine, untill i found out that the shopping cart did not work and remained empty no matter what i was trying to purchase. The problem seems related to classes and object creation, and i suspect is due to the host machine configuration, but i can't figure out the solution. Could anybody give me some hint on how to get it working ??? Thanks in advance Link to comment Share on other sites More sharing options...
TAPAKAH Posted December 15, 2004 Share Posted December 15, 2004 Fatal Error : Unknown(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition <b>navigationhistory</b> of the object you are trying to operate on was loaded _before_the session was started in c:1inetpub\.....\catalog\includes\application_top.php on line 310 <{POST_SNAPBACK}> looks like it is still referring to local address ?! c:1inetpub\.....\catalog\includes\application_top.php on line 310 Link to comment Share on other sites More sharing options...
Guest Posted December 16, 2004 Share Posted December 16, 2004 looks like it is still referring to local address ?! c:1inetpub\.....\catalog\includes\application_top.php on line 310 <{POST_SNAPBACK}> No, it'looking to the absolute address on the remote host. I have just found out that the host is using PHP5, so the problem is probably related to that. Does anyone know how to make oscommerce work with php5 ? Link to comment Share on other sites More sharing options...
boxtel Posted December 16, 2004 Share Posted December 16, 2004 No, it'looking to the absolute address on the remote host. I have just found out that the host is using PHP5, so the problem is probably related to that. Does anyone know how to make oscommerce work with php5 ? <{POST_SNAPBACK}> suggest to search for "PHP5" Treasurer MFC Link to comment Share on other sites More sharing options...
♥Vger Posted December 16, 2004 Share Posted December 16, 2004 You can go to admin/includes/classes/upload.php and on line 31, where you see $this, change it to //$this This is the only change I know of that you have to make in order for osCommerce to run with php5. Vger Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.