-
Notifications
You must be signed in to change notification settings - Fork 49
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
MailQueue->process(): message contained attachment cannot be unsearilzed #32
Comments
Can't figure out the issue with the details provided. Did you try updating your |
HI! Issue is: when I've put message to queue using code above, message cannot be sent using yii mailqueue/process - error occurred. |
Same problem here, I've queued a message with a pdf as an attachment. I get unserialize(): Error at offset 49139 of 49151 bytes. In yii2-mailqueue/models/Queue.php:70 |
Some success on this: It seems that the swiftmessage is stored in a TEXT column, which truncates the serialized object. I converted the column to LONGBLOB and now this error is gone. However, now I get a SWIFT_IoException 'Unable to open file for reading[/tmp/MYFILE]' where MYFILE was the location of the original file I attached to this message. Looks like the swiftmailer is still looking for it there for some reason. |
Found a solution to the attachment problem: |
same problem here if use |
Fixed with pull request #37 |
yii mailqueue/process
PHP Notice 'yii\base\ErrorException' with message 'unserialize(): Error at offset 49151 of 49151 bytes'
in /app/vendor/nterms/yii2-mailqueue/models/Queue.php:70
have following code:
View:
The text was updated successfully, but these errors were encountered: