-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
When trying to upload a gift image, I get a stack trace in my log, and the image doesn't upload. #5516
Comments
Not using docker, but maybe you can try this way: #5257 (comment) |
Same issue on 3.2.0. Upon uploading a photo to a gift. (editing the gift actually, not creating). Stacktrace is the same though. The photo is uploaded and connected to the gift though. Seems that just the generation of the I think this is due to the fact that Likely fixable like this:
|
Attempting to connect a photo to a gift, either an already existing one or a freshly uploaded one, the AJAX call would return a 500 server error. The error states of a `Attempt to read property "id" on null` in `app\Http\Resources\Gift/Gift` line 24. This is causes by attempting to use a void result of `AssociatePhotoToGift` service in `ApiGiftController::associate()` method. Fixed by returning the actual `$gift` variable worked on, similar to the related services. This does fix the *stacktrace* in monicahq#5516, but not the issue itself. The issue there is likely unrelated to the stacktrace. Fixes monicahq#5397
Attempting to connect a photo to a gift, either an already existing one or a freshly uploaded one, the AJAX call would return a 500 server error. The error states of a `Attempt to read property "id" on null` in `app\Http\Resources\Gift/Gift` line 24. This is causes by attempting to use a void result of `AssociatePhotoToGift` service in `ApiGiftController::associate()` method. Fixed by returning the actual `$gift` variable worked on, similar to the related services. This does fix the *stacktrace* in monicahq#5516, but not the issue itself. The issue there is likely unrelated to the stacktrace. Fixes monicahq#5397
Attempting to connect a photo to a gift, either an already existing one or a freshly uploaded one, the AJAX call would return a 500 server error. The error states of a `Attempt to read property "id" on null` in `app\Http\Resources\Gift/Gift` line 24. This is causes by attempting to use a void result of `AssociatePhotoToGift` service in `ApiGiftController::associate()` method. Fixed by returning the actual `$gift` variable worked on, similar to the related services. This does fix the *stacktrace* in monicahq#5516, but not the issue itself. The issue there is likely unrelated to the stacktrace. Fixes monicahq#5397
Attempting to connect a photo to a gift, either an already existing one or a freshly uploaded one, the AJAX call would return a 500 server error. The error states of a `Attempt to read property "id" on null` in `app\Http\Resources\Gift/Gift` line 24. This is causes by attempting to use a void result of `AssociatePhotoToGift` service in `ApiGiftController::associate()` method. Fixed by returning the actual `$gift` variable worked on, similar to the related services. This does fix the *stacktrace* in #5516, but not the issue itself. The issue there is likely unrelated to the stacktrace. Fixes #5397
🎉 This issue has been resolved in version 3.4.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
This issue has been automatically locked since there |
Describe the bug
Click on Gifts Given -> Add a gift, provide the item's name, select "Photo (optional)", click on "upload" and select an image, click "add". No image listed, and the following stack trace provided in
data/logs/laravel-yyyy-mm-dd.log
. Note that this is running in Docker, with a docker-compose file. I previously enabled "Redis", but seeing other issues similar to this, I removed redis from the file, and diddocker-compose down ; docker-compose up -d
- the issue still occurs.The text was updated successfully, but these errors were encountered: