I don’t know when this started happening, but I stumbled upon this issue some days ago in one of my plugins and just now realized it also happens in my rss-feed-generator. I am doing this in my rss php file:
$rssItem = [ otherStuff, '<description><![CDATA[' . $hero . "\n" . $item->intro()->kirbytext() . (($item->blockeditorfield()->isNotEmpty()) ? $item->blockeditorfield()->blocks() : $item->text()->kirbytext()) . ']]></description>' ]
Which worked for some time, but now I get this error:
Method Kirby\Editor\Blocks::__toString() must not throw an exception, caught Whoops\Exception\ErrorException: Undefined variable: page
I had the same thing in my komments plugin, where I try to regex URLs in an editor field using blocks(). I am not quite sure how to fix this. In the komments plugin I now use
->html() which works, but I am not sure if this is a good way of solving this.
Did something in the implementation of