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

TotalsRow throwing FatalThrowableError #218

Open
cawecoy opened this issue Apr 24, 2020 · 0 comments
Open

TotalsRow throwing FatalThrowableError #218

cawecoy opened this issue Apr 24, 2020 · 0 comments

Comments

@cawecoy
Copy link

cawecoy commented Apr 24, 2020

Hi.

I am getting the error bellow when using TotalsRow just like in your example4.

Symfony\Component\Debug\Exception\FatalThrowableError thrown with message "Type error: Argument 1 passed to Nayjest\Grids\Components\TotalsRow::Nayjest\Grids\Components\{closure}() must be an instance of Nayjest\Grids\DataRow, instance of Nayjest\Grids\EloquentDataProvider given, called in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php on line 350"

Stacktrace:
#70 Symfony\Component\Debug\Exception\FatalThrowableError in /home/vagrant/Code/mylaravelapp/vendor/nayjest/grids/src/Components/TotalsRow.php:79
#69 Nayjest\Grids\Components\TotalsRow:Nayjest\Grids\Components\{closure} in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php:350
#68 Illuminate\Events\Dispatcher:Illuminate\Events\{closure} in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php:200
#67 Illuminate\Events\Dispatcher:dispatch in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php:173
#66 Illuminate\Events\Dispatcher:fire in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:221
#65 Illuminate\Support\Facades\Facade:__callStatic in /home/vagrant/Code/mylaravelapp/vendor/nayjest/grids/src/EloquentDataProvider.php:98
#64 Nayjest\Grids\EloquentDataProvider:getRow in /home/vagrant/Code/mylaravelapp/vendor/nayjest/grids/resources/views/default/grid.php:10
#63 include in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:43
#62 Illuminate\View\Engines\PhpEngine:evaluatePath in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:21
#61 Illuminate\View\Engines\PhpEngine:get in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/View/View.php:137
#60 Illuminate\View\View:getContents in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/View/View.php:120
#59 Illuminate\View\View:renderContents in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/View/View.php:85
#58 Illuminate\View\View:render in /home/vagrant/Code/mylaravelapp/vendor/nayjest/grids/src/Grid.php:207
#57 Nayjest\Grids\Grid:render in /home/vagrant/Code/mylaravelapp/app/Http/Controllers/Admin/OrderController.php:328
#56 App\Http\Controllers\Admin\OrderController:index in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54
#55 call_user_func_array in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54
#54 Illuminate\Routing\Controller:callAction in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:45
#53 Illuminate\Routing\ControllerDispatcher:dispatch in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Routing/Route.php:212
#52 Illuminate\Routing\Route:runController in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Routing/Route.php:169
#51 Illuminate\Routing\Route:run in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Routing/Router.php:658
#50 Illuminate\Routing\Router:Illuminate\Routing\{closure} in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30
#49 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/vagrant/Code/mylaravelapp/app/Http/Middleware/VerifyPermission.php:20
#48 App\Http\Middleware\VerifyPermission:handle in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149
#47 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#46 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php:41
#45 Illuminate\Routing\Middleware\SubstituteBindings:handle in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149
#44 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#43 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php:43
#42 Illuminate\Auth\Middleware\Authenticate:handle in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149
#41 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#40 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:68
#39 Illuminate\Foundation\Http\Middleware\VerifyCsrfToken:handle in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149
#38 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#37 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49
#36 Illuminate\View\Middleware\ShareErrorsFromSession:handle in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149
#35 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#34 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:63
#33 Illuminate\Session\Middleware\StartSession:handle in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149
#32 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#31 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37
#30 Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse:handle in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149
#29 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#28 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:66
#27 Illuminate\Cookie\Middleware\EncryptCookies:handle in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149
#26 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#25 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:102
#24 Illuminate\Pipeline\Pipeline:then in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Routing/Router.php:660
#23 Illuminate\Routing\Router:runRouteWithinStack in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Routing/Router.php:635
#22 Illuminate\Routing\Router:runRoute in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Routing/Router.php:601
#21 Illuminate\Routing\Router:dispatchToRoute in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Routing/Router.php:590
#20 Illuminate\Routing\Router:dispatch in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:176
#19 Illuminate\Foundation\Http\Kernel:Illuminate\Foundation\Http\{closure} in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30
#18 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/vagrant/Code/mylaravelapp/vendor/fideloper/proxy/src/TrustProxies.php:56
#17 Fideloper\Proxy\TrustProxies:handle in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149
#16 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#15 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:30
#14 Illuminate\Foundation\Http\Middleware\TransformsRequest:handle in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149
#13 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#12 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:30
#11 Illuminate\Foundation\Http\Middleware\TransformsRequest:handle in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149
#10 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#9 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27
#8 Illuminate\Foundation\Http\Middleware\ValidatePostSize:handle in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149
#7 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#6 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php:46
#5 Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode:handle in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149
#4 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#3 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:102
#2 Illuminate\Pipeline\Pipeline:then in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:151
#1 Illuminate\Foundation\Http\Kernel:sendRequestThroughRouter in /home/vagrant/Code/mylaravelapp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:116
#0 Illuminate\Foundation\Http\Kernel:handle in /home/vagrant/Code/mylaravelapp/public/index.php:55

Is this a bug?

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

1 participant