• I recently starting seeing the following error whenever accessing my blog…

    Parse error: syntax error, unexpected T_VARIABLE in /home/motley3/public_html/blog/index.php on line 1

    Any ideas/solutions???

    Thanks

Viewing 15 replies - 1 through 15 (of 29 total)
  • Try changing to the default theme and see if the problem disappears.

    Thread Starter funkyblog

    (@funkyblog)

    Thanks esmi… but unfortunately I can’t even get into the admin (wp-admin) section of my blog.

    Any other ideas???

    Parse error: syntax error, unexpected T_VARIABLE in /home/motley3/public_html/blog/index.php on line 1

    What version of WordPress are you using?

    It could be something silly like an empty space in the index.php…

    Open the file and see if theres any extra lines at the end or start…

    Before the first
    <?php
    and after the last..
    ?>

    If so delete the extra line/space, save and try again….

    I could be totally wrong of course, but i’ve had that happen, and removing the space did help… worth a shot!.. πŸ™‚

    I have the exact same problem since yesterday.. can’t access admin or main page right now… help!

    When I go on the main page it’s completely white, page source is empty.

    When I go in the admin panel it says :

    Parse error: syntax error, unexpected T_VARIABLE in /home/xxxxx/public_html/xxxxx.com/wp-config.php on line 1

    Thread Starter funkyblog

    (@funkyblog)

    Hey esmi… I’m not sure which version, but I know it’s not the latest.

    t31os… Thanks for the suggestion. I checked the index.php file and no spaces before or after the tags you mentioned. So that wasn’t it.

    matduke… strange how this just happened to both of us. Do you know what version of WordPress you’re using?

    funkyblog,

    paste the contents of this file:

    /home/motley3/public_html/blog/index.php

    for us here please.

    pretty sure I have the last one. I’m pretty sure we both got hacked. I am with Cirtex Hosting, you?

    @matduke: Different file. Do you have a local copy of your wp-config.php file? If not grab a copy of wp-config-sample.php from a download that matches your WordPress version. Re-construct your wp-config.php file and upload it to your wordpress folder.

    Ok I’ll try this. However I think maybe more files were infected.

    <?php if(!function_exists(‘tmp_lkojfghx’))

    This is the beginning of the apparently injected code in config.php

    matduke, and youre hacked.

    thats why its nice to paste whats in the file. Like Ive asked the other person to do.

    Do you think my SQL databases were touched?

    I’m quite new to WordPress, and I don’t know where to start to get how out this mess… πŸ™

    I’m almost certain I’m running 2.7.1…

    Readme says 2.7 but I checked 2.7.1 readme and it also says 2.7.1.. I installed it quite recently too. Maybe it’s a plug-in that caused it.

    Anyways, now I need to get it back up and pray I didn’t lose anything =/

    Yeah, actually, it looks to be a very common hack.

    It’s googlable, and here’s some other threads on here, even:

    http://wordpress.org/search/tmp_lkojfghx?forums=1

    I knew I recognized it.

    If you google it, its not specific to wordpress, either. Im inclined to think these are server issues more than anything. (like the ixhosting issue)

    do an nslookup on your domain name, and give me the IP — Om wondering if I might find other sites on the same server with your problem.

    67.159.44.19

    Funnily, right now it’s down. First time I’m there to see it down in 2 years. Just when I was trying to fix my blog.

    do an nslookup on your domain name, and give me the IP — Om wondering if I might find other sites on the same server with your problem.

    nevermind on that, I found your blog (lolita). Off to find other sites.

Viewing 15 replies - 1 through 15 (of 29 total)
  • The topic ‘unexpected T_VARIABLE’ is closed to new replies.