Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

easy populate upload errors


Jen7pc

Recommended Posts

Posted

Hi,

I think i have catalog/temp directories worked out and have made changes to $tempdir thanks to detailed instructions in another posting. But I'm still puzzling about the changes needed to general.php that are causing the following errors on an attempted upload. Following the following, are the relevant lines for my relevant files.

 

Thanks

Jennifer

 

 

Warning: move_uploaded_file(/home/fssuniv1/public_html/catalog/temp/http://www.fssuniverse.com/oscommerce/catalog/temp/product-upload.txt): failed to open stream: No such file or directory in /home/fssuniv1/public_html/oscommerce/admin/includes/functions/general.php on line 789

 

Warning: move_uploaded_file(): Unable to move '/tmp/phpPKbcTz' to '/home/fssuniv1/public_html/catalog/temp/http://www.fssuniverse.com/oscommerce/catalog/temp/product-upload.txt' in /home/fssuniv1/public_html/oscommerce/admin/includes/functions/general.php on line 789

 

File uploaded.

Temporary filename: /tmp/phpPKbcTz

User filename: http://www.fssuniverse.com/oscommerce/cata...duct-upload.txt

Size: 0

 

Warning: file(/home/fssuniv1/public_html/catalog/temp/http://www.fssuniverse.com/oscommerce/catalog/temp/product-upload.txt): failed to open stream: No such file or directory in /home/fssuniv1/public_html/oscommerce/admin/easypopulate.php on line 644

 

Warning: Invalid argument supplied for foreach() in /home/fssuniv1/public_html/oscommerce/admin/easypopulate.php on line 667

 

GENERAL.PHP, line 782-791

// the $filename parameter is an array with the following elements:

// name, type, size, tmp_name

function tep_copy_uploaded_file($filename, $target) {

if (substr($target, -1) != '/') $target .= '/';

 

$target .= $filename['name'];

 

move_uploaded_file($filename['tmp_name'], $target);

}

 

EASYPOPULATE.PHP, line 643-644

// get the entire file into an array

$readed = file(DIR_FS_DOCUMENT_ROOT . $tempdir . $usrfl_name);

 

 

EASYPOPULATE, line 665-669

// now we string the entire thing together in case there were carriage returns in the data

$newreaded = "";

foreach ($readed as $read){

$newreaded .= $read;

}

Archived

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

×
×
  • Create New...