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

Closed
opened 2026-02-05 01:06:37 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @Linouth on GitHub (Feb 4, 2020).

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.

Originally created by @Linouth on GitHub (Feb 4, 2020). **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](https://i.imgur.com/y8xXc2d.png) ![No file showing](https://i.imgur.com/WsDlIkq.png) 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.
Author
Owner

@Linouth commented on GitHub (Feb 4, 2020):

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
)
@Linouth commented on GitHub (Feb 4, 2020): 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 )
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#1514