Опенкарт 1.5.5.1. В админке при редактировании товара не отображаются изображения ,на сайте эти изображения есть , если смотреть через сайт, все изображения в карточке товара присутствуют и отображаются прекрасно , а вот в админке их не видно, ниже скрин... ссылки стоят на изображения вот такого вида : <img alt="xxx" src="image/data/img-1/image-806.jpg" /> upd. смотрел через фаербаг аминку, в фаербаге ошибки на картинки и там почему-то адрес прописан так : http://сайт.com/admin/image/data/backpack_12/image-15363.jpg так вот если удалить подпапку admin , тогда картинка открывается... подскажите какой файл надо подправить , чтобы правильный урл генерировался в админке ?
Eksin, а в config.php в админ части что в 'DIR_IMAGE' ? Должно быть полный_путь_на_хостинга/сайт.com/image/, может там стоит полный_путь_на_хостинга/сайт.com/admin/image/ ?
вот что у меня в конфиге : define('DIR_APPLICATION', '/var/www/xxx/data/www/name.com/admin/'); define('DIR_SYSTEM', '/var/www/xxx/data/www/name.com/system/'); define('DIR_DATABASE', '/var/www/xxx/data/www/name.com/system/database/'); define('DIR_LANGUAGE', '/var/www/xxx/data/www/name.com/admin/language/'); define('DIR_TEMPLATE', '/var/www/xxx/data/www/name.com/admin/view/template/'); define('DIR_CONFIG', '/var/www/xxx/data/www/name.com/system/config/'); define('DIR_IMAGE', '/var/www/xxx/data/www/name.com/image/'); define('DIR_CACHE', '/var/www/xxx/data/www/name.com/system/cache/'); define('DIR_DOWNLOAD', '/var/www/xxx/data/www/name.com/download/'); define('DIR_LOGS', '/var/www/xxx/data/www/name.com/system/logs/'); define('DIR_CATALOG', '/var/www/xxx/data/www/name.com/catalog/'); я искал инфу уже и на опенкартфоруме... там вроде как были такие же траблы как у меня ... и вроде бы решились , правда ответа ничерта нету там ... уже и искал по ckeditor и тд... нифика реший не нашел :(... зы. заметил глюк , когда идёт продажа , то в админке в графике почему-то не отображается что была продажа, регистрация... т.е. график мертвый... может быть это как-то связанно... курил admin/controller/common/filemanager.php , но там так и не понял как формируется директория... точнее откуда подпапка admin берётся... или я не тот файл курил ?
Eksin, а в том же файле HTTP_IMAGE и HTTPS_IMAGE сайт/image/ ? И есть ли какие-то записи в журнале ошибок?
черт... ошибок до этого момента небыло вообще ни каких... сейчас глянул в журнал, офигел... 2014-03-01 16:03:10 - PHP Warning: imagecreatefromjpeg(): gd-jpeg, libjpeg: recoverable error: Premature end of JPEG file in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 34 2014-03-01 16:03:10 - PHP Warning: imagecreatefromjpeg(): '/var/www/xxx/data/www/xxx.com/image/data/backpack_10/image-13029.jpg' is not a valid JPEG file in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 34 2014-03-01 16:03:10 - PHP Warning: imagecopyresampled() expects parameter 2 to be resource, boolean given in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 109 2014-03-01 16:03:10 - PHP Warning: imagedestroy() expects parameter 1 to be resource, boolean given in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 110 2014-03-01 16:03:10 - PHP Warning: imagecreatefromjpeg(): gd-jpeg, libjpeg: recoverable error: Premature end of JPEG file in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 34 2014-03-01 16:03:10 - PHP Warning: imagecreatefromjpeg(): '/var/www/xxx/data/www/xxx.com/image/data/backpack_10/image-13032.jpg' is not a valid JPEG file in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 34 2014-03-01 16:03:10 - PHP Warning: imagecopyresampled() expects parameter 2 to be resource, boolean given in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 109 2014-03-01 16:03:10 - PHP Warning: imagedestroy() expects parameter 1 to be resource, boolean given in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 110 2014-03-01 16:03:17 - PHP Notice: Undefined index: bits in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 16 2014-03-01 16:03:18 - PHP Warning: imagecreatefromjpeg(): gd-jpeg, libjpeg: recoverable error: Premature end of JPEG file in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 34 2014-03-01 16:03:18 - PHP Warning: imagecreatefromjpeg(): '/var/www/xxx/data/www/xxx.com/image/data/backpack_10/image-13091.jpg' is not a valid JPEG file in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 34 2014-03-01 16:03:18 - PHP Warning: imagecopyresampled() expects parameter 2 to be resource, boolean given in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 109 2014-03-01 16:03:18 - PHP Warning: imagedestroy() expects parameter 1 to be resource, boolean given in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 110 2014-03-01 16:03:18 - PHP Warning: imagecreatefromjpeg(): gd-jpeg, libjpeg: recoverable error: Premature end of JPEG file in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 34 2014-03-01 16:03:18 - PHP Warning: imagecreatefromjpeg(): '/var/www/xxx/data/www/xxx.com/image/data/backpack_10/image-13093.jpg' is not a valid JPEG file in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 34 2014-03-01 16:03:18 - PHP Warning: imagecopyresampled() expects parameter 2 to be resource, boolean given in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 109 2014-03-01 16:03:18 - PHP Warning: imagedestroy() expects parameter 1 to be resource, boolean given in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 110 2014-03-01 16:05:06 - PHP Warning: imagecreatefromjpeg(): gd-jpeg, libjpeg: recoverable error: Premature end of JPEG file in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 34 2014-03-01 16:05:06 - PHP Warning: imagecreatefromjpeg(): '/var/www/xxx/data/www/xxx.com/image/data/backpack_17/image-21643.jpg' is not a valid JPEG file in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 34 2014-03-01 16:05:06 - PHP Warning: imagecopyresampled() expects parameter 2 to be resource, boolean given in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 109 2014-03-01 16:05:06 - PHP Warning: imagedestroy() expects parameter 1 to be resource, boolean given in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 110 2014-03-01 16:05:08 - PHP Notice: getimagesize(): Read error! in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 11 2014-03-01 16:05:09 - PHP Warning: imagecreatefromjpeg(): gd-jpeg, libjpeg: recoverable error: Premature end of JPEG file in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 34 2014-03-01 16:05:09 - PHP Warning: imagecreatefromjpeg(): '/var/www/xxx/data/www/xxx.com/image/data/backpack_17/image-21676.jpg' is not a valid JPEG file in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 34 2014-03-01 16:05:09 - PHP Warning: imagecopyresampled() expects parameter 2 to be resource, boolean given in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 109 2014-03-01 16:05:09 - PHP Warning: imagedestroy() expects parameter 1 to be resource, boolean given in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 110 2014-03-01 16:05:10 - PHP Notice: getimagesize(): Read error! in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 11 2014-03-01 16:05:11 - PHP Notice: getimagesize(): Read error! in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 11 2014-03-01 16:05:11 - PHP Warning: imagecreatefromjpeg(): gd-jpeg, libjpeg: recoverable error: Premature end of JPEG file in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 34 2014-03-01 16:05:11 - PHP Warning: imagecreatefromjpeg(): '/var/www/xxx/data/www/xxx.com/image/data/backpack_17/image-21710.jpg' is not a valid JPEG file in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 34 2014-03-01 16:05:11 - PHP Warning: imagecopyresampled() expects parameter 2 to be resource, boolean given in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 109 2014-03-01 16:05:11 - PHP Warning: imagedestroy() expects parameter 1 to be resource, boolean given in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 110 2014-03-01 16:09:08 - PHP Notice: getimagesize(): Read error! in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 11 2014-03-01 16:09:08 - PHP Notice: getimagesize(): Read error! in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 11 2014-03-01 16:09:08 - PHP Notice: getimagesize(): Read error! in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 11 2014-03-01 16:09:17 - PHP Notice: getimagesize(): Read error! in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 11 2014-03-01 16:09:17 - PHP Notice: getimagesize(): Read error! in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 11 2014-03-01 16:09:17 - PHP Notice: getimagesize(): Read error! in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 11 2014-03-01 16:09:19 - PHP Notice: getimagesize(): Read error! in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 11 2014-03-01 16:09:19 - PHP Notice: getimagesize(): Read error! in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 11 2014-03-01 16:09:19 - PHP Notice: getimagesize(): Read error! in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 11 2014-03-01 16:09:20 - PHP Notice: getimagesize(): Read error! in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 11 2014-03-01 16:09:20 - PHP Notice: getimagesize(): Read error! in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 11 2014-03-01 16:09:20 - PHP Notice: getimagesize(): Read error! in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 11 2014-03-01 16:17:26 - PHP Warning: imagecreatefromjpeg(): gd-jpeg, libjpeg: recoverable error: Premature end of JPEG file in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 34 2014-03-01 16:17:26 - PHP Warning: imagecreatefromjpeg(): '/var/www/xxx/data/www/xxx.com/image/data/backpack_13/image-16460.jpg' is not a valid JPEG file in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 34 2014-03-01 16:17:26 - PHP Warning: imagecopyresampled() expects parameter 2 to be resource, boolean given in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 109 2014-03-01 16:17:26 - PHP Warning: imagedestroy() expects parameter 1 to be resource, boolean given in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 110 2014-03-01 16:17:26 - PHP Warning: imagecreatefromjpeg(): gd-jpeg, libjpeg: recoverable error: Premature end of JPEG file in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 34 2014-03-01 16:17:26 - PHP Warning: imagecreatefromjpeg(): '/var/www/xxx/data/www/xxx.com/image/data/backpack_13/image-16461.jpg' is not a valid JPEG file in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 34 2014-03-01 16:17:26 - PHP Warning: imagecopyresampled() expects parameter 2 to be resource, boolean given in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 109 2014-03-01 16:17:26 - PHP Warning: imagedestroy() expects parameter 1 to be resource, boolean given in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 110 2014-03-01 16:17:28 - PHP Notice: getimagesize(): Read error! in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 11 2014-03-01 16:17:29 - PHP Notice: getimagesize(): Read error! in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 11 2014-03-01 16:17:30 - PHP Warning: imagecreatefromjpeg(): gd-jpeg, libjpeg: recoverable error: Premature end of JPEG file in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 34 2014-03-01 16:17:30 - PHP Warning: imagecreatefromjpeg(): '/var/www/xxx/data/www/xxx.com/image/data/backpack_13/image-16505.jpg' is not a valid JPEG file in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 34 2014-03-01 16:17:30 - PHP Warning: imagecopyresampled() expects parameter 2 to be resource, boolean given in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 109 2014-03-01 16:17:30 - PHP Warning: imagedestroy() expects parameter 1 to be resource, boolean given in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 110 2014-03-01 16:17:30 - PHP Warning: imagecreatefromjpeg(): gd-jpeg, libjpeg: recoverable error: Premature end of JPEG file in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 34 2014-03-01 16:17:30 - PHP Warning: imagecreatefromjpeg(): '/var/www/xxx/data/www/xxx.com/image/data/backpack_13/image-16507.jpg' is not a valid JPEG file in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 34 2014-03-01 16:17:30 - PHP Warning: imagecopyresampled() expects parameter 2 to be resource, boolean given in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 109 2014-03-01 16:17:30 - PHP Warning: imagedestroy() expects parameter 1 to be resource, boolean given in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 110 2014-03-01 16:17:30 - PHP Notice: getimagesize(): Read error! in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 11 2014-03-01 18:35:21 - PHP Notice: getimagesize(): Read error! in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 11 2014-03-01 18:35:21 - PHP Notice: getimagesize(): Read error! in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 11 2014-03-01 18:35:21 - PHP Notice: getimagesize(): Read error! in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 11 2014-03-01 18:35:23 - PHP Notice: getimagesize(): Read error! in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 11 2014-03-01 18:35:23 - PHP Notice: getimagesize(): Read error! in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 11 2014-03-01 18:35:23 - PHP Notice: getimagesize(): Read error! in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 11 2014-03-01 18:35:24 - PHP Notice: getimagesize(): Read error! in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 11 2014-03-01 18:35:24 - PHP Notice: getimagesize(): Read error! in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 11 2014-03-01 18:35:24 - PHP Notice: getimagesize(): Read error! in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 11 2014-03-01 18:35:26 - PHP Notice: getimagesize(): Read error! in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 11 2014-03-01 18:35:26 - PHP Notice: getimagesize(): Read error! in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 11 2014-03-01 18:35:26 - PHP Notice: getimagesize(): Read error! in /var/www/xxx/data/www/xxx.com/system/library/image.php on line 11 --- Добавлено, 2 мар 2014 --- HTTP_IMAGE и HTTPS_IMAGE таких параметров в конфиге нету... вот весь конфиг: <?php // HTTP define('HTTP_SERVER', 'http://xxx.com/admin/'); define('HTTP_CATALOG', 'http://xxx.com/'); // HTTPS define('HTTPS_SERVER', 'http://comelly.com/admin/'); define('HTTPS_CATALOG', 'http://comelly.com/'); // DIR define('DIR_APPLICATION', '/var/www/xxx/data/www/xxx.com/admin/'); define('DIR_SYSTEM', '/var/www/xxx/data/www/xxx.com/system/'); define('DIR_DATABASE', '/var/www/xxx/data/www/xxx.com/system/database/'); define('DIR_LANGUAGE', '/var/www/xxx/data/www/xxx.com/admin/language/'); define('DIR_TEMPLATE', '/var/www/xxx/data/www/xxx.com/admin/view/template/'); define('DIR_CONFIG', '/var/www/xxx/data/www/xxx.com/system/config/'); define('DIR_IMAGE', '/var/www/xxx/data/www/xxx.com/image/'); define('DIR_CACHE', '/var/www/xxx/data/www/xxx.com/system/cache/'); define('DIR_DOWNLOAD', '/var/www/xxx/xxx/www/xxx.com/download/'); define('DIR_LOGS', '/var/www/xxx/data/www/xxx.com/system/logs/'); define('DIR_CATALOG', '/var/xxx/xxx/data/www/xxx.com/catalog/'); // DB define('DB_DRIVER', 'xxx'); define('DB_HOSTNAME', 'xxx'); define('DB_USERNAME', 'xxx'); define('DB_PASSWORD', 'xxx'); define('DB_DATABASE', 'xxx'); define('DB_PREFIX', 'xxx'); ?>
я пока одно решение нашел... это при импорте товара в описании, урлы для изображение прописывать не так : data/img/img.jpg , а так http://site.com/image/data/name.jpg т.е. полный адрес прописывать