Welcome Guest, Not a member yet? Register   Sign In
PHP Fatal error: Call to a member function query() on boolean in Codeigniter
#1

Just am running my codeigniter project, its shows 500 error in browser and checking error log its shows like below,

PHP Fatal error: Call to a member function query() on boolean in /var/www/html/myproject/system/database/drivers/mysqli/mysqli_driver.php on line 221
How can i fix this issue?
Mansoor H Wink
Reply
#2

Please provide the screenshot.
Practice | Practice | Practice
Reply
#3

(This post was last modified: 09-15-2017, 12:08 AM by shajamansoor.)

(09-14-2017, 11:45 PM)Midhun Mohanan P Wrote: Please provide the screenshot.

PFA

   

   
Mansoor H Wink
Reply
#4

It looks like a server error that it cannot find the MySQL server database.

Check your database config.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#5

(09-15-2017, 05:01 AM)InsiteFX Wrote: It looks like a server error that it cannot find the MySQL server database.

Check your database config.

Issue fixed. Database hostname only having problem.
Mansoor H Wink
Reply




Theme © iAndrew 2016 - Forum software by © MyBB