CodeIgniter Forums
weird problem - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: weird problem (/showthread.php?tid=8576)



weird problem - El Forum - 05-23-2008

[eluser]Блум[/eluser]
Hello everybody,
I have a strange problem here.. I build a CI driven site on my development server in my office (PHP 5.2.3, MySQL 5.0.30) and it works just fine. But when I upload it on the production server (PHP 5.2.5, MySQL 5.0.45) it just doesn't work. No errors, no warnings, the error_log is empty, just absolute lack of output. Nothing.. As I can see all the required files are loaded, and the database is there.

mm.. help

Thank You


weird problem - El Forum - 05-23-2008

[eluser]Michael Wales[/eluser]
Change your error reporting to E_ALL and see what you come up with.


weird problem - El Forum - 05-23-2008

[eluser]Блум[/eluser]
Actually it was the first thing I did when this problem came up.. nothing. The error log is empty.


weird problem - El Forum - 05-23-2008

[eluser]mironcho[/eluser]
Hi Блум,
check your php.ini config file - look for display_errors, log_errors and error_log options, so you can find whether errors are displayed or logged (to file or syslog) and if logged - where they are logged (usually syslog).



// in bulgarian:
хубаво е че се появяват повече сънародници тук Smile


weird problem - El Forum - 05-23-2008

[eluser]Блум[/eluser]
Seems like I solved it. The problem was
Code:
$db['default']['dbdriver'] = "mysqli";
but mysqli is not available on the server. When I use 'mysql' everything is fine.
But it is sad that there were no error or exception about this problem, i had to examine the problem blindly, maybe the devs should think about it.

Thanks and smiles

> mironcho: Здрасти Smile


weird problem - El Forum - 05-23-2008

[eluser]Michael Wales[/eluser]
Is db_debug set to false in your database config file?
I can't believe it wouldn't throw a could not connect error if db_debug was set to true.


weird problem - El Forum - 05-23-2008

[eluser]Блум[/eluser]
[quote author="Michael Wales" date="1211551695"]Is db_debug set to false in your database config file?
I can't believe it wouldn't throw a could not connect error if db_debug was set to true.[/quote]

Code:
$db['default']['db_debug'] = TRUE;
It was hard for me to beleive too.. but no error, exception or warning was displayed neither on the output or the error_log. Also error_reporting was E_ALL.


weird problem - El Forum - 05-23-2008

[eluser]Michael Wales[/eluser]
I recommend submitting a bug report with this information in it - maybe we can get a convenient error message next time.


weird problem - El Forum - 05-23-2008

[eluser]Блум[/eluser]
Okay, I'll post it.

Thanks