Answer the question
In order to leave comments, you need to log in
Why is the Bitrix agent not being added?
Hello! There is the following handler, which is used for 3 sites under one Bitrix admin panel.
CAgent::AddAgent(
"Lead::sendLeadSu({$iOrderId});",
"main",
"N",
'',
date('d.m.Y H:i:s', time() + 60 * 1),
"Y",
date('d.m.Y H:i:s', time() + 60 * 1),
30
);
Answer the question
In order to leave comments, you need to log in
Bitrix checks the agent's launch date via $DB->IsDate() and if the site's regional settings, for example en, are selected, then when creating an agent and specifying the Russian date format, agents will not be created. This is one of the possible reasons. Otherwise, you can display an array of errors in CAllAgent::CheckFields().
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question