J
J
JaFFFar2017-10-26 15:18:53
PHP
JaFFFar, 2017-10-26 15:18:53

Bitrix: CIBlockXMLFile class is not executed in the "Custom PHP script" section, what's wrong?

It is necessary to perform (for example) creation of class $obXMLFile = new CIBlockXMLFile;
The system returns an error: "An error occurred while executing the script."
The end goal (for now) is to delete the result of the previous boot.
$obXMLFile = new CIBlockXMLFile;
$obXMLFile->DropTemporaryTables();
What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
JaFFFar, 2017-10-26
@JaFFFar

the ultimate goal is to upload an XML file with the structure of the nomenclature / groups, lying on the server / hosting.
(the XML structure is identical to the one that arrives from 1s during direct exchange) took
as an example

A
Alexey Emelyanov, 2017-10-26
@babarun

Add first\Bitrix\Main\Loader::includeModule('iblock');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question