Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Works fine in local, does'nt work online


Guest

Recommended Posts

Posted

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

Posted
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

 

 

 

 

looks like it is still referring to local address ?!

 

c:1inetpub\.....\catalog\includes\application_top.php on line 310

Posted
looks like it is still referring to local address ?!

 

c:1inetpub\.....\catalog\includes\application_top.php on line 310

 

 

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 ?

Posted
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 ?

 

suggest to search for "PHP5"

Treasurer MFC

Posted

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

Archived

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

×
×
  • Create New...