Jump to content

Parse Error: Syntax Error, Unexpected T_Variable In /home/bts003/public_Html/index.php On Line 106


julbr
 Share

Recommended Posts

Hello Everyone! 

Does anybody know what this could relate to? I uploaded the site to a hosting service, set up the database, and when entering the site i get this error:

Parse error: syntax error, unexpected T_VARIABLE in /home/bts003/public_html/index.php on line 106

If anybody knows what this could be please help!

THANK YOU ALL!

Link to comment
Share on other sites

Hello Martijn,

I re-uploaded the whole site. I still get the same error... The line of code referred to is this one:

$config->paths = clone $config->urls; 
 
Do you have any idea what it might be? 
 
THANK YOU VERY MUCH!!
Link to comment
Share on other sites

Had to search the web as I didn't recognise the clone command. Basically i'm lost here. So far I understand clone will throw a fatal error with PHP 5.2.5, but below it would be an exception. What exeption I can't find.

I've found a thread on wordpress.org/support/, there kcmatthews states to wrap the value after the clone command in parentheses:

$config->paths = clone($config->urls); 

I did tried this locally, and printed gettype($config->paths) in a template. It says: object. So every thing looks fine with the parentheses. (Not sure here) 

I question that raises my mind: How old is your PHP?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...