-
Notifications
You must be signed in to change notification settings - Fork 11k
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
[5.3] Mailable queue class not found #15065
Comments
Unable to regenerate the issue on a fresh laravel 5.3 installation, however you seem to be using the sync queue driver rather than the database driver though. |
Please make sure you restart the queue worker after upgrading. |
@themsaid I just changed my |
I suspect something in your Mail object is causing |
If the payload is still zero it means |
The strange thing is, when I call |
You need debug at this line: https://github.com/laravel/framework/blob/5.3/src/Illuminate/Queue/Queue.php#L78 |
What is a solution @JValck ? |
In my case the problem was related to malformed UTF-8 from my database.
So I fixed it by overriding the toJson method.
Unfortunately, the problem reoccurs in L5.4. So I'm investigating it again.
|
Hi @JValck , I'm using 5.4 and my problem was because my models using UUID in binary.
|
Strange, I also use the same package (latest version) for the UUID.
Unfortunately in my case the problem still occurs, as I have invalid characters.
So I started investigating the whole code. It seems to be the case that the toArray() method from the trait is never called.
Did you add the toArray() function in each of your models?
|
I'm add this method to my User model, its using UUID traits and this method is the same of the trait (https://github.com/alsofronie/eloquent-uuid/blob/master/src/UuidBinaryModelTrait.php#L93-L97):
|
I have the same in my models. Currently I've a problem with encoding them to add them to the queue. I noticed that the What is the error that you received? Maybe I'm encountering another issue than you. |
In my case the serialization process cause error.
|
I just upgraded from laravel 5.2 to laravel 5.3
Currently I have troubles with the Mailables.
I always receive the
ReflectionException
Class not found
. The strange thing is that, when I try sending the mail directly (without queuing), no problems occur.I reviewed the jobs table in my database, as I am using the database queuing driver. But that doesn't seems to be the issue.
Here is the full stacktrace:
My mailable class:
And finally, the call to send the e-mail:
Mail::to($visitor->email)->queue(new OrderReceived($visitor, $event, $event->organisation()->first(), $humanBankingCode));
The issue seems to be related to the
queue
method, as thesend
method does not throw the exception.The text was updated successfully, but these errors were encountered: