-
Notifications
You must be signed in to change notification settings - Fork 57
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
Integrity constraint violation: 1048 Column 'name' cannot be null. #266
Comments
Hey there, thanks for reporting this issue. We'll need more info and/or code to debug this further. Can you please create a repository with the command below, commit the code that reproduces the issue as one separate commit on the main/master branch and share the repository here? Please make sure that you have the latest version of the Laravel installer in order to run this command. Please also make sure you have both Git & the GitHub CLI tool properly set up.
Do not amend and create a separate commit with your custom changes. After you've posted the repository, we'll try to reproduce the issue. Thanks! |
Hey @crynobone , thanks for responding, I have created the repository for reproducing the bug. You will need though a google app with api keys and also paddle sandbox store. Here's the link : https://github.com/bluzeey/bug-report. The last commit has everything pertaining to the issue i am facing. Feel free to let me know how i can assist further |
Please refer to https://laravel.com/docs/11.x/queues#jobs-and-database-transactions and the documentation regarding |
Hi there, Thanks for reporting the problem you are encountering, but it looks like this is a question which may be better suited for a support channel. We only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repository you can try one of the following channels: However, this issue will not be locked and everyone is still free to discuss solutions to your problem! Thanks. |
I encountered the same error too: I found out that there is no name stored in the customer's Paddle dashboard. If I add a name to it manually, it gets resolved. I created a PR for this to be gracefully handled here: |
@doncadavona Apologies, so the way I resolved this was that , I created the customer first and saved it in user. And then created the checkout , that had solved my error. |
Thanks @bluzeey . For the others, you may run See Merge Request |
Hey @doncadavona , I had updated the cashier paddle to 2.5.1 , I am facing some other error. But not facing the name to be null |
Cashier Paddle Version
2.4
Laravel Version
11.2.0
PHP Version
8.2
Database Driver & Version
My SQL 8.0 for MacOS ( Homebrew)
Description
I am creating a user when i login them through Socialite. Here's the controller function.
However the checkout function which I have used. Keeps on throwing this error while creating the customer. Here's what i get for example. I have cross checked my functions twice. But the user has all the attributes.
:
"SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'name' cannot be null (Connection: mysql, SQL: insert into
customers
(billable_id
,billable_type
,paddle_id
,name
,email
,trial_ends_at
,updated_at
,created_at
) values (1, App\Models\User, ctm_01j1f4eqj4mv97kgsdpb0w2836, ?, [email protected], ?, 2024-07-09 21:01:04, 2024-07-09 21:01:04))"The text was updated successfully, but these errors were encountered: