Recent Topics

500 server issue running existing project



  • This is an existing project. I was facing this problem while running php artisan

    PHP Fatal error:  Uncaught ErrorException: Method ReflectionParameter::getClass() is deprecated in D:\sdk\xampp\htdocs\naturalpublic\vendor\laravel\framework\src\Illuminate\Container\Container.php:871
    Stack trace:
    #0 D:\sdk\xampp\htdocs\naturalpublic\vendor\laravel\framework\src\Illuminate\Container\Container.php(871): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(8192, 'Method Reflecti...', 'D:\\sdk\\xampp\\ht...', 871)
    #1 D:\sdk\xampp\htdocs\naturalpublic\vendor\laravel\framework\src\Illuminate\Container\Container.php(834): Illuminate\Container\Container->resolveDependencies(Array)
    #2 D:\sdk\xampp\htdocs\naturalpublic\vendor\laravel\framework\src\Illuminate\Container\Container.php(681): Illuminate\Container\Container->build('App\\Exceptions\\...')
    #3 D:\sdk\xampp\htdocs\naturalpublic\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(785): Illuminate\Container\Container->resolve('App\\Exceptions\\...', Array, false)
    #4 D:\sdk\xampp\htdocs\naturalpublic\vendor\laravel\framework\src\Illuminate\Container\Container.php(265): Illuminate\Foundation\Application->resolve('App\\Exceptions\\...', Array, false)
    #5 D:\sdk\xampp\htdocs\naturalpublic\vendor\laravel\framework\src\Illuminate\Container\Container.php(799): Illuminate\Container\Container->Illuminate\Container\{closure}(Object(Illuminate\Foundation\Application), Array)
    #6 D:\sdk\xampp\htdocs\naturalpublic\vendor\laravel\framework\src\Illuminate\Container\Container.php(681): Illuminate\Container\Container->build(Object(Closure))
    #7 D:\sdk\xampp\htdocs\naturalpublic\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(785): Illuminate\Container\Container->resolve('Illuminate\\Cont...', Array, true)
    #8 D:\sdk\xampp\htdocs\naturalpublic\vendor\laravel\framework\src\Illuminate\Container\Container.php(629): Illuminate\Foundation\Application->resolve('Illuminate\\Cont...', Array)
    #9 D:\sdk\xampp\htdocs\naturalpublic\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(770): Illuminate\Container\Container->make('Illuminate\\Cont...', Array)
    #10 D:\sdk\xampp\htdocs\naturalpublic\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php(170): Illuminate\Foundation\Application->make('Illuminate\\Cont...')
    #11 D:\sdk\xampp\htdocs\naturalpublic\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php(112): Illuminate\Foundation\Bootstrap\HandleExceptions->getExceptionHandler()
    #12 D:\sdk\xampp\htdocs\naturalpublic\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php(98): Illuminate\Foundation\Bootstrap\HandleExceptions->renderForConsole(Object(ErrorException))
    #13 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleException(Object(ErrorException))
    #14 {main}
      thrown in D:\sdk\xampp\htdocs\naturalpublic\vendor\laravel\framework\src\Illuminate\Container\Container.php on line 871
    PHP Fatal error:  Uncaught ErrorException: Method ReflectionParameter::getClass() is deprecated in D:\sdk\xampp\htdocs\naturalpublic\vendor\laravel\framework\src\Illuminate\Container\Container.php:871
    Stack trace:
    #0 D:\sdk\xampp\htdocs\naturalpublic\vendor\laravel\framework\src\Illuminate\Container\Container.php(871): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(8192, 'Method Reflecti...', 'D:\\sdk\\xampp\\ht...', 871)
    #1 D:\sdk\xampp\htdocs\naturalpublic\vendor\laravel\framework\src\Illuminate\Container\Container.php(834): Illuminate\Container\Container->resolveDependencies(Array)
    #2 D:\sdk\xampp\htdocs\naturalpublic\vendor\laravel\framework\src\Illuminate\Container\Container.php(681): Illuminate\Container\Container->build('App\\Exceptions\\...')
    #3 D:\sdk\xampp\htdocs\naturalpublic\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(785): Illuminate\Container\Container->resolve('App\\Exceptions\\...', Array, false)
    #4 D:\sdk\xampp\htdocs\naturalpublic\vendor\laravel\framework\src\Illuminate\Container\Container.php(265): Illuminate\Foundation\Application->resolve('App\\Exceptions\\...', Array, false)
    #5 D:\sdk\xampp\htdocs\naturalpublic\vendor\laravel\framework\src\Illuminate\Container\Container.php(799): Illuminate\Container\Container->Illuminate\Container\{closure}(Object(Illuminate\Foundation\Application), Array)
    #6 D:\sdk\xampp\htdocs\naturalpublic\vendor\laravel\framework\src\Illuminate\Container\Container.php(681): Illuminate\Container\Container->build(Object(Closure))
    #7 D:\sdk\xampp\htdocs\naturalpublic\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(785): Illuminate\Container\Container->resolve('Illuminate\\Cont...', Array, true)
    #8 D:\sdk\xampp\htdocs\naturalpublic\vendor\laravel\framework\src\Illuminate\Container\Container.php(629): Illuminate\Foundation\Application->resolve('Illuminate\\Cont...', Array)
    #9 D:\sdk\xampp\htdocs\naturalpublic\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(770): Illuminate\Container\Container->make('Illuminate\\Cont...', Array)
    #10 D:\sdk\xampp\htdocs\naturalpublic\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php(170): Illuminate\Foundation\Application->make('Illuminate\\Cont...')
    #11 D:\sdk\xampp\htdocs\naturalpublic\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php(112): Illuminate\Foundation\Bootstrap\HandleExceptions->getExceptionHandler()
    #12 D:\sdk\xampp\htdocs\naturalpublic\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php(98): Illuminate\Foundation\Bootstrap\HandleExceptions->renderForConsole(Object(ErrorException))
    #13 D:\sdk\xampp\htdocs\naturalpublic\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php(134): Illuminate\Foundation\Bootstrap\HandleExceptions->handleException(Object(ErrorException))
    #14 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleShutdown()
    #15 {main}
      thrown in D:\sdk\xampp\htdocs\naturalpublic\vendor\laravel\framework\src\Illuminate\Container\Container.php on line 871
    

    while running in xampp/wampp i get 500 server issue. the server logs are as follows

    [Thu Sep 30 14:17:23.119573 2021] [core:alert] [pid 8484:tid 1868] [client ::1:56601] D:/sdk/xampp/htdocs/naturalpublic/.htaccess: Invalid command 'AddOutputFilterByType', perhaps misspelled or defined by a module not included in the server configuration
    


  • This seems to be an issue with your instance. Please check proper configuration and requirements.



  • I corrected 'AddOutputFilterByType' to 'AddOutputFilter' in .htaccess but there is a same issue which i have mentioned showing in the error log

    [Fri Oct 01 12:54:59.331372 2021] [php:error] [pid 13788:tid 1852] [client ::1:55471] PHP Fatal error:  Uncaught ErrorException: Method ReflectionParameter::getClass() is deprecated in D:\\sdk\\xampp\\htdocs\\naturalpublic\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php:871\nStack trace:\n#0 D:\\sdk\\xampp\\htdocs\\naturalpublic\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php(871): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(8192, 'Method Reflecti...', 'D:\\\\sdk\\\\xampp\\\\ht...', 871)\n#1 D:\\sdk\\xampp\\htdocs\\naturalpublic\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php(834): Illuminate\\Container\\Container->resolveDependencies(Array)\n#2 D:\\sdk\\xampp\\htdocs\\naturalpublic\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php(681): Illuminate\\Container\\Container->build('App\\\\Exceptions\\\\...')\n#3 D:\\sdk\\xampp\\htdocs\\naturalpublic\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Application.php(785): Illuminate\\Container\\Container->resolve('App\\\\Exceptions\\\\...', Array, false)\n#4 D:\\sdk\\xampp\\htdocs\\naturalpublic\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php(265): Illuminate\\Foundation\\Application->resolve('App\\\\Exceptions\\\\...', Array, false)\n#5 D:\\sdk\\xampp\\htdocs\\naturalpublic\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php(799): Illuminate\\Container\\Container->Illuminate\\Container\\{closure}(Object(Illuminate\\Foundation\\Application), Array)\n#6 D:\\sdk\\xampp\\htdocs\\naturalpublic\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php(681): Illuminate\\Container\\Container->build(Object(Closure))\n#7 D:\\sdk\\xampp\\htdocs\\naturalpublic\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Application.php(785): Illuminate\\Container\\Container->resolve('Illuminate\\\\Cont...', Array, true)\n#8 D:\\sdk\\xampp\\htdocs\\naturalpublic\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php(629): Illuminate\\Foundation\\Application->resolve('Illuminate\\\\Cont...', Array)\n#9 D:\\sdk\\xampp\\htdocs\\naturalpublic\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Application.php(770): Illuminate\\Container\\Container->make('Illuminate\\\\Cont...', Array)\n#10 D:\\sdk\\xampp\\htdocs\\naturalpublic\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Bootstrap\\HandleExceptions.php(170): Illuminate\\Foundation\\Application->make('Illuminate\\\\Cont...')\n#11 D:\\sdk\\xampp\\htdocs\\naturalpublic\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Bootstrap\\HandleExceptions.php(123): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->getExceptionHandler()\n#12 D:\\sdk\\xampp\\htdocs\\naturalpublic\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Bootstrap\\HandleExceptions.php(100): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->renderHttpResponse(Object(ErrorException))\n#13 D:\\sdk\\xampp\\htdocs\\naturalpublic\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Bootstrap\\HandleExceptions.php(134): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleException(Object(ErrorException))\n#14 [internal function]: Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleShutdown()\n#15 {main}\n  thrown in D:\\sdk\\xampp\\htdocs\\naturalpublic\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php on line 871
    

    the issue with laravel / framework / Container.php



  • I resolved the :

    PHP Fatal error:  Uncaught ErrorException: Method ReflectionParameter::getClass() is deprecated
    

    by downgrading my php version to 7.4

    but now a new error is coming up

    In ProviderRepository.php line 208:
    
      Class 'NunoMaduro\Collision\Adapters\Laravel\CollisionServiceProvider' not found
    

    this must not be a configuration issue as it seems



  • It's your dependency issue just check your composer.json file or delete the vendor folder and lock file and re-run composer install.


Log in to reply