Здравствуйте.
Обновил старый сайт с php 5.5 до php 7.4 все работает.
Но при обновлении до php 8.1 появились 2 ошибки.
Подскажите, пожалуйста, как их пофиксить.
первая:
[TypeError]
mysqli_real_escape_string(): Argument #2 ($string) must be of type string, array given (0)
/var/www/clients/client0/web3/web/bitrix/modules/main/classe s/mysql/database_mysqli.php:79
#0: mysqli_real_escape_string
/var/www/clients/client0/web3/web/bitrix/modules/main/classe s/mysql/database_mysqli.php:79
#1: CDatabase->ForSql
/var/www/clients/client0/web3/web/bitrix/modules/iblock/clas ses/general/iblockelement.php:6189
#2: CAllIBlockElement::GetProperty
/var/www/clients/client0/web3/web/index.php:22
вторая:
[Error] Undefined constant "item" (0)
/var/www/clients/client0/web3/web/bitrix/templates/redline/c omponents/bitrix/menu/menu_galery/template.php:16
#0: include
/var/www/clients/client0/web3/web/bitrix/modules/main/classe s/general/component_template.php:790
#1: CBitrixComponentTemplate->__IncludePHPTemplate
/var/www/clients/client0/web3/web/bitrix/modules/main/classe s/general/component_template.php:885
#2: CBitrixComponentTemplate->IncludeTemplate
/var/www/clients/client0/web3/web/bitrix/modules/main/classe s/general/component.php:776
#3: CBitrixComponent->showComponentTemplate
/var/www/clients/client0/web3/web/bitrix/modules/main/classe s/general/component.php:716
#4: CBitrixComponent->includeComponentTemplate
/var/www/clients/client0/web3/web/bitrix/components/bitrix/m enu/component.php:410
#5: include(string)
/var/www/clients/client0/web3/web/bitrix/modules/main/classe s/general/component.php:607
#6: CBitrixComponent->__includeComponent
/var/www/clients/client0/web3/web/bitrix/modules/main/classe s/general/component.php:105
#7: CBitrixComponent->executeComponent
/var/www/clients/client0/web3/web/bitrix/modules/main/classe s/general/component.php:660
#8: CBitrixComponent->includeComponent
/var/www/clients/client0/web3/web/bitrix/modules/main/classe s/general/main.php:1072
#9: CAllMain->IncludeComponent
/var/www/clients/client0/web3/web/bitrix/templates/redline/c omponents/bitrix/news/gallery/news.php:33
#10: include(string)
/var/www/clients/client0/web3/web/bitrix/modules/main/classe s/general/component_template.php:790
#11: CBitrixComponentTemplate->__IncludePHPTemplate
/var/www/clients/client0/web3/web/bitrix/modules/main/classe s/general/component_template.php:885
#12: CBitrixComponentTemplate->IncludeTemplate
/var/www/clients/client0/web3/web/bitrix/modules/main/classe s/general/component.php:776
#13: CBitrixComponent->showComponentTemplate
/var/www/clients/client0/web3/web/bitrix/modules/main/classe s/general/component.php:716
#14: CBitrixComponent->includeComponentTemplate
/var/www/clients/client0/web3/web/bitrix/components/bitrix/n ews/component.php:336
#15: include(string)
/var/www/clients/client0/web3/web/bitrix/modules/main/classe s/general/component.php:607
#16: CBitrixComponent->__includeComponent
/var/www/clients/client0/web3/web/bitrix/modules/main/classe s/general/component.php:684
#17: CBitrixComponent->includeComponent
/var/www/clients/client0/web3/web/bitrix/modules/main/classe s/general/main.php:1072
#18: CAllMain->IncludeComponent
/var/www/clients/client0/web3/web/galery/index.php:139
----------
Обновил старый сайт с php 5.5 до php 7.4 все работает.
Но при обновлении до php 8.1 появились 2 ошибки.
Подскажите, пожалуйста, как их пофиксить.
первая:
[TypeError]
mysqli_real_escape_string(): Argument #2 ($string) must be of type string, array given (0)
/var/www/clients/client0/web3/web/bitrix/modules/main/classe
#0: mysqli_real_escape_string
/var/www/clients/client0/web3/web/bitrix/modules/main/classe
#1: CDatabase->ForSql
/var/www/clients/client0/web3/web/bitrix/modules/iblock/clas
#2: CAllIBlockElement::GetProperty
/var/www/clients/client0/web3/web/index.php:22
вторая:
[Error] Undefined constant "item" (0)
/var/www/clients/client0/web3/web/bitrix/templates/redline/c
#0: include
/var/www/clients/client0/web3/web/bitrix/modules/main/classe
#1: CBitrixComponentTemplate->__IncludePHPTemplate
/var/www/clients/client0/web3/web/bitrix/modules/main/classe
#2: CBitrixComponentTemplate->IncludeTemplate
/var/www/clients/client0/web3/web/bitrix/modules/main/classe
#3: CBitrixComponent->showComponentTemplate
/var/www/clients/client0/web3/web/bitrix/modules/main/classe
#4: CBitrixComponent->includeComponentTemplate
/var/www/clients/client0/web3/web/bitrix/components/bitrix/m
#5: include(string)
/var/www/clients/client0/web3/web/bitrix/modules/main/classe
#6: CBitrixComponent->__includeComponent
/var/www/clients/client0/web3/web/bitrix/modules/main/classe
#7: CBitrixComponent->executeComponent
/var/www/clients/client0/web3/web/bitrix/modules/main/classe
#8: CBitrixComponent->includeComponent
/var/www/clients/client0/web3/web/bitrix/modules/main/classe
#9: CAllMain->IncludeComponent
/var/www/clients/client0/web3/web/bitrix/templates/redline/c
#10: include(string)
/var/www/clients/client0/web3/web/bitrix/modules/main/classe
#11: CBitrixComponentTemplate->__IncludePHPTemplate
/var/www/clients/client0/web3/web/bitrix/modules/main/classe
#12: CBitrixComponentTemplate->IncludeTemplate
/var/www/clients/client0/web3/web/bitrix/modules/main/classe
#13: CBitrixComponent->showComponentTemplate
/var/www/clients/client0/web3/web/bitrix/modules/main/classe
#14: CBitrixComponent->includeComponentTemplate
/var/www/clients/client0/web3/web/bitrix/components/bitrix/n
#15: include(string)
/var/www/clients/client0/web3/web/bitrix/modules/main/classe
#16: CBitrixComponent->__includeComponent
/var/www/clients/client0/web3/web/bitrix/modules/main/classe
#17: CBitrixComponent->includeComponent
/var/www/clients/client0/web3/web/bitrix/modules/main/classe
#18: CAllMain->IncludeComponent
/var/www/clients/client0/web3/web/galery/index.php:139
----------