Welcome Guest, Not a member yet? Register   Sign In
Uploaded my Codeigniter Project In Server, Throwing Error
#1

Hi Need help in finding the solution for an issue. I have a codeigniter project which is working perfectly in Localhost but not in the client Server. It its Throwing an error

Fatal error: Call to undefined function mysqli_init() in /home/coursesandstay/public_html/coursesnstay/system/database/drivers/mysqli/mysqli_driver.php on line 126
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/coursesandstay/public_html/coursesnstay/system/database/drivers/mysqli/mysqli_driver.php:126)
Filename: core/Common.php
Line Number: 564
Backtrace:

A PHP Error was encountered
Severity: Error
Message: Call to undefined function mysqli_init()
Filename: mysqli/mysqli_driver.php
Line Number: 126
Backtrace:


Im Attaching the Screen Shot as well kindly help me in this. Thank You.

Attached Files Thumbnail(s)
   
Reply
#2

That means that you have sent output to the screen.

Check the version of PHP and MySQL on the server.

Make sure all files are saved without the BOM

Also make sure not to have white space in the files

Make sure not to include the endding php tag.
What did you Try? What did you Get? What did you Expect?

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

(10-04-2017, 02:14 AM)InsiteFX Wrote: That means that you have sent output to the screen.

Check the version of PHP and MySQL on the server.

Make sure all files are saved without the BOM

Also make sure not to have white space in the files

Make sure not to include the endding php tag.

PHP Version 5.5.35

Attached Files Thumbnail(s)
   
Reply
#4

(10-04-2017, 02:14 AM)InsiteFX Wrote: That means that you have sent output to the screen.

Check the version of PHP and MySQL on the server.

Make sure all files are saved without the BOM

Also make sure not to have white space in the files

Make sure not to include the endding php tag.

No, it means the server doesn't have mysqlnd and/or the PHP mysqli extension installed.
The "headers already sent" notice is a side-effect, because the actual error message counts as output.
Reply
#5

Thanks Narf, that's one reason I mentioned to see what versions were installed, I thought all web host had them installed by default.

I know my web provider has them all installed.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB