Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal error in manufacturers.php


ssyfrig

Recommended Posts

Hi all

 

when i like add or edit some manufacturers i recivce this error message.

 

Fatal error: Call to undefined function: tep_is_uploaded_file() in /raid/virt-server/safs/shop/admin/manufacturers.php on line 46

 

 

This is Line 46 **

 

      if ($uploaded_tmp_file != 'none') {

**        if (tep_is_uploaded_file($uploaded_tmp_file)) {

         tep_db_query("update " . TABLE_MANUFACTURERS . " set manufacturers_image = '" . $uploaded_file . "' where manufacturers_id = '" . tep_db_input($manufacturers_id) . "'");

         $image_location = DIR_FS_CATALOG_IMAGES . $uploaded_file;

         if (file_exists($image_location)) @unlink($image_location);

         copy($uploaded_tmp_file, $image_location);

       }

thanks 4 help, Sven

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...