pueyo Posted July 18, 2003 Posted July 18, 2003 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
pueyo Posted July 18, 2003 Author Posted July 18, 2003 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
equilla Posted July 18, 2003 Posted July 18, 2003 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 Mark Stephens Contribs: http://www.oscommerce.com/community/contributions,1680 http://www.oscommerce.com/community/contributions,1467 http://www.oscommerce.com/community/contributions,1422
Recommended Posts
Archived
This topic is now archived and is closed to further replies.