Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE » RADICORE Installation Issues » PROBLEM AT LOGIN PAGE
PROBLEM AT LOGIN PAGE [message #1110] Tue, 02 October 2007 03:50 Go to next message
isaiah348 is currently offline  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 Go to previous messageGo to next message
AJM is currently offline  AJM
Messages: 2347
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.


Re: PROBLEM AT LOGIN PAGE [message #1113 is a reply to message #1110] Tue, 02 October 2007 06:40 Go to previous messageGo to next message
isaiah348 is currently offline  isaiah348
Messages: 3
Registered: October 2007
Junior Member
Changing the dml.mysqli.class.inc file hasn't helped. It still gives the same error message.
Re: PROBLEM AT LOGIN PAGE [message #1114 is a reply to message #1113] Tue, 02 October 2007 07:09 Go to previous messageGo to next message
AJM is currently offline  AJM
Messages: 2347
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.


Re: PROBLEM AT LOGIN PAGE [message #1115 is a reply to message #1114] Tue, 02 October 2007 07:21 Go to previous messageGo to next message
isaiah348 is currently offline  isaiah348
Messages: 3
Registered: October 2007
Junior Member
Forgive my not posting the actual error message, which is:




This application has encountered an unrecoverable error

The following has been reported to the administrator:
2007-10-02 15:16:24

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?csxslt=off

Warning: session_destroy() [function.session-destroy]: Trying to destroy uninitialized session in c:\wamp\www\radicore\includes\error.inc on line 201




The 2nd warning message:

Warning: mysqli_errno() expects parameter 1 to be mysqli, null given

has disappeared.
Re: PROBLEM AT LOGIN PAGE [message #1116 is a reply to message #1115] Tue, 02 October 2007 08:10 Go to previous message
AJM is currently offline  AJM
Messages: 2347
Registered: April 2006
Location: Surrey, UK
Senior Member
This means that the mysqli_connect() function is failing. Check that the values in your config.inc file are correct.

You will need to debug the connect() method inside dml.mysqli.class.inc to see what is causing this error.


Previous Topic: Existing data do not show up in LIST2
Next Topic: radicore on edubuntu
Goto Forum:
  


Current Time: Fri Apr 19 14:31:32 EDT 2024

Total time taken to generate the page: 0.01169 seconds