Answer the question
In order to leave comments, you need to log in
How to fix Cannot use 'String' as class name as it is reserved in error?
I am transferring Bitrix from a php 5.6 server to a php 7 server. I changed the lines in DBconf and .setting to work with msqli, but there was an error, the solution of which could not be found on the Internet.
when accessing
http://domain/bitrix/admin/index.php#authorize
, an error occurs
Fatal error: Cannot use 'String' as class name as it is reserved in /var/www/domain/bitrix/modules/main/ lib/text/string.php on line 4
Is there a solution? there is no support for Bitrix, is it possible to do without it? if so, how?
Answer the question
In order to leave comments, you need to log in
For everyone who has encountered this problem and cannot update Bitrix to the latest version:
1. Install the php5.6 version
2. Go to the settings: /bitrix/admin/settings.php?lang=ru&mid=main&tabControl_active_tab=edit5 and uncheck enhanced checking the correct installation of updates
3. Update Bitrix to the latest version
4. Install the version php7.1
It is necessary to update Bitrix, in new versions this problem is solved. If the update cannot be done, then leave php 5.6, let it spin on it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question