CodeIgniter Forums
All pages showing source code and a model 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: All pages showing source code and a model error (/showthread.php?tid=58896)



All pages showing source code and a model error - El Forum - 08-01-2013

[eluser]linkzao[/eluser]
Hi there.

I'm building a codeigniter app and i was using xampp 1.7.1 with php 5.2.9. Everything was working great, but i recently upgraded my xampp to 3.2.1 and php to 5.4 and then my nightmare begun.

When i enter in any page, i get a blank screen with all my source code and the following error:

Fatal error: Class 'Usuario_model' not found in C:\xampp\htdocs\site\system\core\Loader.php on line 303

i've just tested my other codeigniter apps and none of them are working.

Is there any compatibility problems between my CI version (2.1.3) and php?


Thanks.


All pages showing source code and a model error - El Forum - 08-01-2013

[eluser]JoostV[/eluser]
CI 2.1.3 throws errors in PHP 5.4. Set error_reporting to -1 and you'll find out which.


All pages showing source code and a model error - El Forum - 08-02-2013

[eluser]linkzao[/eluser]
Didn't work Sad
I'm still getting the source code screen.

I've used this into my index controller:
Code:
error_reporting(E_ALL);
ini_set("display_errors", 1);





All pages showing source code and a model error - El Forum - 08-02-2013

[eluser]linkzao[/eluser]
Problem solved! A guy at IRC told me about turning on the php short tags option and it worked. No more errors!


All pages showing source code and a model error - El Forum - 08-02-2013

[eluser]JoostV[/eluser]
Life can be so simple Smile