Answer the question
In order to leave comments, you need to log in
Bitrix, PHPExcel and HttpExceptionHandlerOutput not found error?
Good afternoon!
The site has a script that creates a price list of ~ 10,000 products
yesterday I noticed that the script sometimes crashes with an error:
Fatal error: Class 'Bitrix\Main\Diag\HttpExceptionHandlerOutput' not found in /home/bitrix/www/bitrix/modules/main/lib/httpapplication.php on line 54
while($ob = $res->GetNextElement()) {
$fields = $ob->GetFields();
$resizeImage = CFile::ResizeImageGet(
$fields["~DETAIL_PICTURE"],
array("width" => 150, "height" => 150),
BX_RESIZE_IMAGE_PROPORTIONAL,
true
);
if (!$resizeImage) {
$fields['DETAIL_PICTURE'] = '/local/templates/eshop_bootstrap_black/components/bitrix/catalog.element/quick-view/images/no_photo.png';
} else {
$fields['DETAIL_PICTURE'] = $resizeImage['src'];
}
$fields['IMAGE_PATH'] = $_SERVER["DOCUMENT_ROOT"] . $fields['DETAIL_PICTURE'];
$arElements[] = $fields;
}
$objWriter = PHPExcel_IOFactory::createWriter($excel, 'Excel2007');
$objWriter->save($filePath);
Fatal error: Class 'Bitrix\Main\Diag\HttpExceptionHandlerOutput' not found in /home/bitrix/www/bitrix/modules/main/lib/httpapplication.php on line 54
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question