spatie/laravel-personal-data-export

Error when creating new export

schmidfelix opened this issue · 1 comments

Hello,

I'm getting the following error if i try to run
dispatch(new CreatePersonalDataExportJob(auth()->user()));

[2020-09-04 15:25:12] local.ERROR: method_exists(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "Spatie\PersonalDataExport\Jobs\CreatePersonalDataExportJob" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide an autoloader to load the class definition {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): method_exists(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition \"Spatie\\PersonalDataExport\\Jobs\\CreatePersonalDataExportJob\" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide an autoloader to load the class definition at /Users/felixschmid/sites/freelancer-crm/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php:173) [stacktrace] #0 {main} "}

My user class implements ExportsPersonalData.

Best regards

My fault, i forgot to restart horizon... sorry