A
A
Anna2020-09-29 13:53:01
1C-Bitrix
Anna, 2020-09-29 13:53:01

Cron_events stopped working after updating php to 7.3 and Bitrix and gave a database error undefined function mysql_query (), how to start?

Good afternoon!
The cron_events file was added to the site using this code and with the same settings: https://diee.ru/notes/info/execution_of_all_agents...
Everything worked fine before the update. After the update, when starting this file, the module connection error first appeared, which was resolved through short_open_tag, and after the error appeared, the error
5f73104a3b37b472295713.jpeg
is caused in this line
5f73105ac56cc364308766.png

In the php.ini settings, extance = mysqli is uncommented,
The following recommendations are made:
To the file /bitrix/php_interface/dbconn.php
Add: define("BX_USE_MYSQLI", true);

And to the file: /bitrix/.settings.php Change the
line: 'className' => '\\Bitrix\\Main\\DB\\MysqlConnection' to 'className' => '

No tricks helped. the error remains. What else can be done?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anna, 2020-10-06
@Anna_Belikova01

The mistake turned out to be incredibly stupid. Rule define("BX_USE_MYSQLI", true); No wonder they say to add at the very end of the document before ?>!
We had it at the beginning, as soon as we moved it to the end it worked!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question