[TypeError] count(): Argument #1 ($value) must be of type Countable|array, null given (0) /home/p/plague/education-links.ru/public_html/local/templates/merex_new/components/bitrix/catalog.element/products/template.php:18 #0: count(NULL) /home/p/plague/education-links.ru/public_html/local/templates/merex_new/components/bitrix/catalog.element/products/template.php:18 #1: include(string) /home/p/plague/education-links.ru/public_html/bitrix/modules/main/classes/general/component_template.php:790 #2: CBitrixComponentTemplate->__IncludePHPTemplate(array, array, string) /home/p/plague/education-links.ru/public_html/bitrix/modules/main/classes/general/component_template.php:885 #3: CBitrixComponentTemplate->IncludeTemplate(array) /home/p/plague/education-links.ru/public_html/bitrix/modules/main/classes/general/component.php:784 #4: CBitrixComponent->showComponentTemplate() /home/p/plague/education-links.ru/public_html/bitrix/modules/main/classes/general/component.php:724 #5: CBitrixComponent->includeComponentTemplate() /home/p/plague/education-links.ru/public_html/bitrix/modules/iblock/lib/component/base.php:4710 #6: Bitrix\Iblock\Component\Base->loadData() /home/p/plague/education-links.ru/public_html/bitrix/modules/iblock/lib/component/base.php:4689 #7: Bitrix\Iblock\Component\Base->initialLoadAction() /home/p/plague/education-links.ru/public_html/bitrix/modules/iblock/lib/component/element.php:284 #8: Bitrix\Iblock\Component\Element->initialLoadAction() #9: call_user_func(array) /home/p/plague/education-links.ru/public_html/bitrix/modules/iblock/lib/component/base.php:4876 #10: Bitrix\Iblock\Component\Base->doAction() /home/p/plague/education-links.ru/public_html/bitrix/modules/iblock/lib/component/base.php:4894 #11: Bitrix\Iblock\Component\Base->executeComponent() /home/p/plague/education-links.ru/public_html/bitrix/modules/main/classes/general/component.php:668 #12: CBitrixComponent->includeComponent(string, array, NULL, boolean) /home/p/plague/education-links.ru/public_html/bitrix/modules/main/classes/general/main.php:1195 #13: CAllMain->IncludeComponent(string, string, array) /home/p/plague/education-links.ru/public_html/products/detail.php:87 #14: include_once(string) /home/p/plague/education-links.ru/public_html/bitrix/modules/main/include/urlrewrite.php:184 #15: include_once(string) /home/p/plague/education-links.ru/public_html/bitrix/urlrewrite.php:2 ----------