New: Learn Statamic on Laracasts!

We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Call to a member function structure() on null

Robin van Maasakker April 5, 2021 by Robin van Maasakker


I suddenly get the error: Call to a member function structure() on null

Statamic\Structures\CollectionTree::Statamic\Structures{closure} vendor/statamic/cms/src/Structures/CollectionTree.php:19

return Blink::once('collection-tree-structure-'.$this->handle(), function () {

       ERROR====> return Collection::findByHandle($this->handle())->structure();


Does someone know how to fix?

>>>>>>> Unanswered <<<<<<<
1 Reply