X
X
xedema2021-07-29 11:58:36
1C-Bitrix
xedema, 2021-07-29 11:58:36

Does the server freeze when removing DETAIL_PICTURE?

I delete the value of the "DETAIL_PICTURE" field, and the server hangs up. The code:

$el->update($id, ['DETAIL_PICTURE' => ['del' => 'Y']]);


When you remove the property of type "file", everything works fine. The code:

CIBlockElement::setPropertyValuesEx($id, $iblock, ['IMG' => ['del' => 'Y']]);


Accordingly, there are no errors in $el->LAST_ERROR - the server just hangs up. Please let me know what could be wrong and where to look.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question