An uncaught Exception was encountered Type: ArgumentCountError Message:…
Private research annotation
Sign in to add a private research label or note.
- User
An uncaught Exception was encountered
Type: ArgumentCountError
Message: mysqli_connect_errno() expects exactly 0 arguments, 1 given
Filename: C:\xampp\htdocs\AaskAPP\system\lib\ask_mysqli.php
Line Number: 52
Backtrace:
File: C:\xampp\htdocs\AaskAPP\system\lib\ask_mysqli.php Line: 52 Function: mysqli_connect_errno
File: C:\xampp\htdocs\AaskAPP\system\lib\ask_mysqli.php Line: 24 Function: checkMysqliConnectinError
File: C:\xampp\htdocs\AaskAPP\CAaskController.php Line: 61 Function: _dbConnection
File: C:\xampp\htdocs\application\web\controllers\Crout.php Line: 11 Function: __construct
File: C:\xampp\htdocs\index.php Line: 289 Function: require_once
- Assistant
An uncaught exception of type ArgumentCountError occurred in the ask_mysqli.php file on line 52. The error message states that the mysqli_connect_errno() function expects 0 arguments to be passed, but 1 argument was given.
The backtrace shows that the error originates from line 52 in the ask_mysqli.php file, where the function mysqli_connect_errno() is called. This function is used to check for errors in the mysqli connection.
The checkMysqliConnectinError function on line 24 of the ask_mysqli.php file is called from the CAaskController.php file on line 61, which in turn is called from the Crout.php file on line 11.
The error ultimately occurred in the index.php file on line 289, which is the entry point of the application.
To fix this error, the mysqli_connect_errno() function should be called without any arguments.