• Resolved helenakaminski

    (@helenakaminski)


    Hi, my blog on my website has been working for the past two years, and all of a sudden this morning I found this message instead of the front page on my blog:

    Parse error: syntax error, unexpected ‘<‘ in /home/helena6/public_html/blog/wp-content/themes/blackgraywhite/index.php on line 7

    Not quite sure what that means, I’m not great with code, just good enough to edit some themes to suit my needs. Here is what line 7 looks like <script type="text/javascript">
    Also not sure what information is relevant to this problem… all other pages seem to work fine, just not the index page. I can’t think of what could have caused this, as its been a couple of weeks since I logged into it.
    Any suggestions would be much appreciated. Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Phil

    (@owendevelopment)

    There’s a problem in your index.php file and more than likely, a syntax in the PHP is missing or not correct.

    You may have deleted or amended a line of PHP which is causing the error. Retrace your steps and undo what you have done until it works.

    Thread Starter helenakaminski

    (@helenakaminski)

    Last time I edited any files was at least a year ago, and the blog has worked fine since… I’m not even sure what my last move was! I just checked my website today and noticed that my blog was mysteriously not showing up.

    Phil

    (@owendevelopment)

    Can you post what’s on line 7 in index.php?

    Thread Starter helenakaminski

    (@helenakaminski)

    <script type="text/javascript"> is line 7

    I fixed the problem by just comparing the file with a working index.php; didn’t think I changed anything important but it works now. Thanks for your help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Working blog one day has a parse error?’ is closed to new replies.