Errors when updating Bitrix
Rus
Eng
Ошибки при обновлении Битрикс

All English-language materials have been translated fully automatically using the Google service

1. [Ux11] Error describing module "module.name".
Unable to connect to update server. [Ux11] Error describing module "module.name"

Try updating the module to the latest version. If it doesn't help, then in /bitrix/modules/module.name/install/index.php replace function module_name() with function __construct() >

2. call_user_func_array(): Argument #1 ($function) must be a valid callback, non-static method ModuleName::ClassMethod() cannot be called statically (0)

Find the module along the path /bitrix/modules/module.name, and in it the class method that causes an error and add static

to the call

3. Call to undefined method CAllCurrencyLang::CurrencyFormat()

In the file /bitrix/modules/aspro.next/classes/general/CNext.php or similar, change CAllCurrencyLang::CurrencyFormat to CCurrencyLang::CurrencyFormat

4. Fatal error: Cannot declare class Bitrix\Iblock\ElementTable, because the name is already in use or Fatal error: Cannot declare class Bitrix\Iblock\SectionTable, because the name is already in use< /code>

Check for the presence of the file /bitrix/modules/iblock/lib/elementtable.php and if it exists, delete the file /bitrix/modules/iblock/lib/element.php

For SectionTable, rename or delete the file /bitrix/modules/iblock/lib/section.php

5. Undefined class constant 'INFO_NOT_AVAILABLE' (0)

Often occurs in /home/bitrix/www/bitrix/modules/aspro.max/classes/general/CMaxCache.php:523 and similar

Go to the Aspro class with an error, find \Bitrix\Main\Service\GeoIp\Manager::INFO_NOT_AVAILABLE and change it to null

Before:

if($obBitrixGeoIPResult !== \Bitrix\Main\Service\GeoIp\Manager::INFO_NOT_AVAILABLE){

New:

if($obBitrixGeoIPResult !== null){

6. Call to undefined method CMain::reinitPath()

Before:

$APPLICATION->reinitPath();

New:

$APPLICATION->sDocPath2 = GetPagePath(false, true);
$APPLICATION->sDirPath = GetDirPath($APPLICATION->sDocPath2);

7. Mysql query error: (1146) Table '#DB_NAME#.b_sale_trading_platform' doesn't exist

The error occurs when the kernel is not updated correctly. You need to go to /bitrix/modules/sale/lib/ and delete or comment out tradingplatform.php

8. Fatal error: Cannot declare class Bitrix\Highloadblock\HighloadBlockLangTable, because the name is already in use in /home/restoll/data/www/bitrix/modules/highloadblock/lib/highloadblocklang.php on line 6

Another error of incorrect kernel update. Go to /bitrix/modules/highloadblock/lib, make sure that there are both files highloadblocklang.php and highloadblocklangtable.php. Delete the one without table in the title

9. After the update, the display of all order properties disappeared from the list of orders in the admin panel. Moreover, this only happened to orders that existed before the update.

In my case, the cause of the error was the absence of the "ORDER" entry in the "ENTITY_TYPE" field in the admin panel. Writing a simple script

$rs = $DB->Query("SELECT * FROM b_sale_order_props_value WHERE ENTITY_TYPE = ''"); while ($prop = $rs->Fetch()) { $IDS[] = $prop['ID']; } $connection = Bitrix\Main\Application::getConnection('default'); $sqlHelper = $connection->getSqlHelper(); $connection->queryExecute("UPDATE b_sale_order_props_value SET ENTITY_TYPE = '".$sqlHelper->forSql ('ORDER')."' WHERE ID IN (".implode(",", $IDS).")");

Comments

There are no comments yet, you can be the first to leave it

Leave a comment

The site uses a comment pre-moderation system, so your message will be published only after approval by the moderator

You are replying to a user's comment

Send

FEEDBACK

Email me

Are you developing a new service, making improvements to the existing one and want to be better than your competitors? You have come to the right place. I offer you a comprehensive studio-level website development. From me you can order design, layout, programming, development of non-traditional functionality, implementation of communication between CMS, CRM and Data Analitics, as well as everything else related to sites, except for promotion.

Contact, I will always advise on all questions and help you find the most effective solution for your business. I am engaged in the creation of sites in Novosibirsk and in other regions of Russia, I also work with the CIS countries. You will be satisfied with our cooperation

An error occurred while sending, please try again after a while
Message sent successfully

Phones

+7(993) 007-18-96

Email

info@tichiy.ru

Address

Россия, г. Москва

By submitting the form, you automatically confirm that you have read and accept the Privacy Policy site

Contact with me
Send message
By submitting the form, you automatically confirm that you have read and accept Privacy policy of site
Sending successful!
Thank you for contacting :) I will contact you as soon as possible
Sending failed
An error occurred while sending the request. Please wait and try again after a while or call my phone number