![]() |
codeigniter num_rows throws timezone error when corrected then page shows 500 internal server error - 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: codeigniter num_rows throws timezone error when corrected then page shows 500 internal server error (/showthread.php?tid=56104) |
codeigniter num_rows throws timezone error when corrected then page shows 500 internal server error - El Forum - 11-27-2012 [eluser]jayapalchandran[/eluser] I am using codeigniter 2 for a module in my site. this is the first run on production. num_rows() throws the following error Quote:A PHP Error was encountered in line no 18 i have echo $catgory->num_rows(); then i updated the code as follows Code: function __construct() When reloaded the page i get HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request. What could be the problem? Is there any possibility to hide this particular error? Is it anything to do with the server side settings? codeigniter num_rows throws timezone error when corrected then page shows 500 internal server error - El Forum - 11-28-2012 [eluser]Aken[/eluser] Try verifying the timezone setting in your php.ini file instead of setting it in your script. Not really sure why calling a function would cause a 500 server error, so try something simple first, instead. codeigniter num_rows throws timezone error when corrected then page shows 500 internal server error - El Forum - 11-28-2012 [eluser]Bart v B[/eluser] The internal server error sound like a mistake in your .htaccess file. To put a datetime zone in your script it's better to put it in your index.php Just at the start on row 2. ;-) For example i did that for a dutch site: index.php Code: <?php |