HaschekSolutions / pictshare

:camera: PictShare is an open source image, mp4, pastebin hosting service with a simple resizing and upload API that you can host yourself. :rice_scene:
https://www.pictshare.net
Apache License 2.0
819 stars 123 forks source link

Latest docker image, upload image operation returns 500 error #81

Closed nelsondspy closed 5 years ago

nelsondspy commented 5 years ago

In /var/log/php-fpm/fpm-error.log:

02-Jan-2019 20:41:29] WARNING: [pool www] child 238 said into stderr: "NOTICE: PHP message: PHP Warning:  fopen(/usr/share/nginx/html/api/../data/sha1.csv): failed to open stream: No such file or directory in /usr/share/nginx/html/inc/core.php on line 362"
[02-Jan-2019 20:41:29] WARNING: [pool www] child 238 said into stderr: "NOTICE: PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function exif_imagetype() in /usr/share/nginx/html/content-controllers/image/image.controller.php:18"
[02-Jan-2019 20:41:29] WARNING: [pool www] child 238 said into stderr: "Stack trace:"
[02-Jan-2019 20:41:29] WARNING: [pool www] child 238 said into stderr: "#0 /usr/share/nginx/html/api/upload.php(43): ImageController->handleUpload('/tmp/phpHihaJh', false)"
[02-Jan-2019 20:41:29] WARNING: [pool www] child 238 said into stderr: "#1 {main}"
[02-Jan-2019 20:41:29] WARNING: [pool www] child 238 said into stderr: "  thrown in /usr/share/nginx/html/content-controllers/image/image.controller.php on line 18"
geek-at commented 5 years ago

are you building the image yourself or are you using the one from docker hub?

Because the official install on pictshare.net is running directly from the docker container so I'm pretty sure it works

nelsondspy commented 5 years ago

I get the new image without cache, and work fine.