replacing $this->addHookAfter('Pages::saveReady', $this, 'afterSaveReady');
with $this->addHookAfter('Pages::save', $this, 'afterSaveReady');
fix the problem )))
Hi.
I need to create a page when the page was edited or created.
I wrote the hook as describet there https://github.com/processwire-recipes/Recipes/blob/master/extending-page-save-process.md
And placed in it the code like in the beginning of this topic.
The problem is - if there is
$p->save();
line exists - the images that I delete in the editing page are not deleted (((