Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Since Geeklog 2.0.0 support for MySQLi was added. I do not remember making the change from MySQL to MySQLi on geeklog.fr, maybe it is automatic... Anyway, today there is a error with the search function. Searching for geeklog.net is ok but searching for maps plugin is not.

Fatal error: Call to a member function fetch_array() on a non-object in /system/databases/mysqli.class.php on line 658


Text Formatted Code
public function dbFetchArray($recordset, $both = FALSE)
    {
        if ($both) {
            $result_type = MYSQLI_BOTH;
        } else {
            $result_type = MYSQLI_ASSOC;
        }

        $result = $recordset->fetch_array($result_type);

        return ($result === NULL) ? false : $result;
    }


Can I force my Geeklog to use the mysql.class.php instead mysqli.class.php?
I'm available to customise your themes or plugins for your Geeklog CMS

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1468
I believe it is automatic. Right now in order to use MySQL exstension only you would have to remove the mysqli extension from being loaded (in php.ini).
One of the Geeklog Core Developers.

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Tom, do you thing this search issue is a geeklog bug or a maybe server issue ?
I'm available to customise your themes or plugins for your Geeklog CMS

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1468
Hey Ben

I did a quick search test on your site. It looks like the Wiki is causing the problem. I did an advance search and looked for "test drive". I tested all of the search types and the Wiki plugin is the only one crashing.
One of the Geeklog Core Developers.

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Thanks for this Tom. I will look at it.
I'm available to customise your themes or plugins for your Geeklog CMS