Hello,
I have a simple problem: I don't know how to use the resource/update processor!
I have tried something like this:
$my_doc = array(
'id' => '123'
,'pagetitle' => 'my title'
,'content' => 'my content'
);
$modx->runProcessor('resource/update',$my_doc);
And all I've got in return is an error:
Fatal error: Call to a member function getOption() on a non-object in /srv/http/website.com/public_html/modx/core/model/modx/processors/resource/update.class.php on line 277 [...]
The line 277 of the resource/update class is this:
$this->isSiteStart = ($this->object->get('id') == $this->workingContext->getOption('site_start') || $this->object->get('id') == $this->modx->getOption('site_start'));
Could someone tell me how to do this?
Thanks!
[ed. note: kiguane last edited this post 11 years, 11 months ago.]