-
-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
500 error generating preview with imagick/gd #1009
Comments
Some test case:
Error in the logs:
list of files in temp:
|
I figured out, it was by the wrong / missing timezone. In the OS (/etc/timezone) need to configure to the client's timezone. In the php.ini must be set too (date.timezone). After the changes, the thumbnail images will be visible (with gd, imagick and gmagick enabled too), but on click on the image's thumbnails, nothing happening. (and no js errors in the browser's console) |
I set timezone in php.ini , /ets/localtime , /ets/timezone - but where still doesn't no preview with GD, neither imagick.. Only Gmagick works. (ofc i restarted php-fpm to apply) Yes, by clicking on the preview nothing happens, but I didn’t focus on this, maybe it should work like that. |
did you restarted the OS too? I use it in docker, i restarted after the changes, then worked. Some service need restart to apply the timezone changes, maybe the webserver restart is enough. |
I also have this problem in nextcloud + snappymail. Here's some debug log:
@the-djmaze Can you help us understand this issue? |
At first there was an Now i think that Nextcloud wants to set headers after Next release has changes to prevent this, but probably reveal another Nextcloud bug. |
@the-djmaze This is working in 2.27.2. Thanks! |
Describe the bug
When using the gd or imagick extensions in php , the preview for jpg files is not shown, and a 500 error is displayed in the broser console. At the same time, nothing is written to the log about the cause of the error. Same appears with clear gd, without imagick/gmagick at all.
Preview appears only with gmagick extension enbled.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The documentation says that the use of jmagick and gmagick is equivalent, and with any of them, previews should be generated.
If i see a 500 error, then imagick is not working properly.
Screenshots

Please complete the following information:
Debug/logging information
No error messages found in logs.
The text was updated successfully, but these errors were encountered: