Please help! This is very elementary but I am in the process of trying to download wordpress.org. Unfortunately I am getting the message parse error-unexpected t-string...line 45. I have looked over this for ':' errors and ' " ' errors but can't find what is wrong. Can somebody please help me with this?
Msg#: 3956791 posted 2:00 am on Jul 23, 2009 (gmt 0)
Welcome to WebmasterWorld! I'm not sure why you're getting that error. I've never seen it. That looks to me like your server has been compromised or is not configured to a standard setup - in which case you should visit the WordPress Forums and see if they can help you get it sorted.
Msg#: 3956791 posted 3:26 am on Jul 23, 2009 (gmt 0)
I don't think so Gregg - unexpected T_STRING is a PHP error and taboois on the right track - it's usually an unclosed quote, bracket, missing semi-colon or some such thing.
In any case, all the lines you just posted all have unmatched quotes. The second terms all start with a double quote and close with a single. So that's a problem.
Also, T_STRING errors can also be the result of syntax errors above the flagged line. In other words, an unclosed quote several lines up doesn't immediately cause a problem, but the parser gets down to your opening quote on line 45 and takes it as a closed quote. At that point, it is not expecting a T_STRING, so it blows up.
So even though there are syntax errors in lines 45-47, I expect there's one more unclosed quote above line 45, but that's just a guess.