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

Install of 2.5 leads to type error, MySQLi, Hoster: Limacity #822

Open
Flip1 opened this issue Feb 17, 2024 · 2 comments
Open

Install of 2.5 leads to type error, MySQLi, Hoster: Limacity #822

Flip1 opened this issue Feb 17, 2024 · 2 comments

Comments

@Flip1
Copy link

Flip1 commented Feb 17, 2024

I've tried installing 2.5 on an empty webspace.
The installation (easy option) was aborted with the following error:

Uncaught TypeError: mysqli_query(): Argument #1 ($mysql) must be of type mysqli, null given
include/db/mysqli.inc.php Zeile 66

Backtrace
#0 include/db/mysqli.inc.php(66): mysqli_query(NULL, 'SELECT * FROM s...')
#1 include/admin/installer.inc.php(325): serendipity_db_query('SELECT * FROM s...', false, 'both', false, false, false, true)
#2 serendipity_admin.php(260): require('/home/webpages/...')
#3 {main}

Hoster: Limacity
Version of MySQL or MariaDB is: 8.0.34-26

@garvinhicking
Copy link
Member

Sadly we have no proper error reporting in place at this point where a database connection fails.

What happens is that probably your database credentials or hostname are wrong; PHP cannot connect to the server with the data you entered. Can you verify you use the right database name and port?

@onli - we should address a proper error reporting here, our serendipity_db_connect() doesn't do any of that :-O

@Flip1
Copy link
Author

Flip1 commented Feb 20, 2024

Yes, I'm sorry, it was my mistake. The installation was now successful.
But yes, this error message is really meaningless and could be improved.

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