Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Errors after installing calendar


charleyhankins

Recommended Posts

(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

Link to comment
Share on other sites

  • 3 weeks later...

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! :)

"That's because it's fly soup, sir..."

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...