FORUMS CLOSED DUE TO SPAM. YOU STILL CAN ADD POST!

Parse error: syntax error, unexpected '<'

Feed 8 posts, 2 voices

Avatar
3 posts

Twice I have gotten this error after the site has been up for a few days and was working fine. I dealt with it by reinstalling, but that is a pain. I can’t find the offending code in index.php

Parse error: syntax error, unexpected ‘<’ in /mydirectory/index.php on line 91

 
Avatar
1493 posts

Hmmm…. Odd one, since index.php does not (at least in the current 0.9.5 relase) have 91 lines!

Is the site live? What other things are you trying out with it?

 
Avatar
3 posts

No I pulled it down and put up some flat html backup pages for now. Index.php gets more lines when your content is brought in. So I am checking the content. But I still can’t see why it would break after a few days. Something fishy…

 
Avatar
1493 posts

Index.php gets more lines when your content is brought in.

??? I have about four 0.9.5 installs, and none of them show growth in index.php when “content is brought in”! Are you importing data into the database? or simply adding content to the site “normally” via the admin?

 
Avatar
3 posts

OK, I was referring to the output source sent to the browser. Anyway, I can fix this by replacing the index.php file. But still haven’t found out what is altering/corrupting it yet or how.

 
Avatar
1493 posts

Just curious … are you using TinyMCE? It doesn’t take kindly to encountering PHP, for instance. (Only wracking my brains trying to think what might cause this!)

On second thought, that can’t be it, if replacing index.php with a fresh one fixes things.

Bottom line (I think!) is that your index.php file should not be getting altered (so far as I can tell!).

Definitely something fishy, as you say…

 
Avatar
3 posts

Nice loop. ;-)

I am investigating a security compromise that might have come from an infected image file on my client’s blog (which uses a db on the same server) and which is linked to from the site. When I replaced the index, there started to be a lot of error log messages referring to outside sources. So I am pretty sure some code is getting added to the index which causes the script error. Changing pwds etc.