BookStack: Error 500 when opening the gallery

Describe the bug When I try to insert an image on a page I get an error 500 from the server

Steps To Reproduce Steps to reproduce the behavior:

  1. Edit a page
  2. Click on ‘Insert an image’
  3. See error GET https://example.com/images/gallery?page=1&uploaded_to=142 500 in the browser console

Expected behavior Gallery shows images that were uploaded

Screenshots If applicable, add screenshots to help explain your problem.

Your Configuration (please complete the following information):

Additional context I tried to debug the error but can’t find anything related in the error logs at storage/logs/laravel.log and even setting the APP_DEBUG=true in the .env file didn’t reveal any information on the error (I think the setting didn’t change anything at all).

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (8 by maintainers)

Most upvoted comments

I’ve opened up #4454 as an intent to improve things as discussed above, which is assigned to a future maintenance release.

Yeah, it would be great if we have a warning on upload and replace a preview icon if a file can’t be properly displayed to make it easy to find .

Yeah, large images can lead to memory being exhausted when attempting to resize. Maybe we should force fail upon upload in these scenarios with applicable warning, will have to test how easy it is to catch since it’s an out-of-memory situation.