PROBLEM AT LOGIN PAGE [message #1110] |
Tue, 02 October 2007 03:50  |
isaiah348
Messages: 3 Registered: October 2007
|
Junior Member |
|
|
Hi,
I keep getting the message:
Warning: mysqli_errno() expects parameter 1 to be mysqli, null given in c:\wamp\www\radicore\includes\dml.mysqli.class.inc on line 575
This application has encountered an unrecoverable error
The following has been reported to the administrator:
2007-10-02 10:54:27
Fatal Error: mysqli_connect() [function.mysqli-connect]: (/1045): (# ).
Error in line 49 of file 'c:\wamp\www\radicore\includes\dml.mysqli.class.inc'.
Script: /radicore/menu/logon.php
Remote Address: 127.0.0.1
Request URI: /radicore/menu/logon.php?menu=153e5efbbf5e5017e48d258c1aff44 d8[/I]
Warning: session_destroy() [function.session-destroy]: Trying to destroy uninitialized session in c:\wamp\www\radicore\includes\error.inc on line 201
At the login page. Checked and rechecked password and db settings but to no avail. Anyone with an idea? (I'm using radicore with wampserver)
|
|
|
Re: PROBLEM AT LOGIN PAGE [message #1112 is a reply to message #1110] |
Tue, 02 October 2007 05:31   |
AJM
Messages: 2382 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
This means that the call to mysqli_connect() failed to make a connection to the server, which in turn made the call to mysqli_errno() fail as it was not given a valid resource.
Try changing the code inside dml.mysqli.class.inc to the following and try again.
function getErrorNo ()
// return number of last error.
{
if (empty($this->dbconnect)) {
$errno = null;
} else {
$errno = mysqli_errno($this->dbconnect);
} // if
return $errno;
} // getErrorNo
Hopefully this should display the reason for the failed connection.
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|
|
Re: PROBLEM AT LOGIN PAGE [message #1114 is a reply to message #1113] |
Tue, 02 October 2007 07:09   |
AJM
Messages: 2382 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
The fix that I gave you should not call mysqli_errno() if the resource is empty, therefore you should not be getting the message
Warning: mysqli_errno() expects parameter 1 to be mysqli, null given
When I try to force a connection error on my PC I always get a meaningful error message, so something must be seriously wrong with your installation. I can only suggest that you debug the connect() method inside dm.mysqli.class.inc to see what is causing this error.
I also suggest that you try using the latest version of Radicore.
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|
|
|