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

ErrorException: Method ReflectionParameter::getClass() is deprecated #64

Closed
ereznet opened this issue Apr 12, 2021 · 9 comments
Closed

Comments

@ereznet
Copy link

ereznet commented Apr 12, 2021

php -v

PHP 8.0.3 (cli) (built: Mar 29 2021 22:51:16) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.3, Copyright (c) Zend Technologies
with Zend OPcache v8.0.3, Copyright (c), by Zend Technologies

php artisan --version

Laravel Framework 8.34.0

ErrorException

[2021-04-09T14:33:31.837166+00:00] CKFinder.WARNING: ErrorException: Method ReflectionParameter::getClass() is deprecated in /home//domains/XXX/public_html/vendor/ckfinder/ckfinder-laravel-package/_connector/ArgumentResolver.php:65 Stack trace: #0 /home/domains/XXX/public_html/vendor/ckfinder/ckfinder-laravel-package/_connector/ArgumentResolver.php(65): CKSource\CKFinder\ExceptionHandler->errorHandler(8192, 'Method Reflecti...', '/home/...', 65) #1 /home/domains/XXX/public_html/vendor/symfony/http-kernel/HttpKernel.php(149): CKSource\CKFinder\ArgumentResolver->getArguments(Object(Illuminate\Http\Request), Array) #2 /home/domains/XXX/public_html/vendor/symfony/http-kernel/HttpKernel.php(79): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Illuminate\Http\Request), 1) #3 /home/domains/XXX/public_html/vendor/ckfinder/ckfinder-laravel-package/_connector/CKFinder.php(515): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Illuminate\Http\Request), 1, false) #4 /home/domains/XXX/public_html/vendor/ckfinder/ckfinder-laravel-package/src/Controller/CKFinderController.php(48): CKSource\CKFinder\CKFinder->handle(Object(Illuminate\Http\Request), 1, false) #5 /home/domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): CKSource\CKFinderBridge\Controller\CKFinderController->requestAction(Object(Illuminate\Foundation\Application), Object(Illuminate\Http\Request)) #6 /home/domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45): Illuminate\Routing\Controller->callAction('requestAction', Array) #7 /home/domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Routing/Route.php(254): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(CKSource\CKFinderBridge\Controller\CKFinderController), 'requestAction') #8 /home/domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Routing/Route.php(197): Illuminate\Routing\Route->runController() #9 /home/domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(693): Illuminate\Routing\Route->run() #10 /home/domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\Routing\Router->Illuminate\Routing{closure}(Object(Illuminate\Http\Request)) #11 /home//domains/XXX/public_html/app/Http/Middleware/CustomCKFinderAuth.php(26): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request)) #12 /home//domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): App\Http\Middleware\CustomCKFinderAuth->handle(Object(Illuminate\Http\Request), Object(Closure)) #13 /home//domains/XXX/public_html/app/Http/Middleware/CustomCKFinderAuth.php(26): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request)) #14 /home//domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): App\Http\Middleware\CustomCKFinderAuth->handle(Object(Illuminate\Http\Request), Object(Closure)) #15 /home//domains/XXX/public_html/vendor/renatomarinho/laravel-page-speed/src/Middleware/PageSpeed.php(30): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request)) #16 /home//domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): RenatoMarinho\LaravelPageSpeed\Middleware\PageSpeed->handle(Object(Illuminate\Http\Request), Object(Closure)) #17 /home//domains/XXX/public_html/vendor/renatomarinho/laravel-page-speed/src/Middleware/PageSpeed.php(30): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request)) #18 /home//domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): RenatoMarinho\LaravelPageSpeed\Middleware\PageSpeed->handle(Object(Illuminate\Http\Request), Object(Closure)) #19 /home//domains/XXX/public_html/vendor/renatomarinho/laravel-page-speed/src/Middleware/PageSpeed.php(30): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request)) #20 /home//domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): RenatoMarinho\LaravelPageSpeed\Middleware\PageSpeed->handle(Object(Illuminate\Http\Request), Object(Closure)) #21 /home//domains/XXX/public_html/vendor/renatomarinho/laravel-page-speed/src/Middleware/PageSpeed.php(30): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request)) #22 /home//domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): RenatoMarinho\LaravelPageSpeed\Middleware\PageSpeed->handle(Object(Illuminate\Http\Request), Object(Closure)) #23 /home//domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request)) #24 /home//domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure)) #25 /home//domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request)) #26 /home//domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Closure)) #27 /home//domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request)) #28 /home//domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure)) #29 /home//domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request)) #30 /home//domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\Session\Middleware\StartSession->handleStatefulRequest(Object(Illuminate\Http\Request), Object(Illuminate\Session\Store), Object(Closure)) #31 /home//domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure)) #32 /home//domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request)) #33 /home//domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure)) #34 /home//domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request)) #35 /home//domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure)) #36 /home//domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request)) #37 /home//domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(695): Illuminate\Pipeline\Pipeline->then(Object(Closure)) #38 /home//domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(670): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request)) #39 /home//domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(636): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route)) #40 /home//domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(625): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request)) #41 /home//domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(166): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request)) #42 /home//domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http{closure}(Object(Illuminate\Http\Request)) #43 /home//domains/XXX/public_html/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php(67): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request)) #44 /home//domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Barryvdh\Debugbar\Middleware\InjectDebugbar->handle(Object(Illuminate\Http\Request), Object(Closure)) #45 /home//domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request)) #46 /home//domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure)) #47 /home//domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request)) #48 /home//domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure)) #49 /home//domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request)) #50 /home//domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure)) #51 /home//domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request)) #52 /home//domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure)) #53 /home//domains/XXX/public_html/vendor/fruitcake/laravel-cors/src/HandleCors.php(37): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request)) #54 /home//domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Fruitcake\Cors\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure)) #55 /home//domains/XXX/public_html/vendor/fideloper/proxy/src/TrustProxies.php(57): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request)) #56 /home//domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Fideloper\Proxy\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure)) #57 /home//domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request)) #58 /home//domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(141): Illuminate\Pipeline\Pipeline->then(Object(Closure)) #59 /home//domains/XXX/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(110): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request)) #60 /home//domains/XXX/public_html/index.php(52): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request)) #61 {main} [] []

@koptelovav
Copy link

I have the same issue

@koptelovav
Copy link

koptelovav commented Apr 15, 2021

I found the problem in ArgumentResolver:65. Need to replace $reflectionClass = new \ReflectionClass($param->getType()->getName()

@d4rkr3pt0r
Copy link

I found the problem in ArgumentResolver:65. Need to replace $reflectionClass = new \ReflectionClass($param->getType()->getName()

Same issue here but changing files inside vendor folder is not a good idea. Hope they update the package soon.

@ereznet
Copy link
Author

ereznet commented Aug 10, 2021 via email

@sebastiansulinski
Copy link

Got reply from CKSource saying they will try to fix it within a couple of days 🤞

@zaak
Copy link
Member

zaak commented Aug 20, 2021

@ereznet: Thank you for detailed report, it was very helpful. The issue has been fixed in the latest version.

@zaak zaak closed this as completed Aug 20, 2021
@sebastiansulinski
Copy link

@zaak which version is it exactly please? I've tried ^3.5.2.1 but getting error saying

Root composer.json requires ckfinder/ckfinder-laravel-package ^3.5.2.1, found ckfinder/ckfinder-laravel-package[dev-master, v3.4.4, ..., v3.5.2] but it does not match the constraint.

When freshly installing the package and then loading it within Laravel I'm back to error 110 Unknown error.

@zaak
Copy link
Member

zaak commented Sep 1, 2021

@sebastiansulinski: Oops, sorry. Looks like Packagist's auto-update did not fetch the new version for some reason. Please try now.

@sebastiansulinski
Copy link

Thanks @zaak

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

5 participants