Error when trying to create/show grid

QuestionsError when trying to create/show grid
Terry Ladouceur asked 7 years ago

I am using the free version of the grid right now. I have setup it up and have no problems with the demo version.

I have created another config file to connect to my database but when I try to execute the code I get the following error:

Missing file: /home/xxxx/public_html/xxxx/phpgrid/lib/inc/adodb/drivers/adodb-msqli.inc.php
ADONewConnection: Unable to load database driver ''

The file does in fact exist so it's there. The error.log file records this:

PHP Fatal error: Call to a member function SetFetchMode() on boolean in /home/xxxx/public_html/xxxx/phpgrid/lib/inc/jqgrid_dist.php on line 9

I am not sure what the issue is. Any help appreciated.

Thank you.

Terry Ladouceur

1 Answers
Abu Ghufran answered 7 years ago

Hi,

msqli.inc.php should be mysqli.inc.php
And this need to be corrected in your database configuration.

eg. see config.php
PHPGRID_DBTYPE -> mysqli (not msqli)

or if you have defined in page:
$db_conf = array(
"type" => "mysqli"
"server" => PHPGRID_DBHOST,
"user" => PHPGRID_DBUSER,
"password" => PHPGRID_DBPASS,
"database" => PHPGRID_DBNAME
);

Your Answer

0 + 11 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 1 / 5. Vote count: 1

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?