Error Page Error occurred : Call to a member function fetch_assoc() on boolean on line 1070 in /home

Portuguese - Brasil

Estou fazendo um site a partir de um script e quando vou instalar o script d o erro:
Error Page
Error occurred : Call to a member function fetch_assoc() on boolean on line 1070 in /home/vol8_8/

English

I’m making a website from a script and when I install the script it gives the error:
Error Page
Error occurred : Call to a member function fetch_assoc() on boolean on line 1070 in /home/vol8_8/
What do I do?
Translation by Google Translate

I’m not sure which fetch_assoc() function is being used here, but it sounds like a database query is failing.

If this is code from someone else / you simply want to use prebuilt software

One of the database queries in your software is breaking. The software doesn’t properly check if the database query was successful, so we can only guess why it broke. Not properly handling error is just poorly written code.

This is a flaw in the software that should be addressed by the software developer. You should sent them the error message you received, and could include the description below as well.

If this is your code / you are a developer who knows this code

I suspect the PHP function mysqli_result::fetch_assoc is supposed to be used here. However, the object this is called on is not a valid mysqli_result object, but a boolean. This probably means that the mysqli_query() function didn’t return a result object, but returned a false instead. You can retrieve the actual query error by checking mysqli_error() with the database connection.