Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 266240 bytes) in /home/bitrix/www/bitrix/modules/main/classes/general/main.php on line 3189

Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 65536 bytes) in /home/bitrix/www/bitrix/modules/main/lib/loader.php on line 357

Fatal error: Uncaught Error: Cannot pass parameter 2 by reference in /home/bitrix/www/bitrix/modules/main/lib/orm/entity.php:643 Stack trace: #0 /home/bitrix/www/bitrix/modules/main/lib/orm/event.php(30): Bitrix\Main\ORM\Entity->getNamespace() #1 /home/bitrix/www/bitrix/modules/main/lib/orm/data/datamanager.php(1811): Bitrix\Main\ORM\Event->__construct(Object(Bitrix\Main\ORM\Entity), 'OnBeforeDelete', Array, true) #2 /home/bitrix/www/bitrix/modules/main/lib/orm/data/datamanager.php(1598): Bitrix\Main\ORM\Data\DataManager::callOnBeforeDeleteEvent(Array, Object(Bitrix\Main\ORM\Entity), Object(Bitrix\Main\ORM\Data\DeleteResult)) #3 /home/bitrix/www/bitrix/modules/security/classes/general/session_db.php(100): Bitrix\Main\ORM\Data\DataManager::delete(Array) #4 /home/bitrix/www/bitrix/modules/security/classes/general/session_handler.php(28): CSecuritySessionDB::write('eW8fXOi0cwSRvFp...', 'SESS_AUTH|a:1:{...') #5 [internal function]: CSecuritySessionHandler->write('eW8fXOi0cwSRvFp...', 'SESS_AUTH|a:1:{...') #6 {main} thrown in /home/bitrix/www/bitrix/modules/main/lib/orm/entity.php on line 643