JL_Newbie Posted October 16, 2009 Posted October 16, 2009 Hello, I am completely new to PHP. Our store was set up (and hosted by) a co-worker who is no longer in the business. We transfered our site to a new host approx. a year ago. I was going to modify a product and this is the message that I get: Does anyone have any idea what I need to do to get this to work? Does it have something to do with moving from one host to another? Thanks in advance! Fatal error: Call to undefined method upload::set_destination() in /home/merv9169/public_html/adminmerv8/categories.php on line 315 Line 315 is the 3rd line down. // copy image only if modified $products_image = new upload('products_image'); $products_image->set_destination(DIR_FS_CATALOG_IMAGES); if ($products_image->parse() && $products_image->save()) { $products_image_name = $products_image->filename; } else { $products_image_name = (isset($HTTP_POST_VARS['products_previous_image']) ? $HTTP_POST_VARS['products_previous_image'] : ''); } break; } }
FIMBLE Posted October 16, 2009 Posted October 16, 2009 Hi DIR_FS_CATALOG_IMAGES is defined in the configure.php file and should be similar to define('DIR_FS_CATALOG_IMAGES', 'images/'); Make sure it exists and is correct, the above example may not be 100% correct so check a new copy of admin/includes/configure.php Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
Recommended Posts
Archived
This topic is now archived and is closed to further replies.