![]() |
500 with simple syntax errors... - 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: 500 with simple syntax errors... (/showthread.php?tid=52096) |
500 with simple syntax errors... - El Forum - 05-29-2012 [eluser]kb1ibh[/eluser] Whenever im working on a site in Codeigniter i create a new Vmware Virtual Machine, install debian, apache2, mysql-server, and execute a2enmod rewrite for .htaccess mod-rewrite... i've got a standard copy of CI that i use that has all my defaults setup already (configs, db, etc) so i can just copy and go... on the latest server i created, i've been getting 500 errors for the simplest of syntax mistakes, and im forced to go into /var/log/apache2 to find out what the error was (this time i misspelled the name of a model function...) when im in a development environment of CI im used to getting these errors through the browser, instead of having to navigate through debian to figure out whats going on... i know i had fixed this somehow before, but i have no idea what i did in the past to change it... anyone know how to change this behavior? getting annoying every time i miss a semicolon... 500 with simple syntax errors... - El Forum - 05-29-2012 [eluser]kb1ibh[/eluser] Fixed it... just have to add one of these: Code: ini_set('display_errors','On'); Code: // index.php 500 with simple syntax errors... - El Forum - 05-29-2012 [eluser]InsiteFX[/eluser] 500 are server errors and nothing to do with CodeIgniter, check your server setup and installation. 500 with simple syntax errors... - El Forum - 05-29-2012 [eluser]Kenneth Vogt[/eluser] While it is correct to say that 500 errors are server errors, it is not correct to say it has nothing to do with CodeIgniter. A coding mistake can easily result in a 500 error. For instance, attempt to autoload a library where the library class is missing its closing bracket: you get a 500 error. 500 with simple syntax errors... - El Forum - 05-29-2012 [eluser]InsiteFX[/eluser] Quote:HTTP Error 500 Internal server error 500 with simple syntax errors... - El Forum - 05-29-2012 [eluser]Aken[/eluser] Depending on how the server interprets a PHP install, a PHP error can throw a 500 error also. The 500 error states that it is not a client-side problem, which means it's something to do with the server set up and/or software, which can certainly include PHP. I've personally never experienced a 500 error that resulted from poor PHP code, but I can see how certain set ups may cause it. MIne usually come from crappy .htaccess files. 500 with simple syntax errors... - El Forum - 05-29-2012 [eluser]InsiteFX[/eluser] Me either, I only get a server 500 error if my server is installed wrong or an error in my .htaccess file! |