Цитата |
---|
написал: Цитата |
---|
написал: $arFields[ID] |
во всех таким местах поставьте кавычки
$arFields['ID'] |
Спасибо, заработало.
Остались еще некоторые ошибки. По аналогии посмотрел с кавычками, там не так.
Подскажите пожалуйста.
[TypeError]
Unsupported operand types: string - null (0)
/sites/domain.ru/bitrix/templates/domain/components/bitrix/catalog/objects
-arenda-recommend/bitrix/catalog.top/.default/template.php:101
or $arItem['PROPERTIES']['mkad']['VALUE'] >= $mkad_object && $lot_object !== $arItem['PROPERTIES']['lot']['VALUE'] && $KolV < 4 && (($arItem['PROPERTIES']['mkad']['VALUE'] - $mkad_object) < 5)
#0: include
/sites/domain.ru/bitrix/modules/main/classes/general/component_template.php:790
include($_SERVER["DOCUMENT_ROOT"].$this->__file);
#1: CBitrixComponentTemplate->__IncludePHPTemplate(array, array, string)
/sites/domain.ru/bitrix/modules/main/classes/general/component_template.php:885
$result = $this->__IncludePHPTemplate($arResult, $arParams, $parentTemplateFolder);
#2: CBitrixComponentTemplate->IncludeTemplate(array)
/sites/domain.ru/bitrix/modules/main/classes/general/component.php:776
$this->__template->includeTemplate($this->arResult);
#3: CBitrixComponent->showComponentTemplate()
/sites/domain.ru/bitrix/modules/main/classes/general/component.php:716
$this->showComponentTemplate();
#4: CBitrixComponent->includeComponentTemplate()
/sites/domain.ru/bitrix/modules/iblock/lib/component/base.php:4630
$this->includeComponentTemplate();
#5: Bitrix\Iblock\Component\Base->loadData()
/sites/domain.ru/bitrix/modules/iblock/lib/component/elementlist.php:1306
parent::loadData();
#6: Bitrix\Iblock\Component\ElementList->loadData()
/sites/domain.ru/bitrix/modules/iblock/lib/component/base.php:4609
$this->loadData();
#7: Bitrix\Iblock\Component\Base->initialLoadAction()
#8: call_user_func(array)
/sites/domain.ru/bitrix/modules/iblock/lib/component/base.php:4795
call_user_func(array($this, $action.'Action'));
#9: Bitrix\Iblock\Component\Base->doAction()
/sites/domain.ru/bitrix/modules/iblock/lib/component/base.php:4813
$this->doAction();
#10: Bitrix\Iblock\Component\Base->executeComponent()
/sites/domain.ru/bitrix/modules/main/classes/general/component.php:660
$result = $component->executeComponent();
#11: CBitrixComponent->includeComponent(string, array, object, boolean)
/sites/domain.ru/bitrix/modules/main/classes/general/main.php:1062
$result = $component->IncludeComponent($componentTemplate, $arParams, $parentComponent, $returnResult);
#12: CAllMain->IncludeComponent(string, string, array, object)
/sites/domain.ru/bitrix/templates/domain/components/bitrix/catalog/objects
-arenda-recommend/sections.php:37
"bitrix:catalog.top",
#17: CBitrixComponent->includeComponentTemplate(string)
/sites/domain.ru/bitrix/components/bitrix/catalog/component.php:171
$this->IncludeComponentTemplate($componentPage);
#18: include(string)
/sites/domain.ru/bitrix/modules/main/classes/general/component.php:607
return include($_SERVER["DOCUMENT_ROOT"].$this->__path."/component.php");
#19: CBitrixComponent->__includeComponent()
/sites/domain.ru/bitrix/modules/main/classes/general/component.php:684
$result = $this->__IncludeComponent();
#21: CAllMain->IncludeComponent(string, string, array)
/sites/domain.ru/objects/arenda/index.php:323
"ACTION_VARIABLE" => "action",
#22: include_once(string)
/sites/domain.ru/bitrix/modules/main/include/urlrewrite.php:184
include_once($io->GetPhysicalName($_SERVER['DOCUMENT_ROOT'].$url));
#23: include_once(string)
/sites/domain.ru/bitrix/urlrewrite.php:2
include_once($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/main/include/urlrewrite.php');