Bookstack: No images showing in the 'Image Select' window, even though images are being uploaded.

Created on 4 Feb 2020  路  1Comment  路  Source: BookStackApp/BookStack

Describe the bug
There are no images showing in the Image Select window after uploading. The images are being uploaded just fine and can be viewed with a direct link to the file. (e.g. https://url/uploads/images/gallery/2020-02/Float.jpg)
Also, the Firefox console gives an error when opening the window: TypeError: "image is undefined"
Interestingly Draw.io, attachments and cover images are working just fine.

Steps To Reproduce
Steps to reproduce the behavior:

  1. Edit a page
  2. Click on 'Insert Image'
  3. Upload an image
  4. Upload successful but no images show up

Expected behavior
I would expect the newly, and previously uploaded images to show up in the 'Image Select' window.

Screenshots
Error
No file showing
Here you can see that there are images uploaded to the server, but nothing is showing up.

My Configuration:

  • Exact BookStack Version: v0.28.0
  • PHP Version: PHP 7.4.2
  • Hosting Method (Nginx/Apache/Docker): lighttpd/1.4.55

    • I understand this is not one of the supported methods, however it is configured identically to the nginx or apache configs. As far as I understand, this should not make a difference.

Additional context
This issue seems to be very similar to #1716. Unlike that issue, this is still occurring with the newest BookStack version.

Most helpful comment

Alright, I've found the issue. It did have to do with lighttpd. The url rewrite expression I used apparently did not include query strings.

For anyone using BookStack with Lighttpd, use this url.rewrite query:
```
url.rewrite-if-not-file = (
"^(.*)" => "/index.php$1
)

>All comments

Alright, I've found the issue. It did have to do with lighttpd. The url rewrite expression I used apparently did not include query strings.

For anyone using BookStack with Lighttpd, use this url.rewrite query:
```
url.rewrite-if-not-file = (
"^(.*)" => "/index.php$1
)

Was this page helpful?
0 / 5 - 0 ratings