I’m building a plugin with a hook on panel.page.update. Is there a way to log these errors somewhere so I can see what they are?
I’m using panel()->notify('xxx') to send me messages when all is good, but when something fails, I just get the smiley face on page save. How can I track down the errors?
edit: they aren’t showing up in my php error log in MAMP
You could try to output errors to the console using error_log(); Since debugging Kirby 2 hooks is not possible without workarounds, I have also just written stuff to file to check if I get the desired result.