et-nik/gameap

Call to undefined method Gameap\Models\GameMod::isValid()

SugarD-x opened this issue · 3 comments

When clicking the button titled "Upgrade Games" in the Games list, the following error is thrown after confirming you want to update the game list:

BadMethodCallException thrown with message "Call to undefined method Gameap\Models\GameMod::isValid()"

Stacktrace:
#64 BadMethodCallException in \vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:50
#63 Illuminate\Database\Eloquent\Model:throwBadMethodCallException in \vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:36
#62 Illuminate\Database\Eloquent\Model:forwardCallTo in \vendor\laravel\framework\src\Illuminate\Database\Eloquent\Model.php:1618
#61 Illuminate\Database\Eloquent\Model:__call in \app\Repositories\GameRepository.php:63
#60 Gameap\Repositories\GameRepository:upgradeFromRepo in \app\Http\Controllers\Admin\GamesController.php:111
#59 Gameap\Http\Controllers\Admin\GamesController:upgrade in \vendor\laravel\framework\src\Illuminate\Routing\Controller.php:54
#58 call_user_func_array in \vendor\laravel\framework\src\Illuminate\Routing\Controller.php:54
#57 Illuminate\Routing\Controller:callAction in \vendor\laravel\framework\src\Illuminate\Routing\ControllerDispatcher.php:45
#56 Illuminate\Routing\ControllerDispatcher:dispatch in \vendor\laravel\framework\src\Illuminate\Routing\Route.php:219
#55 Illuminate\Routing\Route:runController in \vendor\laravel\framework\src\Illuminate\Routing\Route.php:176
#54 Illuminate\Routing\Route:run in \vendor\laravel\framework\src\Illuminate\Routing\Router.php:680
#53 Illuminate\Routing\Router:Illuminate\Routing\{closure} in \vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:30
#52 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in \app\Http\Middleware\AdminMiddleware.php:24
#51 Gameap\Http\Middleware\AdminMiddleware:handle in \vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:163
#50 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in \vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:53
#49 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in \vendor\laravel\framework\src\Illuminate\Routing\Middleware\SubstituteBindings.php:41
#48 Illuminate\Routing\Middleware\SubstituteBindings:handle in \vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:163
#47 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in \vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:53
#46 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in \vendor\laravel\framework\src\Illuminate\Auth\Middleware\Authenticate.php:43
#45 Illuminate\Auth\Middleware\Authenticate:handle in \vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:163
#44 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in \vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:53
#43 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in \vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\VerifyCsrfToken.php:75
#42 Illuminate\Foundation\Http\Middleware\VerifyCsrfToken:handle in \vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:163
#41 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in \vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:53
#40 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in \vendor\laravel\framework\src\Illuminate\View\Middleware\ShareErrorsFromSession.php:49
#39 Illuminate\View\Middleware\ShareErrorsFromSession:handle in \vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:163
#38 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in \vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:53
#37 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in \vendor\laravel\framework\src\Illuminate\Session\Middleware\StartSession.php:56
#36 Illuminate\Session\Middleware\StartSession:handle in \vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:163
#35 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in \vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:53
#34 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in \vendor\laravel\framework\src\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse.php:37
#33 Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse:handle in \vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:163
#32 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in \vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:53
#31 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in \vendor\laravel\framework\src\Illuminate\Cookie\Middleware\EncryptCookies.php:66
#30 Illuminate\Cookie\Middleware\EncryptCookies:handle in \vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:163
#29 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in \vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:53
#28 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in \vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:104
#27 Illuminate\Pipeline\Pipeline:then in \vendor\laravel\framework\src\Illuminate\Routing\Router.php:682
#26 Illuminate\Routing\Router:runRouteWithinStack in \vendor\laravel\framework\src\Illuminate\Routing\Router.php:657
#25 Illuminate\Routing\Router:runRoute in \vendor\laravel\framework\src\Illuminate\Routing\Router.php:623
#24 Illuminate\Routing\Router:dispatchToRoute in \vendor\laravel\framework\src\Illuminate\Routing\Router.php:612
#23 Illuminate\Routing\Router:dispatch in \vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:176
#22 Illuminate\Foundation\Http\Kernel:Illuminate\Foundation\Http\{closure} in \vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:30
#21 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in \vendor\barryvdh\laravel-debugbar\src\Middleware\InjectDebugbar.php:65
#20 Barryvdh\Debugbar\Middleware\InjectDebugbar:handle in \vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:163
#19 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in \vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:53
#18 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in \vendor\fideloper\proxy\src\TrustProxies.php:57
#17 Fideloper\Proxy\TrustProxies:handle in \vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:163
#16 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in \vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:53
#15 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in \vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\TransformsRequest.php:21
#14 Illuminate\Foundation\Http\Middleware\TransformsRequest:handle in \vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:163
#13 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in \vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:53
#12 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in \vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\TransformsRequest.php:21
#11 Illuminate\Foundation\Http\Middleware\TransformsRequest:handle in \vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:163
#10 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in \vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:53
#9 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in \vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\ValidatePostSize.php:27
#8 Illuminate\Foundation\Http\Middleware\ValidatePostSize:handle in \vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:163
#7 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in \vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:53
#6 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in \vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode.php:62
#5 Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode:handle in \vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:163
#4 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in \vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:53
#3 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in \vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:104
#2 Illuminate\Pipeline\Pipeline:then in \vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:151
#1 Illuminate\Foundation\Http\Kernel:sendRequestThroughRouter in \vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:116
#0 Illuminate\Foundation\Http\Kernel:handle in \public\index.php:55

I'm using a recent copy from the GitHub repository on Windows Server 2016 x64, with PHP 7.4.2 and Composer installed.

Sorry, it tried to link numerous other bug reports to this one through bug ID mentions in GitHub because the code box broke.

Thanks for any reports.

isValid bug fixed in commit -- 8d5cba9

Awesome! Thank you!