[TypeError] 
Argument 1 passed to Bitrix\Sale\Discount\Analyzer::canCalculateSeparately() must be of the type array, null given, called in /home/bitrix/www/bitrix/modules/sale/lib/internals/discount.php on line 408 (0)
/home/bitrix/www/bitrix/modules/sale/lib/discount/analyzer.php:77
#0: Bitrix\Sale\Discount\Analyzer->canCalculateSeparately(NULL)
	/home/bitrix/www/bitrix/modules/sale/lib/internals/discount.php:408
#1: Bitrix\Sale\Internals\DiscountTable::resolveExecuteModeByDiscountId(array)
	/home/bitrix/www/bitrix/modules/sale/lib/internals/discount.php:518
#2: Bitrix\Sale\Internals\DiscountTable::onAfterUpdate(object)
	
#3: call_user_func_array(array, array)
	/home/bitrix/www/bitrix/modules/main/lib/entity/event.php:118
#4: Bitrix\Main\Entity\Event->send()
	/home/bitrix/www/bitrix/modules/main/lib/entity/datamanager.php:905
#5: Bitrix\Main\Entity\DataManager::update(array, array)
	/home/bitrix/www/bitrix/modules/sale/general/discount.php:1195
#6: CAllSaleDiscount::Update(integer, array)
	/home/bitrix/www/bitrix/modules/redsign.daysarticle2/classes/mysql/daysarticle2.php:431
#7: CRSDA2Elements::Update(integer, array, boolean, boolean)
	/home/bitrix/www/bitrix/modules/redsign.daysarticle2/classes/mysql/daysarticle2.php:469
#8: CRSDA2Elements::CheckAutoRenewal()
	/home/bitrix/www/bitrix/modules/redsign.daysarticle2/classes/general/main.php:16
#9: CRSDA2Main::OnBeforePrologElementUpdate()
	/home/bitrix/www/bitrix/modules/main/classes/general/module.php:490
#10: ExecuteModuleEventEx(array)
	/home/bitrix/www/bitrix/modules/main/include.php:565
#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/truby_fitingi/index.php:1
#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