I’m having problems since a Kirby update with the page.changeStatus:after hook in my config.php file in all my websites.
The hook is fired but it seems that there are no pagevariables passed.
I tested in Kirby 3.5 and it get the same error in a new plain 3.6 Starterkit version. It worked in Kirby 3.3.
When i test with page.update:after, it works!
Am i doing something wrong? Or could this be a bug?
'hooks'=>[
'page.changeStatus:after' => function($newpage,$oldpage){
$template= $newpage->intendedTemplate();
if($template =="text-page"){
$update= $newpage->update(["text"=>"test"]);
}
}
]