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

ClassNotFoundError on v2.0.0 #901

Open
woprisalive opened this issue Apr 12, 2022 · 2 comments
Open

ClassNotFoundError on v2.0.0 #901

woprisalive opened this issue Apr 12, 2022 · 2 comments

Comments

@woprisalive
Copy link

Hi,

I've installed gitlist on a Fedora 36 server with PHP 8.1.5RC1. phpinfo() works fine.

I've a 500 server error. I've forced the debug mode by changing (PHP noob ) public/index.php:18 with

$debug = true; //(bool) ($_SERVER['APP_DEBUG'] ?? ('prod' !== $env));

here is the stacktrace :

Symfony\Component\ErrorHandler\Error\ClassNotFoundError:
Attempted to load class "DebugBundle" from namespace "Symfony\Bundle\DebugBundle".
Did you forget a "use" statement for another namespace?

  at /var/www/html/gitlist/src/Kernel.php:52
  at GitList\Kernel->registerBundles()
     (/var/www/html/gitlist/vendor/symfony/http-kernel/Kernel.php:382)
  at Symfony\Component\HttpKernel\Kernel->initializeBundles()
     (/var/www/html/gitlist/vendor/symfony/http-kernel/Kernel.php:768)
  at Symfony\Component\HttpKernel\Kernel->preBoot()
     (/var/www/html/gitlist/vendor/symfony/http-kernel/Kernel.php:190)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (/var/www/html/gitlist/public/index.php:35) 

Could you help me ?

regards.

@soknet
Copy link

soknet commented May 18, 2022

Hi!
I have skipped that error, commenting the line 48 in the file \src\Kernel.php

It's because you have enabled the debug, and the project does not contain the debug classes.

@klaussilveira
Copy link
Owner

Did you use the development version or the latest release? Development version is not suited for end-users: https://github.com/klaussilveira/gitlist#installation

image

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

3 participants