Blank search results sometimes #603

Closed
opened 2026-02-04 21:23:15 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @IAreKyleW00t on GitHub (Mar 15, 2018).

BookStack Version: 0.20.0 (Docker)
PHP Version: 7.1.10 (Apache, Docker)
MySQL Version: 10.2 (MariaDB, Docker)

I am running all of this with Docker using the docker-compose.yml file from solidnerd/bookstack, only changing from mysql to mariadb.

Expected Behavior

Search results. Either some or zero. Example when searching "ips"

Current Behavior

No results at all; blank search area. Example when searching "ip"
Window will quickly show some results, but then immediately change to being blank and the error is thrown.

Steps to Reproduce

Inconsistent... appears to happen with certain words, but acts differently for another user at my workplace. (eg: Searching "user" fails, but "user to ips" also fails)

Here is the error that gets thrown in the console when I perform a search that fails.

common.js?version=v0.20.0:23 ReferenceError: NAME is not defined
    at At.eval (eval at Zi (common.js?version=v0.20.0:25), <anonymous>:2:14293)
    at At.e._render (common.js?version=v0.20.0:25)
    at At.r (common.js?version=v0.20.0:23)
    at da.get (common.js?version=v0.20.0:25)
    at new da (common.js?version=v0.20.0:25)
    at Ee (common.js?version=v0.20.0:23)
    at At.$mount (common.js?version=v0.20.0:25)
    at At.$mount (common.js?version=v0.20.0:25)
    at At.e._init (common.js?version=v0.20.0:25)
    at new At (common.js?version=v0.20.0:23)

If I search for the word "user" it says this instead.

common.js?version=v0.20.0:23 ReferenceError: USER is not defined
    at At.eval (eval at Zi (common.js?version=v0.20.0:25), <anonymous>:2:14450)
    at At.e._render (common.js?version=v0.20.0:25)
    at At.r (common.js?version=v0.20.0:23)
    at da.get (common.js?version=v0.20.0:25)
    at new da (common.js?version=v0.20.0:25)
    at Ee (common.js?version=v0.20.0:23)
    at At.$mount (common.js?version=v0.20.0:25)
    at At.$mount (common.js?version=v0.20.0:25)
    at At.e._init (common.js?version=v0.20.0:25)
    at new At (common.js?version=v0.20.0:23)
Originally created by @IAreKyleW00t on GitHub (Mar 15, 2018). **BookStack Version**: 0.20.0 (Docker) **PHP Version**: 7.1.10 (Apache, Docker) **MySQL Version**: 10.2 (MariaDB, Docker) I am running all of this with Docker using the `docker-compose.yml` file from [solidnerd/bookstack](https://hub.docker.com/r/solidnerd/bookstack/), only changing from mysql to mariadb. ##### Expected Behavior Search results. Either some or zero. [Example when searching "ips"](https://i.imgur.com/rGR9dFm.png) ##### Current Behavior No results at all; blank search area. [Example when searching "ip"](https://i.imgur.com/ejvaw9T.png) Window will quickly show some results, but then immediately change to being blank and the error is thrown. ##### Steps to Reproduce Inconsistent... appears to happen with certain words, but acts differently for another user at my workplace. (eg: Searching "user" fails, but "user to ips" also fails) Here is the error that gets thrown in the console when I perform a search that fails. ``` common.js?version=v0.20.0:23 ReferenceError: NAME is not defined at At.eval (eval at Zi (common.js?version=v0.20.0:25), <anonymous>:2:14293) at At.e._render (common.js?version=v0.20.0:25) at At.r (common.js?version=v0.20.0:23) at da.get (common.js?version=v0.20.0:25) at new da (common.js?version=v0.20.0:25) at Ee (common.js?version=v0.20.0:23) at At.$mount (common.js?version=v0.20.0:25) at At.$mount (common.js?version=v0.20.0:25) at At.e._init (common.js?version=v0.20.0:25) at new At (common.js?version=v0.20.0:23) ``` If I search for the word "user" it says this instead. ``` common.js?version=v0.20.0:23 ReferenceError: USER is not defined at At.eval (eval at Zi (common.js?version=v0.20.0:25), <anonymous>:2:14450) at At.e._render (common.js?version=v0.20.0:25) at At.r (common.js?version=v0.20.0:23) at da.get (common.js?version=v0.20.0:25) at new da (common.js?version=v0.20.0:25) at Ee (common.js?version=v0.20.0:23) at At.$mount (common.js?version=v0.20.0:25) at At.$mount (common.js?version=v0.20.0:25) at At.e._init (common.js?version=v0.20.0:25) at new At (common.js?version=v0.20.0:23) ```
OVERLORD added the 🐛 Bug label 2026-02-04 21:23:15 +03:00
Author
Owner

@alegiovannelli commented on GitHub (Mar 25, 2018):

I have the same issue with docker container, most searches return for half a second the results and then the blank page remains. In fact, research is unusable.

@alegiovannelli commented on GitHub (Mar 25, 2018): I have the same issue with docker container, most searches return for half a second the results and then the blank page remains. In fact, research is unusable.
Author
Owner

@ssddanbrown commented on GitHub (Mar 25, 2018):

@IAreKyleW00t Looking into this I think it may be a case of the search results clashing if containing vue syntax.

Do you have any text in your pages that matches {{USER}} or {{NAME}} including the braces?

@ssddanbrown commented on GitHub (Mar 25, 2018): @IAreKyleW00t Looking into this I think it may be a case of the search results clashing if containing vue syntax. Do you have any text in your pages that matches `{{USER}}` or `{{NAME}}` including the braces?
Author
Owner

@alegiovannelli commented on GitHub (Mar 25, 2018):

I think not have pages that matches {{USER}} or {{NAME}}.
The change made works correctly now in searches. Thank you for finding and fixing this annoying bug that did not allowed to properly use the search. Thank you, great project!

@alegiovannelli commented on GitHub (Mar 25, 2018): I think not have pages that matches {{USER}} or {{NAME}}. The change made works correctly now in searches. Thank you for finding and fixing this annoying bug that did not allowed to properly use the search. Thank you, great project!
Author
Owner

@ssddanbrown commented on GitHub (Mar 25, 2018):

@alegiovannelli Thanks for confirming.

I'll close this now that v0.20.1 has been released with the likely fix.

@IAreKyleW00t Feel free to request this to be re-opened if you don't find the issue fixed after updating.

@ssddanbrown commented on GitHub (Mar 25, 2018): @alegiovannelli Thanks for confirming. I'll close this now that v0.20.1 has been released with the likely fix. @IAreKyleW00t Feel free to request this to be re-opened if you don't find the issue fixed after updating.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#603