Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 07:31 am EST

Geeklog Forums

MySQLi and search function issue


Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
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
 Quote

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1470
Location:Canada
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.
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
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
 Quote

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1470
Location:Canada
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.
 Quote

Status: offline

::Ben

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

All times are EST. The time is now 07:31 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content