[TypeError] count(): Argument #1 ($value) must be of type Countable|array, null given (0) /home/bitrix/ext_www/alberodoors.com/bitrix/php_interface/include/sale_payment/billsotbit/template/template_pdf_file.php:753 #0: require /home/bitrix/ext_www/alberodoors.com/bitrix/modules/sale/lib/paysystem/baseservicehandler.php:73 #1: Bitrix\Sale\PaySystem\BaseServiceHandler->showTemplate /home/bitrix/ext_www/alberodoors.com/bitrix/modules/sale/lib/paysystem/service.php:716 #2: Bitrix\Sale\PaySystem\Service->showTemplate /home/bitrix/ext_www/alberodoors.com/bitrix/modules/sotbit.bill/classes/general/BillSotbit.php:45 #3: BillSotbit::OnEmailHandler /home/bitrix/ext_www/alberodoors.com/bitrix/modules/main/tools.php:5253 #4: ExecuteModuleEventEx /home/bitrix/ext_www/alberodoors.com/bitrix/modules/main/lib/mail/event.php:230 #5: Bitrix\Main\Mail\Event::handleEvent /home/bitrix/ext_www/alberodoors.com/bitrix/modules/main/lib/mail/eventmanager.php:116 #6: Bitrix\Main\Mail\EventManager::executeEvents /home/bitrix/ext_www/alberodoors.com/bitrix/modules/main/lib/mail/eventmanager.php:36 #7: Bitrix\Main\Mail\EventManager::checkEvents #8: call_user_func_array /home/bitrix/ext_www/alberodoors.com/bitrix/modules/main/lib/application.php:818 #9: Bitrix\Main\Application->runBackgroundJobs /home/bitrix/ext_www/alberodoors.com/bitrix/modules/main/lib/application.php:377 #10: Bitrix\Main\Application->terminate /home/bitrix/ext_www/alberodoors.com/bitrix/modules/main/lib/application.php:329 #11: Bitrix\Main\Application->end /home/bitrix/ext_www/alberodoors.com/bitrix/modules/main/classes/general/main.php:3708 #12: CAllMain::FinalActions /home/bitrix/ext_www/alberodoors.com/bitrix/modules/main/include/epilog_after.php:61 #13: require(string) /home/bitrix/ext_www/alberodoors.com/bitrix/modules/main/include/epilog.php:3 #14: require_once(string) /home/bitrix/ext_www/alberodoors.com/bitrix/footer.php:4 #15: require(string) /home/bitrix/ext_www/alberodoors.com/where-to-buy/detail.php:24 #16: include_once(string) /home/bitrix/ext_www/alberodoors.com/bitrix/modules/main/include/urlrewrite.php:128 #17: include_once(string) /home/bitrix/ext_www/alberodoors.com/bitrix/urlrewrite.php:2 ----------