Welcome Guest, Not a member yet? Register   Sign In
Mysqli Database autoload makes screen blank on linux host
#1

[eluser]The Enlightened[/eluser]
Hello

I wrote a simple controller which accesses database
Using codeigniter 1.6.3
autoloading database library in the autoload.php
with configuration
$db['default']['dbdriver'] = "mysqli";
on windows.

Everything works fine but when i upload the whole thing to my host (linux based) everything goes blank. Error reporting enabled. No PHP errors , no Codeigniter logs and no trace of anything. Screen goes blank for all controllers.

making :
$db['default']['dbdriver'] = "mysql";
corrects the issue.

Any ideas ?

Thanks
Prasshhant
#2

[eluser]wrs[/eluser]
I'd have to assume that your script is generating a fatal error, perhaps mysqli isnt available on your remote host?

Your remote host may not be configured to display such errors, instead they should be available in your www server logs.
#3

[eluser]The Enlightened[/eluser]
Hi

mysqli is available on my host.
Again i uploaded a fresh codeigniter copy without any of my own code. Just configured it to connect to a database with mysqli (in database.php) and autoload. Again the screen goes blank and nothing comes up.
#4

[eluser]xwero[/eluser]
Don't autoload and connect to the db in the model. If you have problems then there is probably something wrong with the database.php settings.




Theme © iAndrew 2016 - Forum software by © MyBB