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

Database connection error #5

Open
cesagonchu opened this issue Oct 16, 2022 · 1 comment
Open

Database connection error #5

cesagonchu opened this issue Oct 16, 2022 · 1 comment

Comments

@cesagonchu
Copy link

When I take a quiz, on the user side and as an administrator, I get this error:
Database connection error


My config

Quiz 2.0 Beta2 (english version)
Xoops 2.5.11-Beta2 (english version)
PHP 8.1.2
MYSQL 8.0.30-0ubuntu0.22.04.1

@mambax7
Copy link
Owner

mambax7 commented Oct 27, 2022

Please replace the lines 504 and 512 in /quiz/index.php:

throw new \RuntimeException(_MD_QUIZ_DATABASE);

with

throw new \RuntimeException("Query Failed! SQL: $sql- Error: " . $xoopsDB->error());

That error message should give us more info about the problem.

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

2 participants