• Hi everyone,
    The hack was running great, but all of the sudden it started giving me the following warnings:
    Warning: Cannot modify header information – headers already sent by (output started at /home/frankper/public_html/index.php:17) in /home/frankper/public_html/wp-last-visit.php on line 132
    Warning: Cannot modify header information – headers already sent by (output started at /home/frankper/public_html/index.php:17) in /home/frankper/public_html/wp-last-visit.php on line 192
    Warning: Cannot modify header information – headers already sent by (output started at /home/frankper/public_html/index.php:17) in /home/frankper/public_html/wp-last-visit.php on line 215
    I’ve checked the code and all I can see in all three lines is this 😉 thing.
    I downloaded it again and installed it but it keeps warning me about the same things.
    I don’t know what could’ve happened because I didn’t edit the code at all, all I did was to translate it a little bit to spanish. It was running well as I said.
    Any help will be appreciated.
    Greetings,

Viewing 4 replies - 1 through 4 (of 4 total)
  • I already posted about this a while back.
    Some editors (including Windows Notepad in win2000 and up, I believe) use the convention of marking Unicode files with ‘FFFE’ in the beginning. When opening the files that start like this, they assume they are unicode and shift to unicode mode, removing those two bytes from the beginning. Unfortunately this convention is not a standard and breaks a great many things, including php – it makes php start the output when the file does not immediately start with <?php – and this is not easy to detect, because when you open this file, you see that it does, because your software removes those two bytes again.
    It appears that this is a probable cause of your problems, the only way to fix this is to try another editor which does not follow this silly convention and check your index.php.

    Thread Starter franpereiro

    (@franpereiro)

    Thanks KAShirow, I will try that. I already got rid of the script because of all of the silly warnings. I will reinstall it and edit it with another editor like HTML-Kit, won’t use the notepad for this.
    I appreciate your prompt response,
    Greetings,

    I wish people would search on the error, this has been asked and answered many times. Usually it is an extra line break or space after the closing PHP tag in the file.

    Making some way to programmatically find the exact cause of this error and tell the user exactly what to do with it sounds like a good idea…

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Problem with since last visit hack’ is closed to new replies.