Welcome Guest, Not a member yet? Register   Sign In
Loader.php error on some pages
#1

[eluser]Unknown[/eluser]
Hi all,

Hopefully I'm posting this is in the right place. I recently moved my CI code-base off my local MAMP server to another server for testing purposes. Since I've moved, some of my views (the front-end, non-admin views) are coming back with this error:

Code:
Parse error: syntax error, unexpected T_ENDIF in /Library/WebServer/Documents/CodeIgniter_2.0.2/core/Loader.php(679) : eval()'d code on line 14

Now, I've never modified that file, and it in fact sits in a directory completely separate from my application. The log also reads as follows when these errors are encountered:

Code:
ERROR - 2011-06-10 10:46:03 --> 404 Page Not Found --> _

This only started happening when I moved my code to another server. I have the same code running on my local with no issues. Any ideas?
#2

[eluser]TWP Marketing[/eluser]
Jess, Does your newer server support short tags? The loader at line 679 is trying to adjust for usage of short php tags.
#3

[eluser]Unknown[/eluser]
That was it. I thought I had removed all the php short tags before I moved to the new server. Caught a few rogue ones. Thank you!




Theme © iAndrew 2016 - Forum software by © MyBB