Ошибка object_err_nfs
        Добрый день, делаю удаление через процессор всех картинок из товара, чтобы загрузить новые, и при удалении получаю ошибку object_err_nfs. метод вобщем то стандартный. права на файлы 777, может кто то сталкивался?
 
 
    
    
                                                                                
            $images = $this->modx->getCollection('msProductFile', array('type' => 'image', 'product_id' => $id));
        $ids = array();
        foreach ($images as $image) {
            $ids[] = $image->get('id');
        }
        //die(print_r($ids));
        $response = $this->modx->runProcessor('gallery/multiple',
            array(
                'method' => 'remove',
                'ids' => json_encode($ids),
            ),
            array('processors_path' => MODX_CORE_PATH.'components/minishop2/processors/mgr/')
        );
        if ($response->isError()) {
            die("imageserror".$response->getMessage());
        }    Комментарии: 1
                тут modx.pro/components/10835 писали что есть такая проблема при множественном удалении, но Василий не отреагировал. 
переписал на удаление по одному, все работает. может кому то пригодится:
                    переписал на удаление по одному, все работает. может кому то пригодится:
$images = $this->modx->getCollection('msProductFile', array('type' => 'image', 'product_id' => $id));
        $ids = array();
        foreach ($images as $image) {
            $ids[] = $image->get('id');
            $response = $this->modx->runProcessor('gallery/multiple',
                array(
                    'method' => 'remove',
                    'ids' => json_encode($image->get('id')),
                ),
                array('processors_path' => MODX_CORE_PATH.'components/minishop2/processors/mgr/')
            );
            if ($response->isError()) {
                die("imageserror ".$image->get('id')." ".$response->getMessage());
            }
        }            
                            Авторизуйтесь или зарегистрируйтесь, чтобы оставлять комментарии.