19 replies
I just got my site up and running and then BAMMM I was hit with this error.


Warning: Cannot modify header information - headers already sent by (output started at /home/tiffanyg/public_html/straightforwardlifecoach.com/index.php(1) : eval()'d code:37) in /home/tiffanyg/public_html/straightforwardlifecoach.com/wp-includes/pluggable.php on line 896

I have searched for days about this. Most claim its blank lines in the coding which I downloaded many files checked them they are all fine. Now what the coding is on that exact line is this.
header("Location: $location", true, $status);

And now here is the coding around it.

function wp_redirect($location, $status = 302) {
global $is_IIS;

$location = apply_filters('wp_redirect', $location, $status);
$status = apply_filters('wp_redirect_status', $status, $location);

if ( !$location ) // allows the wp_redirect filter to cancel a redirect
return false;

$location = wp_sanitize_redirect($location);

if ( !$is_IIS && php_sapi_name() != 'cgi-fcgi' )
status_header($status); // This causes problems on IIS and some FastCGI setups
header("Location: $location", true, $status);
}
endif;

if ( !function_exists('wp_sanitize_redirect') ) :

Some claim I got hacked other says its a redirect problem. I am going nuts. I am not a coder or programmer, I have no idea what I need to do.

I guess I could wipe it clean but then again I don't have a fresh copy of the template I paid a good amount of money for (stupid me). He just uploaded it to my wordpress since I didn't know how to do it myself.

Since then I have learned how to do a lot of stuff and could with a lot of time, figure out how to re-install wordpress, the theme, all my pluggins, etc...

Is this what I really need to do? It seems like their could be a much simpler fix to this.

I am extremely frustrated and rather stupid.
#wordpress
  • Profile picture of the author DeborahDera
    Did you install a new plug-in? What changes or modifications did you make right before the error occurred (if any)?
    {{ DiscussionBoard.errors[4004063].message }}
  • Profile picture of the author Kecia
    I would contact the owner of the theme you purchase and ask for a copy that you can have on your computer. A simple re-install of the theme could solve the problem, and you can upload it yourself if you go to the Appearance tab in your WP admin. Plus, you may need the theme files in the future so it'd be a good idea to get them.
    Signature
    KeciaHambrick.com - Blogger. Content Creator. Social Media Enthusiast.
    {{ DiscussionBoard.errors[4004105].message }}
    • Profile picture of the author a1Derek
      Try learning WP yourself, I am a complete technical "bone-head" and it only took me a couple of months to get reasonably good at it...it's not difficult.

      Aaron Leighton is currently offering a good free basic WP course as is Sandi Krakowski look either of them up on Google and I'm sure you'll find them.

      Good luck!
      Signature
      Affiliate Marketing Secrets Revealed - The dirty, rotten secrets that stop you
      winning the affiliate marketing game
      Just Click HERE

      Internet Marketing - Plain and Simple
      {{ DiscussionBoard.errors[4004135].message }}
  • Profile picture of the author wicked1
    I would probably first start by removing all the plugins from the plugins directory (You could just copy them to a new location so you can put them back later. I would then check to see if the site comes up. If it does, then there is a conflict with one of the plugins. If not, I would probably remove the theme you add and again check to see if there are any problems. At that point, you should have just the basic wp install. If that doesn't work, I would just go in and reinstall wordpress. Shouldn't take more than a couple of minutes if you fantasico or some other wordpress installer within your hosting control panel.
    {{ DiscussionBoard.errors[4004113].message }}
  • Profile picture of the author Istvan Horvath
    How to read error messages:

    Warning: Cannot modify header information - headers already sent by (output started at /home/tiffanyg/public_html/straightforwardlifecoach.com/index.php(1) : eval()'d code:37) in /home/tiffanyg/public_html/straightforwardlifecoach.com/wp-includes/pluggable.php on line 896
    Always look at what is in bold above: the file name and line number (1) where the problem is. In this case could be as simple as an empty space at the very beginning of the file or some unwanted characters - in case you used a bad editor.
    Signature

    {{ DiscussionBoard.errors[4004656].message }}
    • Profile picture of the author RhondaG
      Thanks Istvan, I didn't know about looking for what was in bold.
      {{ DiscussionBoard.errors[4004802].message }}
      • Profile picture of the author LoveGrowth
        It wasn't the blank space problem as it usually is.

        However after asking this question in a million different places, I found the problem was in my index.php which was encrypted. I deleted it and then had my hosting check and clean my site.

        This has solved the problem. I then changed all of my passwords.

        The next problem is I purchased this theme from a developer on guru.com which he was great when he was working with me and the theme was exactly as I wanted. But now when I ask him for the files (as I can see it is a good idea to have them myself) he avoids the subject.

        I think I could now zip the theme files and save them since its all cleaned up. But it would have been nice to have a completely fresh and clean saved copy of the theme.

        Thank you to everyone who helped me. I appreciate it.
        {{ DiscussionBoard.errors[4008672].message }}
  • Profile picture of the author Istvan Horvath
    the problem was in my index.php which was encrypted.
    The lesson: never install anything encoded/encrypted on your own site. If the guy you paid gave you an encrypted theme... I'd sue/beat/kick him.
    Signature

    {{ DiscussionBoard.errors[4008881].message }}
  • Profile picture of the author Mike Baker
    This is why it is always better to test everything on a local install of Wordpress before attempting to install it on your host.
    Signature

    {{ DiscussionBoard.errors[4009173].message }}
  • Profile picture of the author vivaarturo
    try uninstalling one plugin at a time then reload the page this should hopefully fix the error. had this happen on one of my sites
    {{ DiscussionBoard.errors[4009282].message }}
    • Profile picture of the author LoveGrowth
      Thank you.

      It looks like its a hacking. Problem is I had my hosting company clean up all my sites, which "bad stuff" was found on several files.

      The website loaded fine for a few and then today I check and its back.

      So so so tired of this problem. I have no idea of how to find how this is happening or where the software is coming from. So I have two options, completely wipe it clean or pay for some site security company to fix it for me (who knows how much that will be.)

      I don't understand why someone would create something that does this.
      {{ DiscussionBoard.errors[4024128].message }}
    • Profile picture of the author LoveGrowth
      Originally Posted by vivaarturo View Post

      try uninstalling one plugin at a time then reload the page this should hopefully fix the error. had this happen on one of my sites
      I just tried this and it worked beautifully!!! So does that just mean it was a plugin problem and not a hacking or does it mean they were using one of the plugins as their way in to hack?
      {{ DiscussionBoard.errors[4024380].message }}
  • Profile picture of the author Claire Sharp
    That's a crap! Never ever install an encoded in your site. Better ask some help from the expert to avoid trouble in your site.
    {{ DiscussionBoard.errors[4024779].message }}
  • Profile picture of the author jaybaker
    Let me know if you have any further Qs on Wordpress. Feel free to PM for future help.
    Signature

    Do you want to make successes or excuses? Success? Alright then... See what's in store for you....
    - The AC Assassin

    {{ DiscussionBoard.errors[4025140].message }}
  • Profile picture of the author GeorgR.
    There is something encrypted/coded in your "pluggable" plugin, and the bad thing is you will never know what it does since it's encoded....therefore also not (easily) fixable or even traceable what it does.

    I would remove it immediately..obviously it screws up your WP blog.
    Signature
    *** Affiliate Site Quick --> The Fastest & Easiest Way to Make Affiliate Sites!<--
    -> VISIT www.1UP-SEO.com *** <- Internet Marketing, SEO Tips, Reviews & More!! ***
    *** HIGH QUALITY CONTENT CREATION +++ Manual Article Spinning (Thread Here) ***
    Content Creation, Blogging, Articles, Converting Sales Copy, Reviews, Ebooks, Rewrites
    {{ DiscussionBoard.errors[4026830].message }}
    • Profile picture of the author Istvan Horvath
      Originally Posted by GeorgR. View Post

      There is something encrypted/coded in your "pluggable" plugin, and the bad thing is you will never know what it does since it's encoded....therefore also not (easily) fixable or even traceable what it does.

      I would remove it immediately..obviously it screws up your WP blog.
      Are you saying this based on the error message the OP posted? Or you have some insider information that we don't have?

      As for reading the error messages, see my post above.
      Signature

      {{ DiscussionBoard.errors[4026856].message }}
      • Profile picture of the author LoveGrowth
        If only I knew this before. I asked my hosting to check and clean my site once again and I explained this all keeps happening.

        They said they would do a thorough check, then instructed me to update all versions of wordpress and change all passwords.

        They claim they found the "backdoor" in a functions.php file from a very outdated wordpress site. They claim they cleaned all files on all my sites and they will continue to check every two hours for the next day.

        The next day I received an email saying that the sites were completely cleaned and the "backdoor" was fixed.

        All I know is that my sites now work great and hostgator did it all for me for nothing. After I spent weeks and weeks on this.

        I learned my lesson, next time ask your hosting to scan, check and clean the files.

        I am also now backing up all of my files.
        {{ DiscussionBoard.errors[4036070].message }}

Trending Topics