Answer the question
In order to leave comments, you need to log in
How to fix error from php console?
Good afternoon! There is a site on Bitrix, you need to transfer agents to kroner, I used to do this and everything turned out with periodic success. But now I'm facing the next problem.
I have the following php file
<?
$_SERVER["DOCUMENT_ROOT"] = realpath(dirname(__FILE__)."/../..");
$DOCUMENT_ROOT = $_SERVER["DOCUMENT_ROOT"];
define("NO_KEEP_STATISTIC", true);
define("NOT_CHECK_PERMISSIONS",true);
define('CHK_EVENT', true);
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");
@set_time_limit(0);
@ignore_user_abort(true);
CAgent::CheckAgents();
define("BX_CRONTAB_SUPPORT", true);
define("BX_CRONTAB", true);
CEvent::CheckEvents();
if (CModule::IncludeModule("subscribe"))
{
$cPosting = new CPosting;
$cPosting->AutoSend();
}
?>
php -f путь до корня/bitrix/php_interface/cron_events.php
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");
Answer the question
In order to leave comments, you need to log in
The problem was solved by upgrading the php cli to version 5.6 + removing the connection of third-party modules from init.php
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question