jgmilleriii Posted January 3, 2006 Share Posted January 3, 2006 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 More sharing options...
Jan Zonjee Posted January 3, 2006 Share Posted January 3, 2006 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 More sharing options...
jgmilleriii Posted January 3, 2006 Author Share Posted January 3, 2006 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 More sharing options...
gezuvor Posted July 17, 2006 Share Posted July 17, 2006 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 More sharing options...
relmone Posted November 21, 2006 Share Posted November 21, 2006 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 More sharing options...
nvedia Posted November 21, 2006 Share Posted November 21, 2006 Paste that line here Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.