Answer the question
In order to leave comments, you need to log in
Bitrix when using the include area (IncludeComponent("bitrix:main.include") default parameters), the server issues an error skirt 500. Why?
Hello!
We transferred a site from a VPS on which the version of PHP 7.2 was hosted to reg ru a site on bitrix. On Reg ru the PHP version is also 7.2.
Pages where the code is used
<?$APPLICATION->IncludeComponent(
"bitrix:main.include",
"",
Array(
"AREA_FILE_SHOW" => "page",
"AREA_FILE_SUFFIX" => "inc",
"EDIT_TEMPLATE" => ""
)
);?>
Answer the question
In order to leave comments, you need to log in
At the moment the issue is resolved, only how exactly I did not quite understand.
Did the following. Deleted the old file (index_inc.php) that contained information from the embedded area (although it was generally normal html), then created an included area from "Change page" in the right place. Through the Bitrix admin panel, I wrote to the HTML file from the previous server, I go to the URL - it works. Then I also moved the area to the included file of the area into a separate file via $APPLICATION->IncludeFile where it was previously connected. It works now. It seems like the code remains the same.
Strange situation. When I deleted the old file of the embedded area, I did not pay attention to what rights it had, maybe this was the case.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question