charleyhankins Posted September 15, 2005 Share Posted September 15, 2005 (previously posted in incorrect section) Hi! I've looked for a solution to this problem in the forums and can't seem to find it. I recently installed OSCommerce and just installed the calendar. When I attempt to access the admin section I get the following error: Fatal error: Cannot redeclare class upload in /var/www/html/catalog/admin/includes/classes/upload.php on line 13 And when I attempt to access the page for a new category I had just previously created I recieve the following error: Fatal error: Cannot pass parameter 3 by reference in /var/www/html/catalog/includes/modules/product_listing.php on line 13 Any help would be appreciated! THanks, CHarley Quote Link to comment Share on other sites More sharing options...
charleyhankins Posted September 17, 2005 Author Share Posted September 17, 2005 I've been fiddling with this, but I can't seem to get it. I would appreciate any direction. Thanks. Quote Link to comment Share on other sites More sharing options...
LCAngela Posted October 7, 2005 Share Posted October 7, 2005 I seem to have found the problem! In /[admin]/includes/application_top.php, look around lines 155 to 170. You'll probably see something like this: // email classes require(DIR_WS_CLASSES . 'mime.php'); require(DIR_WS_CLASSES . 'email.php'); // file uploading class require(DIR_WS_CLASSES . 'upload.php'); // file uploading class require(DIR_WS_CLASSES . 'upload.php'); // calculate category path if (isset($HTTP_GET_VARS['cPath'])) { $cPath = $HTTP_GET_VARS['cPath']; } else { $cPath = ''; } As you can see, and just like the error message says, the class "upload" has been declared twice! REMOVE one of these from that code: // file uploading class require(DIR_WS_CLASSES . 'upload.php'); and reupload your /[admin]/includes/application_top.php. It should fix the issue! :) Quote "That's because it's fly soup, sir..." Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.