-
-
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
Creating Gifts Fails, Contrary to UI Message #5397
Comments
I have this same problem on 3.1.3. The contact in question has 13 gifts already recorded. I create the gift, Monica reports that it's been successfully created but doesn't display it. The tab heading count of gifts does not increase -- it stays at "Gifts given (13)". These appear to be getting added to the database, though. I looked at a copy of the SQL file and all three attempts were successful in creating a database entry:
|
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
Hi @asbiin. I don’t know if #5547 does fix this – the issue I’m having still exists. I create a new gift, and it doesn’t appear. The count of ‘Gifts Given’ stays at 13. |
It solves the original issue here though. Your issue is kinda unrelated, but I can also reproduce this. Seems that the endpoint called to render the gifts is returning with a This is kinda a whole different thing though, since it is not related to the gift creation with photo upload failing. It also would require a new feature to handle that amount of gifts, like pagination. See #4739 for the related feature request. |
🎉 This issue has been resolved in version 3.3.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
This issue has been automatically locked since there |
Describe the bug
When trying to add a gift, the UI gives success message but nothing is reflected. No gift entries can be created at all. Including an image results in the logs provided below. The attached photos are stored correctly and displayed in the
Photos
tab. The UI responds with success no matter what.Screenshots
N/A
Which version are you using:
Additional context
I'm holding back the upgrade until the issue of search performance is resolved. Skimming the changes in the versions between v3.0.1 and latest, I don't see anything explicitly related to creating new gift entry. If the maintainers find relevance, I'll gladly upgrade.
Error log:
The text was updated successfully, but these errors were encountered: