jdavidbakr / mail-tracker

Package for Laravel to inject tracking code into outgoing emails.
MIT License
567 stars 129 forks source link

The script tried to call a method on an incomplete objec #191

Closed UtkuDalmaz closed 2 years ago

UtkuDalmaz commented 2 years ago

I set up everything created SNS topic and subscribe to the URL

When an SMS is sent from laravel I get tens of that errors in the logs

{ "class": "Error", "message": "The script tried to call a method on an incomplete object. Please ensure that the class definition \"jdavidbakr\MailTracker\RecordDeliveryJob\" of the object you are trying to operate on was loaded before unserialize() gets called or provide an autoloader to load the class definition", "code": 0, "file": "/.../vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php:117", "trace": [ "/.../vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php:117", "/..../vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php:70", "/.../vendor/laravel/framework/src/Illuminate/Queue/Jobs/Job.php:98",

I am on Laravel 8 and mail tracker 5.0.9

How can I fix this issue?