Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal error: Cannot instantiate non-existent class: upload in /home/www/categories.php on line 314


jgmilleriii

Recommended Posts

All of a sudden our OSC sites have the same error:

 

Fatal error: Cannot instantiate non-existent class: upload in /home/www/catalog/admin/categories.php on line 314

 

It doesn't seem to be related to the "$this" problem and perhaps a PHP 5 problem. We did upgrade the server to php 5.05 and after some problems, downgraded it to php 4.4.1.

 

Any ideas? We need your help asap.

 

Thanks!

Link to comment
Share on other sites

Fatal error: Cannot instantiate non-existent class: upload in /home/www/catalog/admin/categories.php on line 314
Strange, because that class is loaded by includes/application_top.php (line 161).
It doesn't seem to be related to the "$this" problem and perhaps a PHP 5 problem.
Interestingly, there is a "$this = null;" in that class (line 31).
Link to comment
Share on other sites

Strange, because that class is loaded by includes/application_top.php (line 161).

Interestingly, there is a "$this = null;" in that class (line 31).

 

Thanks for helping me think about this. Apparently one of our staff had commented out the require upload.php line in order to avoid the php 5.0.5 $this problems.

 

// file uploading class

require(DIR_WS_CLASSES . 'upload.php');

 

 

Uncommenting the line solved the problem. Hard to find those sneaky little things.

 

Thanks!

Link to comment
Share on other sites

  • 6 months later...
Thanks for helping me think about this. Apparently one of our staff had commented out the require upload.php line in order to avoid the php 5.0.5 $this problems.

 

// file uploading class

require(DIR_WS_CLASSES . 'upload.php');

Uncommenting the line solved the problem. Hard to find those sneaky little things.

 

Thanks!

 

I am getting this on line 334. Same error otherwise. No php mods that I know of... :blink:

Link to comment
Share on other sites

  • 4 months later...
I am getting this on line 334. Same error otherwise. No php mods that I know of... :blink:

 

 

is there a fix to this error?

 

 

 

Fatal error: Cannot instantiate non-existent class: upload in /home/kaosusac/public_html/store/admin/categories.php on line 314

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...