P
P
Peter2019-07-09 16:09:40
1C-Bitrix
Peter, 2019-07-09 16:09:40

Why does Bitrix give an error when viewing news?

Bitrix. Corporate s1 Template From nexttype.
When going to the news page:
Example
gives the following error

Fatal error: Uncaught Error: Call to a member function IncludeComponent() on null in /home/c/cc28439/atlaslaser-bitrix/public_html/include/mainpage_catalog_slider.php:1 Stack trace: #0 /home/c/cc28439/atlaslaser-bitrix/public_html/bitrix/modules/main/include/urlrewrite.php(159): include_once() #1 /home/c/cc28439/atlaslaser-bitrix/public_html/bitrix/urlrewrite.php(2): include_once('/home/c/cc28439...') #2 {main} thrown in /home/c/cc28439/atlaslaser-bitrix/public_html/include/mainpage_catalog_slider.php on line 1

This was not the case before, and

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2019-07-09
@jasper-blondin

Judging by the text of the error, the $APPLICATION global variable is not available in your /include/mainpage_catalog_slider.php file.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question