sbrl / Pepperminty-Wiki

A wiki in a box
https://peppermint.mooncarrot.space/
Mozilla Public License 2.0
178 stars 20 forks source link

Crash: Search fails if no pages have been created yet #169

Closed sbrl closed 5 years ago

sbrl commented 5 years ago

If we haven't created any pages yet and a user somehow manages to perform a search, it'll crash because it can't load the inverted index.

We should fix this with an explicit error message saying that no pages have been created yet (and how about starting by creating $settings->defaultpage?)

sbrl commented 5 years ago

Doesn't look like I can recreate this bug. We've already got a protection in the search engine against line here:

https://github.com/sbrl/Pepperminty-Wiki/blob/master/modules/feature-search.php#L125-L126

I'll close this for now, and reopen if it pops up again.