-
-
Notifications
You must be signed in to change notification settings - Fork 309
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
Upload photo - Internal server error #419
Comments
Could the file size of the image be an issue? (PHP parameters upload_max_filesize and post_max_size) |
I guess not because they are both set to 512M. |
Does it happen with all photo? (e.g. those https://github.com/LycheeOrg/php-exif/tree/master/tests/files) |
Yes, it happens also with the test photos you mentioned. I'm not familiar with docker container so I don't know how to setup that for Lychee - sorry. |
As you have an error 500, can you please apply: This will not solve your issue but this will give you more details of why it failed. |
I've checked things in your link: the APP_DEBUG was already set to true and in the console there is only the info that was there already. I've also checked the phpinfo page but I don't know what to look for in that information. |
I have the same problem now :-( |
Could this be related für #413 ? The fix has been merged today (clear composer cache, remove folder 'vendor' and run composer install) |
@tmp-hallenser this is also why I rebuild a release archive. 👍 |
Still not working :-( Didi composer clear-cache, deleted vendors ... I have to do "composer install --no-dev" btw else I get "Your requirements could not be resolved to an installable set of packages. Problem 1 It worked all a while before ... |
Tried this with no luck - still not able to upload photos! I might try a clean install some time later. |
Try setting has_exiftool to 0. Worked for me. |
@SerenaButler That's a first step into solving the issue. It seems to be related to the exiftool. Could you help with further debugging? I'd like to have the following:
|
I'm sorry but I don't know how to produce something like that.
|
============================================= ============================================= exiftool -G exif.jpg |
@SerenaButler Could you provide the content of "ResponseText" (under params)? (If needed: Firefox Dev let's you export the content). This will show us where the error occurred. |
Diese Seite verwendet die nicht standardisierte Eigenschaft "zoom". Stattdessen sollte calc() in den entsprechenden Eigenschaftswerten oder "transform" zusammen mit "transform-origin: 0 0" verwendet werden. gallery |
hm, this does not help. If have the suspicion that the error is somewhere in the exiftool part. Could you create a php file in the Lychee base folder with the following content:
and run it from the console via |
Fatal error: Uncaught RuntimeException: Could not decode exiftool output in /www/htdocs/XXXXXX/Lychee-Laravel-Work/vendor/lychee-org/php-exif/lib/PHPExif/Adapter/Exiftool.php:151 |
Did you replace the 'your_jpp.JPG' in line 8 with a valid path to a photo? |
Sorry I just did copy and paste my head is elsewhere :-P 20-01-14 11:01:08 |
Hm, that's strange. I was "hoping" php-exif is failing somewhere. Let me think how we can find out where the code is failing on your installation. |
Could you try the following in order to get some more information on where the failure occurs.
This should create an album call 'my_test_album' and import the file 'your_jpg.jpg' using the CLI. This should then print the error message directly in the shell. Please replace 'your_jpg.jpg' with your file and locate the folder where it suits you. Let's keep fingers crossed to get a proper error message. |
I'm not that used to Git (I hate it btw .. haha) so I unfortunately don't know what you wann me to do exactly. |
ok, no worries. Then let's try the manual way for pedestrians :)
2a. Download this file and copy it to
|
php artisan lychee:sync /www/htdocs/XXXXXXX/Lychee-Laravel-Test/root_folder |
Hm, that's very strange. Does the test_album now contain the imported jpg? You basically just tested the importing function, but without the UI -> the importing code seems to work properly. |
Nope, album created but no image. I accidentally used my real root folder before ... hahaha .. lot's of albums created AND some WITH images. |
Great, it works now! Thank you very much. |
Detailed description of the problem
After latest upgrade of Lychee (git pull) I can not upload any photo, I only get error: "Server returned an unknown response." In the Diagnostics log everything looks fine, also no errors in the Logs are shown.
Steps to reproduce the issue
Steps to reproduce the behavior:
Screenshots
Output of the diagnostics
Diagnostics
-----------
Info: Latest version of PHP is 7.4
Warning: Dropbox import not working. dropbox_key is empty.
Browser and system
Server Fedora 31
Client Windows 10, Vivaldi or Firefox latest browser
Console output:
main.js?1577525663:7846 POST http://www.sever.lan/Lychee/public/api/Photo::add 500 (Internal Server Error)
process @ main.js?1577525663:7846
(anonymous) @ main.js?1577525663:7867
n @ main.js?1577525663:20
upload.show @ main.js?1577525663:7662
local @ main.js?1577525663:7864
(anonymous) @ main.js?1577525663:3056
dispatch @ main.js?1577525663:2
v.handle @ main.js?1577525663:2
main.js?1577525663:3977 {description: "Upload failed. Server returned an unkown error!", params: XMLHttpRequest, response: ""}
lychee.error @ main.js?1577525663:3977
xhr.onload @ main.js?1577525663:7795
load (async)
process @ main.js?1577525663:7741
(anonymous) @ main.js?1577525663:7867
n @ main.js?1577525663:20
upload.show @ main.js?1577525663:7662
local @ main.js?1577525663:7864
(anonymous) @ main.js?1577525663:3056
dispatch @ main.js?1577525663:2
v.handle @ main.js?1577525663:2
The text was updated successfully, but these errors were encountered: