Skip to content
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

Null Uuid when retrieving balance #539

Closed
Zero-jano opened this issue Aug 4, 2022 · 9 comments
Closed

Null Uuid when retrieving balance #539

Zero-jano opened this issue Aug 4, 2022 · 9 comments
Assignees
Labels
question Further information is requested

Comments

@Zero-jano
Copy link

Describe your task
Null Uuid when retrieving balance in blade or control class

Trace Error
Bavix\Wallet\Services\RegulatorService::getKey(): Argument #1 ($uuid) must be of type string, null given, called in project/vendor/bavix/laravel-wallet/src/Services/RegulatorService.php on line 45

Screenshots

Screen Shot 2022-08-04 at 1 44 19 PM

Server:

  • php version: 8.0
  • database: mysql 8.0
  • wallet version 8.4

Additional context
I update everything in class and config but still not fix

@Zero-jano Zero-jano added the question Further information is requested label Aug 4, 2022
@rez1dent3
Copy link
Member

Hello.

  1. User ID of type int?
  2. Is the user exactly stored in the database?

@Zero-jano
Copy link
Author

it was working before in version 8 but when to upgrade to 9 this issue occurs

@rez1dent3
Copy link
Member

Describe the problem in detail. At the moment, I don't understand what to check.

@Zero-jano
Copy link
Author

This issue occur because I upgrade the laravel-wallet from 8 to 9 version because I upgraded also laravel version to 9 but before was worked fine

@rez1dent3
Copy link
Member

I need code examples to reproduce the problem. I don't see such a problem.

@Zero-jano
Copy link
Author

this code was working before but when upgrading the version of wallet from 8 to 9 , do you get like this issue when some when was working in version 8 and upgrade to 9 ????

@rez1dent3
Copy link
Member

When switching to 9.x, strong typing was added. Your code may not have worked correctly before.
It's hard for me to judge the correctness of code without code.

@Zero-jano
Copy link
Author

Thank you but I found the issue, that was in the database need to add a UUID column in the wallet table

@rez1dent3
Copy link
Member

Yes, I forgot about this. Thank you for report

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants