N
N
Natalia2020-02-12 18:40:04
1C-Bitrix
Natalia, 2020-02-12 18:40:04

How to fix an error in Bitrix 1s Management after updating PHP?

I contacted Bitrix technical support - the module from the Marketplace was not installed. I was advised to upgrade my PHP version. Updated to 7.6. After that, all content from the site disappeared and the following error is written: Fatal error: 'break' not in the 'loop' or 'switch' context in /home/xnd1asmx/public_html/bitrix/templates/.default/components/bitrix/sale .basket.basket.small/normal1/template.php on line 3. I wrote to Bitrix again, they answered the following: "The specified warning occurs in the program code of a third-party component template. Please contact the template developer with a request to troubleshoot." I wrote to the developers, but they are very unskilled, I have already encountered. Help, please, how can I fix it and what is wrong? We urgently need a working website by tomorrow.

Found the file described in the error. Line 3 looks like this: if(!CModule::IncludeModule("iblock")||!CModule::IncludeModule("catalog")) break;

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2020-02-12
@Natalla

php to downgrade to 7.3 or 7.1
Or in the third line of the specified file, replace break with return

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question