[TypeError] call_user_func_array(): Argument #1 ($callback) must be a valid callback, non-static method CMaxEvents::OnGetOptimalPriceHandler() cannot be called statically (0) /home/host1824823/kapovaya-shkatulka.ru/htdocs/www/bitrix/modules/main/classes/general/module.php:480 #0: ExecuteModuleEventEx(array, array) /home/host1824823/kapovaya-shkatulka.ru/htdocs/www/bitrix/modules/catalog/general/product.php:942 #1: CAllCatalogProduct::GetOptimalPrice(integer, integer, array, string, array, string, array) /home/host1824823/kapovaya-shkatulka.ru/htdocs/www/bitrix/components/bitrix/catalog.element/class.php:145 #2: CatalogElementComponent->initAdditionalCacheKeys(array) /home/host1824823/kapovaya-shkatulka.ru/htdocs/www/bitrix/modules/iblock/lib/component/element.php:789 #3: Bitrix\Iblock\Component\Element->getCacheKeys() /home/host1824823/kapovaya-shkatulka.ru/htdocs/www/bitrix/modules/iblock/lib/component/base.php:4060 #4: Bitrix\Iblock\Component\Base->initResultCache() /home/host1824823/kapovaya-shkatulka.ru/htdocs/www/bitrix/modules/iblock/lib/component/base.php:4628 #5: Bitrix\Iblock\Component\Base->loadData() /home/host1824823/kapovaya-shkatulka.ru/htdocs/www/bitrix/modules/iblock/lib/component/base.php:4608 #6: Bitrix\Iblock\Component\Base->initialLoadAction() /home/host1824823/kapovaya-shkatulka.ru/htdocs/www/bitrix/modules/iblock/lib/component/element.php:272 #7: Bitrix\Iblock\Component\Element->initialLoadAction() #8: call_user_func(array) /home/host1824823/kapovaya-shkatulka.ru/htdocs/www/bitrix/modules/iblock/lib/component/base.php:4794 #9: Bitrix\Iblock\Component\Base->doAction() /home/host1824823/kapovaya-shkatulka.ru/htdocs/www/bitrix/modules/iblock/lib/component/base.php:4812 #10: Bitrix\Iblock\Component\Base->executeComponent() /home/host1824823/kapovaya-shkatulka.ru/htdocs/www/bitrix/modules/main/classes/general/component.php:660 #11: CBitrixComponent->includeComponent(string, array, object, boolean) /home/host1824823/kapovaya-shkatulka.ru/htdocs/www/bitrix/modules/main/classes/general/main.php:1055 #12: CAllMain->IncludeComponent(string, string, array, object) /home/host1824823/kapovaya-shkatulka.ru/htdocs/www/local/templates/aspro_max_custom/components/bitrix/catalog/main/page_blocks/element_1.php:4 #13: include_once(string) /home/host1824823/kapovaya-shkatulka.ru/htdocs/www/local/templates/aspro_max_custom/components/bitrix/catalog/main/element_normal.php:260 #14: include_once(string) /home/host1824823/kapovaya-shkatulka.ru/htdocs/www/local/templates/aspro_max_custom/components/bitrix/catalog/main/element.php:201 #15: include(string) /home/host1824823/kapovaya-shkatulka.ru/htdocs/www/bitrix/modules/main/classes/general/component_template.php:790 #16: CBitrixComponentTemplate->__IncludePHPTemplate(array, array, string) /home/host1824823/kapovaya-shkatulka.ru/htdocs/www/bitrix/modules/main/classes/general/component_template.php:885 #17: CBitrixComponentTemplate->IncludeTemplate(array) /home/host1824823/kapovaya-shkatulka.ru/htdocs/www/bitrix/modules/main/classes/general/component.php:775 #18: CBitrixComponent->showComponentTemplate() /home/host1824823/kapovaya-shkatulka.ru/htdocs/www/bitrix/modules/main/classes/general/component.php:716 #19: CBitrixComponent->includeComponentTemplate(string) /home/host1824823/kapovaya-shkatulka.ru/htdocs/www/bitrix/components/bitrix/catalog/component.php:171 #20: include(string) /home/host1824823/kapovaya-shkatulka.ru/htdocs/www/bitrix/modules/main/classes/general/component.php:607 #21: CBitrixComponent->__includeComponent() /home/host1824823/kapovaya-shkatulka.ru/htdocs/www/bitrix/modules/main/classes/general/component.php:684 #22: CBitrixComponent->includeComponent(string, array, boolean, boolean) /home/host1824823/kapovaya-shkatulka.ru/htdocs/www/bitrix/modules/main/classes/general/main.php:1055 #23: CAllMain->IncludeComponent(string, string, array, boolean) /home/host1824823/kapovaya-shkatulka.ru/htdocs/www/en/catalog/index.php:3 #24: include_once(string) /home/host1824823/kapovaya-shkatulka.ru/htdocs/www/bitrix/modules/main/include/urlrewrite.php:184 #25: include_once(string) /home/host1824823/kapovaya-shkatulka.ru/htdocs/www/bitrix/urlrewrite.php:2 ----------