Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 16384 bytes) in /home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php on line 141

Fatal error: Uncaught Bitrix\Main\DB\SqlQueryException: Mysql query error: (2014) Commands out of sync; you can't run this command now in /home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php:149 Stack trace: #0 /home/bitrix/www/bitrix/modules/main/lib/db/connection.php(331): Bitrix\Main\DB\MysqliConnection->queryInternal() #1 /home/bitrix/www/bitrix/modules/main/lib/orm/query/query.php(3577): Bitrix\Main\DB\Connection->query() #2 /home/bitrix/www/bitrix/modules/main/lib/orm/query/query.php(956): Bitrix\Main\ORM\Query\Query->query() #3 /home/bitrix/www/bitrix/modules/main/lib/orm/data/datamanager.php(513): Bitrix\Main\ORM\Query\Query->exec() #4 /home/bitrix/www/bitrix/modules/sotbit.opengraph/classes/opengraph_core.php(54): Bitrix\Main\ORM\Data\DataManager::getList() #5 /home/bitrix/www/bitrix/modules/sotbit.opengraph/classes/opengraph_core.php(62): OpengraphCore->getRules() #6 /home/bitrix/www/bitrix/modules/sotbit.opengraph/classes/opengraph_main.php(155): OpengraphCore->getRulePathExactOnEndPage() #7 /home/bitrix/www/bitrix/modules/sotbit.opengraph/lib/eventhandlers.php(23): OpengraphMain->setUrlMeta() #8 /home/bitrix/www/bitrix/modules/main/tools.php(5259): Sotbit\Opengraph\EventHandlers::OnBeforeEndBufferContent() #9 /home/bitrix/www/bitrix/modules/main/classes/general/main.php(3371): ExecuteModuleEventEx() #10 [internal function]: CAllMain->EndBufferContent() #11 /home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php(141): mysqli->query() #12 /home/bitrix/www/bitrix/modules/main/lib/db/connection.php(331): Bitrix\Main\DB\MysqliConnection->queryInternal() #13 /home/bitrix/www/bitrix/modules/main/lib/orm/query/query.php(3577): Bitrix\Main\DB\Connection->query() #14 /home/bitrix/www/bitrix/modules/main/lib/orm/query/query.php(956): Bitrix\Main\ORM\Query\Query->query() #15 /home/bitrix/www/bitrix/modules/main/lib/orm/data/datamanager.php(513): Bitrix\Main\ORM\Query\Query->exec() #16 /home/bitrix/www/bitrix/modules/iblock/classes/general/comp_pricetools.php(223): Bitrix\Main\ORM\Data\DataManager::getList() #17 /home/bitrix/www/bitrix/modules/iblock/lib/component/base.php(771): CIBlockPriceTools::SetCatalogDiscountCache() #18 /home/bitrix/www/bitrix/modules/iblock/lib/component/base.php(4161): Bitrix\Iblock\Component\Base->initPrices() #19 /home/bitrix/www/bitrix/components/bitrix/catalog.section/class.php(109): Bitrix\Iblock\Component\Base->processResultData() #20 /home/bitrix/www/bitrix/modules/iblock/lib/component/base.php(4700): CatalogSectionComponent->processResultData() #21 /home/bitrix/www/bitrix/modules/iblock/lib/component/elementlist.php(1330): Bitrix\Iblock\Component\Base->loadData() #22 /home/bitrix/www/bitrix/modules/iblock/lib/component/base.php(4689): Bitrix\Iblock\Component\ElementList->loadData() #23 /home/bitrix/www/bitrix/components/bitrix/catalog.section/class.php(354): Bitrix\Iblock\Component\Base->initialLoadAction() #24 [internal function]: CatalogSectionComponent->initialLoadAction() #25 /home/bitrix/www/bitrix/modules/iblock/lib/component/base.php(4876): call_user_func() #26 /home/bitrix/www/bitrix/modules/iblock/lib/component/base.php(4894): Bitrix\Iblock\Component\Base->doAction() #27 /home/bitrix/www/bitrix/modules/main/classes/general/component.php(668): Bitrix\Iblock\Component\Base->executeComponent() #28 /home/bitrix/www/bitrix/modules/main/classes/general/main.php(1195): CBitrixComponent->includeComponent() #29 /home/bitrix/www/local/templates/sotbit_origami/components/bitrix/catalog/mebelson_catalog/element_detail.php(601): CAllMain->IncludeComponent() #30 /home/bitrix/www/local/templates/sotbit_origami/components/bitrix/catalog/mebelson_catalog/element.php(359): include('...') #31 /home/bitrix/www/bitrix/modules/main/classes/general/component_template.php(790): include('...') #32 /home/bitrix/www/bitrix/modules/main/classes/general/component_template.php(885): CBitrixComponentTemplate->__IncludePHPTemplate() #33 /home/bitrix/www/bitrix/modules/main/classes/general/component.php(784): CBitrixComponentTemplate->IncludeTemplate() #34 /home/bitrix/www/bitrix/modules/main/classes/general/component.php(724): CBitrixComponent->showComponentTemplate() #35 /home/bitrix/www/bitrix/components/bitrix/catalog/component.php(323): CBitrixComponent->includeComponentTemplate() #36 /home/bitrix/www/bitrix/modules/main/classes/general/component.php(615): include('...') #37 /home/bitrix/www/bitrix/modules/main/classes/general/component.php(692): CBitrixComponent->__includeComponent() #38 /home/bitrix/www/bitrix/modules/main/classes/general/main.php(1195): CBitrixComponent->includeComponent() #39 /home/bitrix/www/catalog/index.php(431): CAllMain->IncludeComponent() #40 /home/bitrix/www/bitrix/modules/main/include/urlrewrite.php(178): include_once('...') #41 /home/bitrix/www/bitrix/urlrewrite.php(2): include_once('...') #42 {main} thrown in /home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php on line 149
[ErrorException] E_ERROR
Uncaught Bitrix\Main\DB\SqlQueryException: Mysql query error: (2014) Commands out of sync; you can't run this command now in /home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php:149
Stack trace:
#0 /home/bitrix/www/bitrix/modules/main/lib/db/connection.php(331): Bitrix\Main\DB\MysqliConnection->queryInternal()
#1 /home/bitrix/www/bitrix/modules/main/lib/orm/query/query.php(3577): Bitrix\Main\DB\Connection->query()
#2 /home/bitrix/www/bitrix/modules/main/lib/orm/query/query.php(956): Bitrix\Main\ORM\Query\Query->query()
#3 /home/bitrix/www/bitrix/modules/main/lib/orm/data/datamanager.php(513): Bitrix\Main\ORM\Query\Query->exec()
#4 /home/bitrix/www/bitrix/modules/sotbit.opengraph/classes/opengraph_core.php(54): Bitrix\Main\ORM\Data\DataManager::getList()
#5 /home/bitrix/www/bitrix/modules/sotbit.opengraph/classes/opengraph_core.php(62): OpengraphCore->getRules()
#6 /home/bitrix/www/bitrix/modules/sotbit.opengraph/classes/opengraph_main.php(155): OpengraphCore->getRulePathExactOnEndPage()
#7 /home/bitrix/www/bitrix/modules/sotbit.opengraph/lib/eventhandlers.php(23): OpengraphMain->setUrlMeta()
#8 /home/bitrix/www/bitrix/modules/main/tools.php(5259): Sotbit\Opengraph\EventHandlers::OnBeforeEndBufferContent()
#9 /home/bitrix/www/bitrix/modules/main/classes/general/main.php(3371): ExecuteModuleEventEx()
#10 [internal function]: CAllMain->EndBufferContent()
#11 /home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php(141): mysqli->query()
#12 /home/bitrix/www/bitrix/modules/main/lib/db/connection.php(331): Bitrix\Main\DB\MysqliConnection->queryInternal()
#13 /home/bitrix/www/bitrix/modules/main/lib/orm/query/query.php(3577): Bitrix\Main\DB\Connection->query()
#14 /home/bitrix/www/bitrix/modules/main/lib/orm/query/query.php(956): Bitrix\Main\ORM\Query\Query->query()
#15 /home/bitrix/www/bitrix/modules/main/lib/orm/data/datamanager.php(513): Bitrix\Main\ORM\Query\Query->exec()
#16 /home/bitrix/www/bitrix/modules/iblock/classes/general/comp_pricetools.php(223): Bitrix\Main\ORM\Data\DataManager::getList()
#17 /home/bitrix/www/bitrix/modules/iblock/lib/component/base.php(771): CIBlockPriceTools::SetCatalogDiscountCache()
#18 /home/bitrix/www/bitrix/modules/iblock/lib/component/base.php(4161): Bitrix\Iblock\Component\Base->initPrices()
#19 /home/bitrix/www/bitrix/components/bitrix/catalog.section/class.php(109): Bitrix\Iblock\Component\Base->processResultData()
#20 /home/bitrix/www/bitrix/modules/iblock/lib/component/base.php(4700): CatalogSectionComponent->processResultData()
#21 /home/bitrix/www/bitrix/modules/iblock/lib/component/elementlist.php(1330): Bitrix\Iblock\Component\Base->loadData()
#22 /home/bitrix/www/bitrix/modules/iblock/lib/component/base.php(4689): Bitrix\Iblock\Component\ElementList->loadData()
#23 /home/bitrix/www/bitrix/components/bitrix/catalog.section/class.php(354): Bitrix\Iblock\Component\Base->initialLoadAction()
#24 [internal function]: CatalogSectionComponent->initialLoadAction()
#25 /home/bitrix/www/bitrix/modules/iblock/lib/component/base.php(4876): call_user_func()
#26 /home/bitrix/www/bitrix/modules/iblock/lib/component/base.php(4894): Bitrix\Iblock\Component\Base->doAction()
#27 /home/bitrix/www/bitrix/modules/main/classes/general/component.php(668): Bitrix\Iblock\Component\Base->executeComponent()
#28 /home/bitrix/www/bitrix/modules/main/classes/general/main.php(1195): CBitrixComponent->includeComponent()
#29 /home/bitrix/www/local/templates/sotbit_origami/components/bitrix/catalog/mebelson_catalog/element_detail.php(601): CAllMain->IncludeComponent()
#30 /home/bitrix/www/local/templates/sotbit_origami/components/bitrix/catalog/mebelson_catalog/element.php(359): include('...')
#31 /home/bitrix/www/bitrix/modules/main/classes/general/component_template.php(790): include('...')
#32 /home/bitrix/www/bitrix/modules/main/classes/general/component_template.php(885): CBitrixComponentTemplate->__IncludePHPTemplate()
#33 /home/bitrix/www/bitrix/modules/main/classes/general/component.php(784): CBitrixComponentTemplate->IncludeTemplate()
#34 /home/bitrix/www/bitrix/modules/main/classes/general/component.php(724): CBitrixComponent->showComponentTemplate()
#35 /home/bitrix/www/bitrix/components/bitrix/catalog/component.php(323): CBitrixComponent->includeComponentTemplate()
#36 /home/bitrix/www/bitrix/modules/main/classes/general/component.php(615): include('...')
#37 /home/bitrix/www/bitrix/modules/main/classes/general/component.php(692): CBitrixComponent->__includeComponent()
#38 /home/bitrix/www/bitrix/modules/main/classes/general/main.php(1195): CBitrixComponent->includeComponent()
#39 /home/bitrix/www/catalog/index.php(431): CAllMain->IncludeComponent()
#40 /home/bitrix/www/bitrix/modules/main/include/urlrewrite.php(178): include_once('...')
#41 /home/bitrix/www/bitrix/urlrewrite.php(2): include_once('...')
#42 {main}
  thrown (0)
/home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php:149
----------