Missing argument 1 for PageAbstract::search()

I cannot debug what I have done to get this back, I was adding some fields to a blueprint and for one I used the word search and that triggered this error?

Missing argument 1 for PageAbstract::search(), called in /Users/xxx/sites/website/panel/app/src/panel/models/page/changes.php on line 71 and defined

on line 987 of kirby/core/page.php

/xxx/username/sites/website/kirby/core/page.php

 public function search($query, $params = array()) {
    return $this->children()->index()->search($query, $params);
  }

I tried to change field name, to clear the browser cache, to go back to have no fields beside title, and still get this error when entering this specific panel page.

How do I fix it?

Where do you get this error, in the Panel? I can’t reproduce this… If all fails,try to completely delete the blueprint and recreate it.

In your template, you would have to remove the search() method as well, if you tried to echo something like:

<?= $page->search() ?>

(which would of course trigger an error on the frontend like the above, because the search method requires at least one argument)

Edit: I had the same error message when I logged in again with that field still active. Deleting the session cookies should recover your installation.

Yes, I confirmed it was the cookie session the culprit.

:slight_smile: