-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
ErrorException in getimagesize on asset acceptance #11116
Comments
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. |
I'm not able to reproduce this locally - What image is it trying to display exactly? This is when the user gets the email, clicks on the acceptance links, signs it and hits submit, or? |
Not sure. What info can I share?
Yep, click acceptance link in the email, choose I accept, hit the Submit button and if debug isn't on, 500 error on a blank page. |
Can you check latest on master. I did a lot of futzing with the asset acceptance stuff over the past few days. |
More info would be helpful. Does the file actually exist in your file system or not? Are you using local time storage vs S3, or? |
Here is the full stacktrace:
|
No files are created in my setup either. upgraded from 5.4.3 -> 6.0.2 and issue started occurring. |
Hi, I have found the problem. :) I guess. |
I can confirm this solution also works on our setup |
Maybe I'm missing something, but where can the PDF file of the signed EULA / Asset acceptance be viewed or downloaded? |
If you go into the History of an asset, enable the Signature and Download columns (they're off by default); |
Can confirm that once a brand logo is in use, issue no longer occurs. |
Debug mode
Describe the bug
Get the following error when accepting an asset. Have tried with and without signatures.
URL is https://track.prodigy.com.au/account/accept/12
ErrorException
getimagesize(): Read of 8192 bytes failed with errno=21 Is a directory
[14:57:44] LOG.error: ErrorException: getimagesize(): Read of 8192 bytes failed with errno=21 Is a directory in
/var/www/html/snipeit/vendor/dompdf/dompdf/src/Helpers.php:649
Reproduction steps
Expected behavior
An acceptance confirmation page?
Screenshots
Snipe-IT Version
6.0.1
Operating System
Ubuntu 22.04
Web Server
Apache
PHP Version
8.1
Operating System
Windows 10
Browser
Microsoft Edge
Version
101
Device
No response
Operating System
No response
Browser
No response
Version
No response
Error messages
Additional context
Recently upgraded from 5.4.4 to 6.0.1.
Issue occured with both PHP 7.4 and 8.1.
The text was updated successfully, but these errors were encountered: