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

Fatal error: Uncaught Error: Class "SebLucas\Cops\Input\Request" #529

Open
ralfberger opened this issue Aug 4, 2023 · 6 comments
Open

Comments

@ralfberger
Copy link

ralfberger commented Aug 4, 2023

Hi, I just installed COPS on my Webspace Server with PHP 8.2 and I get this error message:
Fatal error: Uncaught Error: Class "SebLucas\Cops\Input\Request" not found in /www/books/bbs/config.php:27 Stack trace: #0 /www/books/bbs/index.php(18): require_once() #1 {main} thrown in /www/books/bbs/config.php on line 27

What did I do wrong, what do I have to change to make COPS run?

@horus68
Copy link
Contributor

horus68 commented Aug 4, 2023

See the wiki page:
https://github.com/seblucas/cops/wiki

Since July 2023, you can find a forked version that works with PHP8, including some issues fixes and new features, on his personal fork:
[COPS for PHP 8.x] https://github.com/mikespub-org/seblucas-cops

@ralfberger
Copy link
Author

Thank you for your support.
I have tested V1.4x and also the forked version. Both times I get the same error.

@dunxd
Copy link

dunxd commented Aug 4, 2023 via email

@ralfberger
Copy link
Author

So, I have installed V. 1.3.6. Now I have no more error message but a gray page. I just read the many pages here ... Gray Page and also here. 487

@mikespub
Copy link

mikespub commented Aug 8, 2023

The first error is typical when you install COPS for PHP 8.x from source, and you do not run composer to install the project dependencies afterwards. I'll clarify this in the introduction there.
The alternative is to download cops-1.x.zip from releases instead, which already includes all dependencies.

The second issue could be due to a number of reasons as you mentioned, It's easiest to check for common issues first by browsing to http://.../checkconfig.php

@mikespub
Copy link

mikespub commented Aug 8, 2023

Updated README to clarify the need to run composer when installing from source
mikespub-org@9fffc96

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

4 participants