Panel Error (layout/app.php)

After a very small tweek to a project this morning, I’ve started receiving this error when trying to access the panel:

Error
Method KirbyPanelView::__toString() must not throw an exception, caught Error: Call to a member function title() on boolean
File: /Applications/MAMP/htdocs/project/panel/app/layouts/app.php

Line: 0

I’ve reverted the files back to how they were yesterday evening (when still fully functional) and am still receiving the error. I cant put my finger on what may have caused it, and was wondering if anybody may have experienced something similar.

Only the dashboard is inaccessible, I can still access the Site Options and users.

For the sake of reference, the tweek was adding data-anchors to a kirby/ shopkit/ fullpage.js project. The app.php file has remained untouched the whole time.

Got it,

For some reason it was Kirbystats causing the error. Will delve further and report back.