E
E
Evgeny Nikolaev2020-04-17 16:08:00
1C-Bitrix
Evgeny Nikolaev, 2020-04-17 16:08:00

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" => ""
  )
);?>

that is, inserting an include area results in a 500 error on that page. I tried to create a new include area file, and not include the one that was transferred - the result is the same: 500 error.

Here is a screenshot of error 500 on which the reg reports about the incompatibility of the PHP version, while, as the version has already written, both there and there 7.2

5e99a99007b6f903360699.jpeg

What could be the matter?

This is an online store site that uses different modules and self-written elements, while a seemingly very standard module of the embedded area causes an error.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Nikolaev, 2020-04-17
@nikolaevevge

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 question

Ask a Question

731 491 924 answers to any question