Welcome Guest, Not a member yet? Register   Sign In
CI eror on fresh install
#1

[eluser]Unknown[/eluser]
Hello,

I'm new to CI and have studied the manuals and searched the forums, but with no luck in solving my problem.
I've just installed CI on my website (actual hosting, not a local machine): uploaded the files, set my base url and database parameters.
But when I try to load index.php I get the following error:

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /homepages/42/d13459244/htdocs/TO/system/core/Config.php on line 294

I guess there is a problem with interpreting private and public functions. I'm in need of advise, thanks very much in advance.
#2

[eluser]Mr. Pickle[/eluser]
What happens in this file at your installation?
If i look up line 294 of the core Config.php file in the current version it's a commented row (see: https://github.com/EllisLab/CodeIgniter/...g.php#L294)

Maybe you can post your line 294?
#3

[eluser]Unknown[/eluser]
Hello, thanks for your support! I've just found out the source of the problem: I was using PHP 4 that was acting up to a PHP5-only expression "protected". So I just switched to PHP 5 and everything works now! Thanks again, maybe the thread will be useful for any beginners like me Smile

problem solved.




Theme © iAndrew 2016 - Forum software by © MyBB