Errors when updating Bitrix
Rus
Eng
Ошибки при обновлении Битрикс
I solve complex technical challenges for Bitrix and 1C—ranging from auditing existing code to website development and configuring complex integrations—with a guarantee of results.
Recommended

Website hosting

If you are choosing hosting for your project, I recommend Reg.ru. Modern infrastructure, a wide range of plans from starter options to high-load VPS, and responsive tech support that actually helps instead of sending template replies. I host some of my own projects there and recommend it to my clients.

Go to site Affiliate link. The price remains the same for you.

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

Typical Bitrix Errors and How to Fix Them

A reference of the errors most often encountered when working with 1C-Bitrix: kernel conflicts, module incompatibilities, update issues, and network misconfigurations. For each error — the file path and a ready solution.

1. [Ux11] Module Description Error "module.name"

Message: [Ux11] Module description error "module.name". No connection to the update server. [Ux11] Module description error "module.name"

First, try updating the module to the latest version. If that doesn't help — in the file /bitrix/modules/module.name/install/index.php, replace the function module_name() construct with function __construct().

2. call_user_func_array(): Argument #1 ($function) must be a valid callback

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

Find the module at /bitrix/modules/module.name, open the class method causing the error, and add the static keyword to its declaration.

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

In /bitrix/modules/aspro.next/classes/general/CNext.php or a similar file, replace CAllCurrencyLang::CurrencyFormat with CCurrencyLang::CurrencyFormat.

4. Cannot declare class Bitrix\Iblock\ElementTable, because the name is already in use

Message: Fatal error: Cannot declare class Bitrix\Iblock\ElementTable, because the name is already in use or a similar error for SectionTable.

Check if /bitrix/modules/iblock/lib/elementtable.php exists. If it does — delete /bitrix/modules/iblock/lib/element.php. For SectionTable, rename or delete /bitrix/modules/iblock/lib/section.php.

5. Undefined class constant INFO_NOT_AVAILABLE

Message: Undefined class constant 'INFO_NOT_AVAILABLE' (0)

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

Open the Aspro class with the error, find \Bitrix\Main\Service\GeoIp\Manager::INFO_NOT_AVAILABLE, and replace it with null:

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

// After
if ($obBitrixGeoIPResult !== null) {

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

Message: Call to undefined method CMain::reinitPath()

The reinitPath() method has been removed from the kernel. Replace the call manually:

// Before
$APPLICATION->reinitPath();

// After
$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 on an incorrect kernel update. Go to /bitrix/modules/sale/lib/ and delete or comment out the file tradingplatform.php.

8. Cannot declare class Bitrix\Highloadblock\HighloadBlockLangTable, because the name is already in use

Another kernel update error. Go to /bitrix/modules/highloadblock/lib and make sure both files exist: highloadblocklang.php and highloadblocklangtable.php. Delete the one without table in the name.

9. Properties Disappeared from Old Orders After Update

Symptom: the order properties stopped displaying in the admin order list, but only for orders created before the update.

The cause is a missing ORDER value in the ENTITY_TYPE column of the b_sale_order_props_value table. Run the recovery 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->executeSql("UPDATE b_sale_order_props_value SET ENTITY_TYPE = 'ORDER' WHERE ID IN (" . implode(",", $IDS) . ")");

10. Update Server Connection Error: getaddrinfo for www.1c-bitrix.ru failed

Message: [0] php_network_getaddresses: getaddrinfo for www.1c-bitrix.ru failed: Name or service not known. No connection to the update server.

The cause is that the server can't resolve the www.1c-bitrix.ru DNS name. This is usually an empty or broken /etc/resolv.conf. The fix is to write public DNS servers manually.

Step 1. Connect to the server via SSH as root or with sudo.

Step 2. Open the DNS configuration file:

sudo nano /etc/resolv.conf

Step 3. If the file is empty or contains broken local addresses — add public DNS servers from Google or Yandex:

nameserver 8.8.8.8
nameserver 8.8.4.4
nameserver 77.88.8.8

Step 4. Save the file (Ctrl+O, then Enter) and exit (Ctrl+X). Check that the address now resolves:

ping www.1c-bitrix.ru

Step 5. Restart the web server and PHP-FPM so the settings apply to all services:

# CentOS / RHEL / AlmaLinux
sudo systemctl restart httpd

# Ubuntu / Debian
sudo systemctl restart apache2

# PHP-FPM — on any OS
sudo systemctl restart php-fpm

If Nginx with PHP-FPM is used, restart nginx and php-fpm instead of httpd or apache2. After that, updating from the admin panel and installing modules should work.

If ping still fails after editing resolv.conf — check that the server has internet access at the provider or firewall level, and that the provider isn't blocking outgoing DNS queries.

Aleksandr Tichiy
Author

Aleksandr Tichiy

Fullstack developer · 1C-Bitrix

I build and modernize online stores and corporate portals on 1C-Bitrix. Integrations with 1C, high-load performance, 152-FZ compliance. Writing about architecture and e-commerce.


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

Please message me to discuss the task. I work remotely and officially (as a self-employed professional); my hourly rate is 1,800 RUB, and I can dedicate 3–4 hours a day to the project. I respond quickly, and the consultation is free.

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