I followed the instructions to update a project from Kirby 2.5.6 tho the latest Kirby 3 version.
Accessing the page Iโm getting the following error:
Error Call to a member function children() on null
This is the controller home.php
<?php
return function($site, $pages, $page) {
$collection = $site->pages()->find('home', 'events', 'contact');
$events = $site->pages()->find('events')->children()->visible()->flip();
return compact('collection', 'events');
};
Trying to acces the panel, Iโm getting the following error:
Error Cannot access protected property Kirby\Cms\App::$roots
โฆ/panel/index.php
// the default index directory
if(!isset($kirby->roots->index)) {
**$kirby->roots->index = $index;**
}