[Error] 
Call to a member function IsAuthorized() on null (0)
/home/bitrix/www/local/php_interface/lib/Helpers/CRecord.php:44
#0: Local\Helpers\CRecord->__construct(string, string)
	/home/bitrix/www/local/php_interface/lib/Sale/Discounts/Cards/CCard.php:22
#1: Local\Sale\Discounts\Cards\CCard->__construct()
	/home/bitrix/www/local/php_interface/lib/Sale/Discounts/Cards/Events/CardHolder.php:79
#2: Local\Sale\Discounts\Cards\Events\CardHolder::eventDeleteElement(integer)
	/home/bitrix/www/bitrix/modules/main/classes/general/module.php:475
#3: ExecuteModuleEventEx(array, array)
	/home/bitrix/www/bitrix/modules/iblock/classes/general/iblockelement.php:3835
#4: CAllIBlockElement::Delete(integer)
	/home/bitrix/www/local/php_interface/lib/Products/CAutoCleaner.php:145
#5: Local\Products\CAutoCleaner->removeProduct(integer)
	/home/bitrix/www/local/php_interface/lib/Products/CAutoCleaner.php:122
#6: Local\Products\CAutoCleaner->removeProductsList(array)
	/home/bitrix/www/local/php_interface/lib/Products/CAutoCleaner.php:32
#7: Local\Products\CAutoCleaner::AgentCleaner(integer)
	/home/bitrix/www/bitrix/modules/main/classes/mysql/agent.php(163) : eval()'d code:1
#8: eval
	/home/bitrix/www/bitrix/modules/main/classes/mysql/agent.php:163
#9: CAgent::ExecuteAgents(string)
	/home/bitrix/www/bitrix/modules/main/classes/mysql/agent.php:40
#10: CAgent::CheckAgents()
	/home/bitrix/www/bitrix/modules/main/include.php:262
#11: require_once(string)
	/home/bitrix/www/bitrix/modules/main/include/prolog_before.php:14
#12: require_once(string)
	/home/bitrix/www/bitrix/modules/main/include/prolog.php:10
#13: require_once(string)
	/home/bitrix/www/bitrix/header.php:1
#14: require(string)
	/home/bitrix/www/catalog/index.php:2
#15: include_once(string)
	/home/bitrix/www/bitrix/modules/main/include/urlrewrite.php:159
#16: include_once(string)
	/home/bitrix/www/bitrix/urlrewrite.php:2