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

Class \"Illuminate\\Foundation\\Bus\\PendingChain\" not found #899

Open
ghost opened this issue May 19, 2023 · 3 comments
Open

Class \"Illuminate\\Foundation\\Bus\\PendingChain\" not found #899

ghost opened this issue May 19, 2023 · 3 comments

Comments

@ghost
Copy link

ghost commented May 19, 2023

  • Themosis Version: dev-main
  • WordPress Version: 6.2
  • PHP Version: 8.0

Description

al usar las queue me sale el siguiente error:

=> Class "Illuminate\Foundation\Bus\PendingChain" not found

Steps to reproduce

Bus::chain([ new ProcessEnviarCotizacion(array( "TEST" => "")), new ProcessEliminarPdfCotizacion, ])->dispatch();

Expected behavior

Poder seguir las funciones normales de laravel

@ghost
Copy link
Author

ghost commented May 20, 2023

Actualice la versión de themosis a la 3.1 y me sigue apareciendo el mismo error

@ghost
Copy link
Author

ghost commented May 20, 2023

adjunto log

{ "message": "Class \"Illuminate\\Foundation\\Bus\\PendingChain\" not found", "exception": "Error", "file": "E:\\wamp64\\www\\proyecto\\themosis\\vendor\\illuminate\\bus\\Dispatcher.php", "line": 167, "trace": [ { "file": "E:\\wamp64\\www\\proyecto\\themosis\\vendor\\illuminate\\support\\Facades\\Facade.php", "line": 261, "function": "chain", "class": "Illuminate\\Bus\\Dispatcher", "type": "->" }, { "file": "E:\\wamp64\\www\\proyecto\\themosis\\app\\Http\\Controllers\\ApiMittaGo\\ControllerMail.php", "line": 38, "function": "__callStatic", "class": "Illuminate\\Support\\Facades\\Facade", "type": "::" }, { "file": "E:\\wamp64\\www\\proyecto\\themosis\\vendor\\illuminate\\routing\\Controller.php", "line": 54, "function": "sendQuote", "class": "App\\Http\\Controllers\\ApiMittaGo\\ControllerMail", "type": "->" }, { "file": "E:\\wamp64\\www\\proyecto\\themosis\\vendor\\illuminate\\routing\\ControllerDispatcher.php", "line": 45, "function": "callAction", "class": "Illuminate\\Routing\\Controller", "type": "->" }, { "file": "E:\\wamp64\\www\\proyecto\\themosis\\vendor\\illuminate\\routing\\Route.php", "line": 262, "function": "dispatch", "class": "Illuminate\\Routing\\ControllerDispatcher", "type": "->" }, { "file": "E:\\wamp64\\www\\proyecto\\themosis\\vendor\\illuminate\\routing\\Route.php", "line": 205, "function": "runController", "class": "Illuminate\\Routing\\Route", "type": "->" }, { "file": "E:\\wamp64\\www\\proyecto\\themosis\\vendor\\illuminate\\routing\\Router.php", "line": 721, "function": "run", "class": "Illuminate\\Routing\\Route", "type": "->" }, { "file": "E:\\wamp64\\www\\proyecto\\themosis\\vendor\\illuminate\\pipeline\\Pipeline.php", "line": 128, "function": "Illuminate\\Routing\\{closure}", "class": "Illuminate\\Routing\\Router", "type": "->" }, { "file": "E:\\wamp64\\www\\proyecto\\themosis\\vendor\\themosis\\framework\\src\\Core\\Http\\Middleware\\VerifyCsrfToken.php", "line": 68, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "E:\\wamp64\\www\\proyecto\\themosis\\vendor\\illuminate\\pipeline\\Pipeline.php", "line": 167, "function": "handle", "class": "Themosis\\Core\\Http\\Middleware\\VerifyCsrfToken", "type": "->" }, { "file": "E:\\wamp64\\www\\proyecto\\themosis\\vendor\\illuminate\\routing\\Middleware\\SubstituteBindings.php", "line": 50, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "E:\\wamp64\\www\\proyecto\\themosis\\vendor\\illuminate\\pipeline\\Pipeline.php", "line": 167, "function": "handle", "class": "Illuminate\\Routing\\Middleware\\SubstituteBindings", "type": "->" }, { "file": "E:\\wamp64\\www\\proyecto\\themosis\\vendor\\illuminate\\view\\Middleware\\ShareErrorsFromSession.php", "line": 49, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "E:\\wamp64\\www\\proyecto\\themosis\\vendor\\illuminate\\pipeline\\Pipeline.php", "line": 167, "function": "handle", "class": "Illuminate\\View\\Middleware\\ShareErrorsFromSession", "type": "->" }, { "file": "E:\\wamp64\\www\\proyecto\\themosis\\vendor\\illuminate\\session\\Middleware\\StartSession.php", "line": 121, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "E:\\wamp64\\www\\proyecto\\themosis\\vendor\\illuminate\\session\\Middleware\\StartSession.php", "line": 64, "function": "handleStatefulRequest", "class": "Illuminate\\Session\\Middleware\\StartSession", "type": "->" }, { "file": "E:\\wamp64\\www\\proyecto\\themosis\\vendor\\illuminate\\pipeline\\Pipeline.php", "line": 167, "function": "handle", "class": "Illuminate\\Session\\Middleware\\StartSession", "type": "->" }, { "file": "E:\\wamp64\\www\\proyecto\\themosis\\vendor\\illuminate\\routing\\Middleware\\ThrottleRequests.php", "line": 127, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "E:\\wamp64\\www\\proyecto\\themosis\\vendor\\illuminate\\routing\\Middleware\\ThrottleRequests.php", "line": 63, "function": "handleRequest", "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests", "type": "->" }, { "file": "E:\\wamp64\\www\\proyecto\\themosis\\vendor\\illuminate\\pipeline\\Pipeline.php", "line": 167, "function": "handle", "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests", "type": "->" }, { "file": "E:\\wamp64\\www\\proyecto\\themosis\\vendor\\illuminate\\pipeline\\Pipeline.php", "line": 103, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "E:\\wamp64\\www\\proyecto\\themosis\\vendor\\illuminate\\routing\\Router.php", "line": 723, "function": "then", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "E:\\wamp64\\www\\proyecto\\themosis\\vendor\\illuminate\\routing\\Router.php", "line": 698, "function": "runRouteWithinStack", "class": "Illuminate\\Routing\\Router", "type": "->" }, { "file": "E:\\wamp64\\www\\proyecto\\themosis\\vendor\\illuminate\\routing\\Router.php", "line": 662, "function": "runRoute", "class": "Illuminate\\Routing\\Router", "type": "->" }, { "file": "E:\\wamp64\\www\\proyecto\\themosis\\vendor\\illuminate\\routing\\Router.php", "line": 651, "function": "dispatchToRoute", "class": "Illuminate\\Routing\\Router", "type": "->" }, { "file": "E:\\wamp64\\www\\proyecto\\themosis\\vendor\\themosis\\framework\\src\\Core\\Http\\Kernel.php", "line": 168, "function": "dispatch", "class": "Illuminate\\Routing\\Router", "type": "->" }, { "file": "E:\\wamp64\\www\\proyecto\\themosis\\vendor\\illuminate\\pipeline\\Pipeline.php", "line": 128, "function": "Themosis\\Core\\Http\\{closure}", "class": "Themosis\\Core\\Http\\Kernel", "type": "->" }, { "file": "E:\\wamp64\\www\\proyecto\\themosis\\app\\Http\\Middleware\\AddHeaderForSecurity.php", "line": 19, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "E:\\wamp64\\www\\proyecto\\themosis\\vendor\\illuminate\\pipeline\\Pipeline.php", "line": 167, "function": "handle", "class": "App\\Http\\Middleware\\AddHeaderForSecurity", "type": "->" }, { "file": "E:\\wamp64\\www\\proyecto\\themosis\\vendor\\illuminate\\pipeline\\Pipeline.php", "line": 103, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "E:\\wamp64\\www\\proyecto\\themosis\\vendor\\themosis\\framework\\src\\Core\\Http\\Kernel.php", "line": 154, "function": "then", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "E:\\wamp64\\www\\proyecto\\themosis\\vendor\\themosis\\framework\\src\\Core\\Http\\Kernel.php", "line": 114, "function": "sendRequestThroughRouter", "class": "Themosis\\Core\\Http\\Kernel", "type": "->" }, { "file": "E:\\wamp64\\www\\proyecto\\themosis\\vendor\\themosis\\framework\\src\\Core\\Application.php", "line": 1456, "function": "handle", "class": "Themosis\\Core\\Http\\Kernel", "type": "->" }, { "file": "E:\\wamp64\\www\\proyecto\\themosis\\htdocs\\content\\themes\\mittago_v1\\index.php", "line": 15, "function": "manage", "class": "Themosis\\Core\\Application", "type": "->" }, { "file": "E:\\wamp64\\www\\proyecto\\themosis\\htdocs\\cms\\wp-includes\\template-loader.php", "line": 106, "function": "include" }, { "file": "E:\\wamp64\\www\\proyecto\\themosis\\htdocs\\cms\\wp-blog-header.php", "line": 19, "function": "require_once" }, { "file": "E:\\wamp64\\www\\proyecto\\themosis\\htdocs\\index.php", "line": 11, "function": "require" } ] }

@ghost
Copy link
Author

ghost commented May 23, 2023

definitivamente, el marcho de themosis esta bien pero no he podido lograr encadenar varios jobs por ejemplo intenten un metodo brusco de encadenar

ProcessGenerarPDF::dispatch()->after(function($job){})

[2023-05-23 00:27:46] local.ERROR: Call to undefined method App\Jobs\ProcessGenerarPDF::after() {"userId":null,"email":null,"exception":"[object] (Error(code: 0): Call to undefined method App\Jobs\ProcessGenerarPDF::after() at themosis\vendor\themosis\framework\src\Core\Bus\PendingDispatch.php:186

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants