Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error when adding category image


DarrenJMcCabe

Recommended Posts

Can someone please help me with this.

 

I have setup categories for my items, if I added an image when creating the category then all is good, however when I try to add an image for the categories I did not give images to, I now get

 

"Fatal error: Cannot instantiate non-existent class: upload in /home/faelsafe/public_html/admin/categories.php on line 80"

 

Anyone have any ideas why?

Link to comment
Share on other sites

turned out I was missing a couple of lines from my application_top.php in the admin\includes directory.

 

The code I was missing was:

// file uploading class
  require('includes/classes/upload.php');

 

I found in a couple of topics it said I may be missing the following:

 

// file uploading class
require(DIR_WS_CLASSES . 'upload.php');

 

however for some reason the DIR_WS_CLASSES would not work, so I changed it to the above and bish bash bosh, we're off!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...