Answer the question
In order to leave comments, you need to log in
Bitrix, errors when changing directory parameters?
I display the contents of the directory as a standard component.
In the component settings, you need to change the number of products output from 17 to 18. When changing the parameters, such an error occurs.
The second day I struggle with the error, I do not understand what's wrong.
[Exception]
Unable to save image: /var/www/site.ru/www/upload/resize_images/348_348_00674169accf449f3763027c634f023a.jpg ZImage::__set_state(array(
'quality' => 95,
'image' => false,
'filename' => '/var/www/site.ru/www/temp_image/00674169accf449f3763027c634f023a.jpg',
'original_info' =>
array (
'width' => 1020,
'height' => 1020,
'orientation' => 'square',
'exif' =>
array (
'FileName' => '00674169accf449f3763027c634f023a.jpg',
'FileDateTime' => 1479928205,
'FileSize' => 88210,
'FileType' => 2,
'MimeType' => 'image/jpeg',
'SectionsFound' => 'COMMENT',
'COMPUTED' =>
array (
'html' => 'width="1020" height="1020"',
'Height' => 1020,
'Width' => 1020,
'IsColor' => 1,
),
'COMMENT' =>
array (
0 => 'CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), quality = 95
',
),
),
'format' => 'jpeg',
'mime' => 'image/jpeg',
),
'width' => 0,
'height' => 0,
'imagestring' => NULL,
'exif' =>
array (
'FileName' => '00674169accf449f3763027c634f023a.jpg',
'FileDateTime' => 1479928205,
'FileSize' => 88210,
'FileType' => 2,
'MimeType' => 'image/jpeg',
'SectionsFound' => 'COMMENT',
'COMPUTED' =>
array (
'html' => 'width="1020" height="1020"',
'Height' => 1020,
'Width' => 1020,
'IsColor' => 1,
),
'COMMENT' =>
array (
0 => 'CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), quality = 95
',
),
),
)); (0)
/var/www/site.ru/www/ajax/ZImage.class.php:715
#0: ZImage->save(string, NULL)
/var/www/site.ru/www/ajax/ZImage.class.php:681
#1: ZImage->SaveCheck(string)
/var/www/site.ru/www/bitrix/components/corvision/catalog.section/component.php:1260
#2: include(string)
/var/www/site.ru/www/bitrix/modules/main/classes/general/component.php:535
#3: CBitrixComponent->__includeComponent()
/var/www/site.ru/www/bitrix/modules/main/classes/general/component.php:578
#4: CBitrixComponent->includeComponent(string, array, object)
/var/www/site.ru/www/bitrix/modules/main/classes/general/main.php:1050
#5: CAllMain->IncludeComponent(string, string, array, object)
/var/www/site.ru/www/bitrix/templates/.default/components/bitrix/catalog/znak_katalog/section.php:1049
#6: include(string)
/var/www/site.ru/www/bitrix/modules/main/classes/general/component_template.php:708
#7: CBitrixComponentTemplate->__IncludePHPTemplate(array, array, string)
/var/www/site.ru/www/bitrix/modules/main/classes/general/component_template.php:800
#8: CBitrixComponentTemplate->IncludeTemplate(array)
/var/www/site.ru/www/bitrix/modules/main/classes/general/component.php:657
#9: CBitrixComponent->showComponentTemplate()
/var/www/site.ru/www/bitrix/modules/main/classes/general/component.php:605
#10: CBitrixComponent->includeComponentTemplate(string)
/var/www/site.ru/www/bitrix/components/bitrix/catalog/component.php:167
#11: include(string)
/var/www/site.ru/www/bitrix/modules/main/classes/general/component.php:535
#12: CBitrixComponent->__includeComponent()
/var/www/site.ru/www/bitrix/modules/main/classes/general/component.php:578
#13: CBitrixComponent->includeComponent(string, array, boolean)
/var/www/site.ru/www/bitrix/modules/main/classes/general/main.php:1050
#14: CAllMain->IncludeComponent(string, string, array, boolean)
/var/www/site.ru/www/catalog/index.php:192
#15: include_once(string)
/var/www/site.ru/www/bitrix/modules/main/include/urlrewrite.php:159
#16: include_once(string)
/var/www/site.ru/www/bitrix/urlrewrite.php:2
Answer the question
In order to leave comments, you need to log in
Very strange behavior, perhaps the upload directory has incorrect permissions or it belongs to the wrong group. Link it to the bitrix user.
In extreme cases, change the number of products output directly in the settings in the component placement code.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question