Welcome Guest, Not a member yet? Register   Sign In
blank page when autoloading database
#1

[eluser]chic[/eluser]
Good day to all,

i have an issue using code igniter on windows
In WAMP or Vertrigo when i autoload database i get a blank page instead of the usual index page.

without autoload database, index page works fine
when autoloading database, index page went blank

this problem does not happen on linux machine. even the default
codeigniter page which displays the welcome messsage went blank too

please help.

thanks a lot
#2

[eluser]Michael Wales[/eluser]
Check database.php for syntax errors. When CI gives a blank page it almost always means a syntax error.
#3

[eluser]chic[/eluser]
$db['default']['hostname'] = "localhost";
$db['default']['username'] = "someuser";
$db['default']['password'] = "somepass";
$db['default']['database'] = "somedb";
$db['default']['dbdriver'] = "postgre";
$db['default']['dbprefix'] = "";
$db['default']['active_r'] = TRUE;
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = "";

unfortunately that very same directory runs in linux like a charm. no blank page. Smile
#4

[eluser]chic[/eluser]
this problem does not occur in XAMMP as well. so now im using XAMMP
#5

[eluser]lebe0024[/eluser]
Yes, this is definitely a bug. I am seeing the same thing after installing apache and mysql on windows.
#6

[eluser]nirbhab[/eluser]
Hi,
this is really strange exception,
I have worked on Vertrigo, WAMP and developer.net.

I work on many web server, specially on windows xp, didn't found these types of error.
Please mention the steps so that i am able to get the error actually.
#7

[eluser]chic[/eluser]
1) install wamp or vertrigo
2) install CI 1.5.4/1.5.3
3) edit database.php
4) edit autoload.php = include database in library.
5) look at the default CI page
#8

[eluser]nirbhab[/eluser]
i did the same step as you told,
but it is working perfectly fine,

check these things:
1. database details
2. $autoload['libraries'] = array('database');
3. URL: http://localhost/CI/index.php or http://localhost/CI/

any of the above mentioned URL will display the default welcome page.
#9

[eluser]Majd Taby[/eluser]
I get these errors all the time, 100% of the time, php error reporting is turned off. Create a file with some b.s. in it (like <?php echo hello thar ) and see if it gives you an error. Also, when I move from unix to linux, it usually breaks because of capitalization with file names.

Hope that helps...
#10

[eluser]EpochWolf[/eluser]
I had this issue with a manual install of Apache/PHP/MySQL as it turned out my php configuration was not being loaded. Hence, the MySQL module wasn't loaded.

You might want to use a test script to determine if php is loading your modules.




Theme © iAndrew 2016 - Forum software by © MyBB