Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

fatal error I can't create productos or caterories.


pueyo

Recommended Posts

Posted

Wen I try to create or modify a product:

 

Fatal error: Cannot instantiate non-existent class: upload in /usr/local/psa/home/vhosts/mystore.com/httpdocs/admin/categories.php on line 492

 

 

Please I need help.

 

Thank you

Posted

I have this code in the page categories.php on line 492:

 

// copy image only if modified

     if ($products_image = new upload('products_image', DIR_FS_CATALOG_IMAGES)) {

       $products_image_name = $products_image->filename;

     } else {

       $products_image_name = $HTTP_POST_VARS['products_previous_image'];

     }

   } else {

     $product_query = tep_db_query("select p.products_id, pd.language_id, pd.products_name, pd.products_description, pd.products_url, p.products_quantity, p.products_model, p.products_image, p.products_price, p.products_weight, p.products_date_added, p.products_last_modified, p.products_date_available, p.products_status, p.manufacturers_id  from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = pd.products_id and p.products_id = '" . $HTTP_GET_VARS['pID'] . "'");

     $product = tep_db_fetch_array($product_query);



     $pInfo = new objectInfo($product);

     $products_image_name = $pInfo->products_image;

   }

 

help me please

Posted

Hi,

 

the problem is that a class called upload is being called which hasn't been declared anywhere - it should really defined be in one of the files in admin/includes/classes.

 

Have you been installing any contribs because the code in my categories.php is different to yours?

 

Mark

Archived

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

×
×
  • Create New...