Y
Y
Yuri Voronin2019-02-26 11:49:08
1C-Bitrix
Yuri Voronin, 2019-02-26 11:49:08

Why does the CTicket::Set method return nothing but execute?

Hello. I'm adding a message to a support request. I do it the same way as the manual .

require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");
CModule::IncludeModule("support");
$arFields = array(
 "MESSAGE"                   => "message"
 );
$NEW_TICKET_ID = CTicket::Set($arFields, $MESSAGE_ID, '4972', "N");
echo "MESSAGE_ID = ".$MESSAGE_ID;

The message is added, but at the moment $NEW_TICKET_ID = CTicket::Set($arFields, $MESSAGE_ID, '4972', "N"); the method is terminated. And everything that I would not write below is not fulfilled. Did through a breakpoint, reaches this line and stops working. There are no errors. What could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Nikolaev, 2019-03-01
@gromdron

the method is terminated.

Did you enable error reporting? Have you looked at the logs? What version of php is worth?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question