Здравствуйте, уважаемые!
Помогите разобраться. При переходе с PHP 7.4 на 8.0 или 8.1 (без разницы) при сохранении элемента инфоблока вылезает вот это:
[CODE][TypeError]
call_user_func_array(): Argument #1 ($callback) must be a valid callback, non-static method MyResizeClass::OnAfterIBlockElement() cannot be called statically (0)
/home/h/harmony/ha-ra.ru.new/public_html/bitrix/modules/main/classes/general/module.php:467
#0: ExecuteModuleEventEx(array, array)
/home/h/harmony/ha-ra.ru.new/public_html/bitrix/modules/iblock/classes/mysql/iblockel ement.php:1800
#1: CIBlockElement->Update(integer, array, boolean, boolean, boolean)
/home/h/harmony/ha-ra.ru.new/public_html/bitrix/modules/iblock/admin/iblock_element_e dit.php:1161
#2: require(string)
/home/h/harmony/ha-ra.ru.new/public_html/bitrix/admin/iblock_element_edit.php:1
----------[/CODE]
Помогите разобраться. При переходе с PHP 7.4 на 8.0 или 8.1 (без разницы) при сохранении элемента инфоблока вылезает вот это:
[CODE][TypeError]
call_user_func_array(): Argument #1 ($callback) must be a valid callback, non-static method MyResizeClass::OnAfterIBlockElement() cannot be called statically (0)
/home/h/harmony/ha-ra.ru.new/public_html/bitrix/modules/main/classes/general/module.php:467
#0: ExecuteModuleEventEx(array, array)
/home/h/harmony/ha-ra.ru.new/public_html/bitrix/modules/iblock/classes/mysql/iblockel
#1: CIBlockElement->Update(integer, array, boolean, boolean, boolean)
/home/h/harmony/ha-ra.ru.new/public_html/bitrix/modules/iblock/admin/iblock_element_e
#2: require(string)
/home/h/harmony/ha-ra.ru.new/public_html/bitrix/admin/iblock_element_edit.php:1
----------[/CODE]