V
V
Vitaly Kazak2018-09-10 14:17:07
1C-Bitrix
Vitaly Kazak, 2018-09-10 14:17:07

How to fix an error in Bitrix when switching to PHP 7.2?

When transferring the site to php 7.2, if I go to the trash, I get the following error:
[ArgumentCountError]
Too few arguments to function CAllMain::IncludeComponent(), 1 passed in /var/www/www-root/data/www/site. ru/cart/index.php on line 48 and at least 2 expected (0)
/var/www/www-root/data/www/site.ru/bitrix/modules/main/classes/general/main.php:979
#0: CAllMain->IncludeComponent(string)
/var/www/www-root/data/www/site.ru/cart/index.php:48
5b9651c282dc8463354835.jpeg5b965280d4ea1025138925.jpeg
Help a newbie understand, thanks.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ildar Gizetdinov, 2018-09-10
@Vetall0779

$APPLICATION->IncludeComponent("my:cart", "", array());

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question