[Error] 
Call to a member function GetID() on null (0)
/var/www/u0478843/data/www/mgn.i-beauty.pro/bitrix/modules/ipol.prodhist/classes/general/prodhist.php:372
#0: Cprodhist::WriteToDB()
	/var/www/u0478843/data/www/mgn.i-beauty.pro/bitrix/modules/ipol.prodhist/classes/general/prodhist.php:245
#1: Cprodhist::OnAfterIBlockElementDeleteHandler(array)
	/var/www/u0478843/data/www/mgn.i-beauty.pro/bitrix/modules/main/classes/general/module.php:490
#2: ExecuteModuleEventEx(array, array)
	/var/www/u0478843/data/www/mgn.i-beauty.pro/bitrix/modules/iblock/classes/general/iblockelement.php:4036
#3: CAllIBlockElement::Delete(integer)
	/var/www/u0478843/data/www/mgn.i-beauty.pro/bitrix/modules/logictim.balls/classes/helpers/cBonusActivateFromDate.php:143
#4: cBonusActivateFromDate::ActivateFromOrder(array, string, array, array)
	/var/www/u0478843/data/www/mgn.i-beauty.pro/bitrix/modules/logictim.balls/classes/helpers/cBonusActivateFromDate.php:33
#5: cBonusActivateFromDate::BonusActivateFromDate()
	/var/www/u0478843/data/www/mgn.i-beauty.pro/bitrix/modules/main/classes/mysql/agent.php(163) : eval()'d code:1
#6: eval
	/var/www/u0478843/data/www/mgn.i-beauty.pro/bitrix/modules/main/classes/mysql/agent.php:163
#7: CAgent::ExecuteAgents(string)
	/var/www/u0478843/data/www/mgn.i-beauty.pro/bitrix/modules/main/classes/mysql/agent.php:40
#8: CAgent::CheckAgents()
	/var/www/u0478843/data/www/mgn.i-beauty.pro/bitrix/modules/main/include.php:264
#9: require_once(string)
	/var/www/u0478843/data/www/mgn.i-beauty.pro/bitrix/modules/main/include/prolog_before.php:14
#10: require_once(string)
	/var/www/u0478843/data/www/mgn.i-beauty.pro/bitrix/modules/main/include/prolog.php:10
#11: require_once(string)
	/var/www/u0478843/data/www/mgn.i-beauty.pro/bitrix/header.php:1
#12: require(string)
	/var/www/u0478843/data/www/mgn.i-beauty.pro/index.php:1