See What Chatgpt Say
The error message you provided indicates that there is an issue with calling the `fetch_object()` function on a boolean value. This error occurred in the file `/www/wwwroot/onfasty.com/app/controllers/Referrals.php` on line 28.
Here's a breakdown of the error stack trace:
1. The error originates from the method `index()` in the `Referrals` class within the `Referrals.php` file.
2. The `fetch_object()` function was called on a boolean value, which is causing the error.
3. The file `/www/wwwroot/onfasty.com/app/core/App.php` is involved in handling the error by instantiating the `App` class.
4. Finally, the error reaches the `index.php` file located in the root directory of your project.
To understand why this error occurs, you need to investigate the code in the `Referrals.php` file, specifically around line 28. It seems that the variable or object on which `fetch_object()` is being called is evaluated as a boolean (`false`) instead of an expected object or result set.
Potential causes for this error could be:
1. An issue with the database query: There might be a mistake in the query or a problem with the database connection, resulting in a boolean value instead of a valid result set.
2. Error handling or conditional statements: There could be some conditionals or error-handling code that returns a boolean value instead of the expected result set.
3. Previous errors: It's possible that there were previous errors that affected the execution flow and led to the unexpected boolean value.
Reviewing the code in the mentioned file (`Referrals.php`) and examining the logic around line 28 will help you identify the specific cause of the error and find a solution.