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

PHP Fatal Error: mysqli_query() Argument #1 Must Be of Type mysqli, Null Given #2035

Open
CLINTONPAU opened this issue Sep 4, 2024 · 1 comment

Comments

@CLINTONPAU
Copy link

After following the installation steps for the NConf application, I'm encountering a mysqli_query() error. The application shows a "Setup required" message, and upon clicking to install NConf, the page is blank. The Apache error log displays the following error:

PHP Fatal error: Uncaught TypeError: mysqli_query(): Argument #1 ($mysql) must be of type mysqli, null given in /var/www/html/nconf/include/functions.php:1026
Additional Information:

The mysqli_query() function is throwing an error because the argument $mysql is null.
The issue persists despite ensuring the Apache user ownership and appropriate permissions for the nconf directory.
Database configuration and file renaming steps have been completed as outlined.
@garadar
Copy link

garadar commented Dec 12, 2024

Hi @CLINTONPAU,

Do you have more details about what you are trying to do ?

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