R
R
ramizv2019-04-23 12:02:33
1C-Bitrix
ramizv, 2019-04-23 12:02:33

How to fix an error in Bitrix when deploying a site copy on VMbitrix 7.3?

I am a complete zero in this, please help ... I
deployed a backup copy of the site on a virtual machine ... and immediately this error appeared:

[ArgumentCountError] 
Too few arguments to function CAllMain::IncludeComponent(), 1 passed in /home/bitrix/www/bitrix/templates/.default/header.php on line 125 and at least 2 expected (0)
/home/bitrix/www/bitrix/modules/main/classes/general/main.php:976
#0: CAllMain->IncludeComponent(string)
  /home/bitrix/www/bitrix/templates/.default/header.php:125
#1: require_once(string)
  /home/bitrix/www/bitrix/templates/main/header.php:5
#2: include_once(string)
  /home/bitrix/www/bitrix/modules/main/include/prolog_after.php:106
#3: require(string)
  /home/bitrix/www/bitrix/modules/main/include/prolog.php:11
#4: require_once(string)
  /home/bitrix/www/bitrix/header.php:1
#5: require(string)
  /home/bitrix/www/index.php:2

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2019-04-23
@anton99zel

Show what's in your line
But probably a pluggable area, you need to connect it like this:

$APPLICATION->IncludeComponent("НАЗВАНИЕ", "", array());

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question