use Bitrix\Main\Loader; use Bitrix\Main\SiteTable; use Bitrix\Main\Config\Option; use Bitrix\Currency\CurrencyTable; require_once($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/main/include/prolog_admin_before.php'); require_once($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/catalog/prolog.php'); Loader::includeModule('catalog'); $var = CCatalogDocs::add( "DOC_TYPE" => "A", "SITE_ID" => "s1", "DATE_DOCUMENT" => "11.07.2016 17:16:55", "CREATED_BY" => "1", "MODIFIED_BY" => "1", "COMMENTARY" => "", "CONTRACTOR_ID" => "1", "CURRENCY" => "EUR", "TOTAL" => "22" ); echo $var;?> 

CCatalogDocs::add use this bitrix method. There is nothing in the documentation about it. Connecting models is OK, when the method runs, the site crashes and does not show any errors.

Closed due to the fact that the essence of the question is not clear to the participants aleksandr barakin , cheops , Bald , zRrr , Streletz Jul 13 '16 at 13:18 .

Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • Is there any information in the logs? Without an error message it will be difficult to help. - cheops
  • one
    No error is displayed at all. What kind of garbage. - Roman
  • one
    Do you have debug mode enabled? if so, is it configured to be displayed on a screen or in a log? what at the time of the appeal to the page is written to access the log? what's in error log? here is not a club of anonymous telepaths, read the rubric how to ask questions before asking a question - Nikolaj Sarry
  • See what you pass as a parameter. It is necessary to transfer an array. - ka3a

0