All of sudden I an receiving an error message while editing product in admin -> categories/products. When deleting images under
More Additional Images, I tick the delete radio button and then click the preview button which takes me to the next page. When I select the update button, I receive the following error message:
Quote
Warning: unlink(/xxxx/xxxx/xxxx/xxxx/xxxx.xxxxx/images/DSD-533711-1.jpg) [function.unlink]: No such file or directory in /xxxxx/xxxxx/xxxxx/xxxxx/xxx.xxxxx/admin/categories.php on line 271
Warning: Cannot modify header information - headers already sent by (output started at /xxxxx/xxxxx/xxxxx/xxxxx/xxx.xxxxx/xxxxx/categories.php:271) in /xxxxx/xxxxx/xxxxx/xxxx/xx.xxxxx/admin/includes/functions/general.php on line 22
This is from admin/categories.php - lines 262 thru 272:
// MaxiDVD Added ULTRA Image SM - LG 1
$image_sm_1_count_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " where products_image_sm_1='" . $HTTP_POST_VARS['products_previous_image_sm_1'] . "'");
$image_sm_1_count = tep_db_fetch_array($image_sm_1_count_query);
if (($HTTP_POST_VARS['delete_image_sm_1'] == 'yes') && ($image_sm_1_count['total']<= '1')) {
unlink(DIR_FS_CATALOG_IMAGES . $HTTP_POST_VARS['products_previous_image_sm_1']);
}
$image_xl_1_count_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " where products_image_xl_1='" . $HTTP_POST_VARS['products_previous_image_xl_1'] . "'");
$image_xl_1_count = tep_db_fetch_array($image_xl_1_count_query);
if (($HTTP_POST_VARS['delete_image_xl_1'] == 'yes') && ($image_xl_1_count['total']<= '1')) {
unlink(DIR_FS_CATALOG_IMAGES . $HTTP_POST_VARS['products_previous_image_xl_1']);
}
This is from /admin/includes/functions/general.php - lines 14 thru 30:
// Redirect to another page or site
function tep_redirect($url) {
global $logger;
if ( (strstr($url, "\n") != false) || (strstr($url, "\r") != false) ) {
tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false));
}
header('Location: ' . $url);
if (STORE_PAGE_PARSE_TIME == 'true') {
if (!is_object($logger)) $logger = new logger;
$logger->timer_stop();
}
exit;
}
I have not added any contributions for some time now. So not sure what happen that would cause such an error message. In fact, it only happens when deleting additional images.
Thanks in advance.