Welcome Guest, Not a member yet? Register   Sign In
All pages showing source code and a model error
#1

[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.
#2

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

[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);


#4

[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!
#5

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




Theme © iAndrew 2016 - Forum software by © MyBB