Results 1 to 5 of 5

Thread: Cannot modify header information - logging in as admin

  1. #1
    Join Date
    Mar 2005
    Posts
    27

    Question Cannot modify header information - logging in as admin

    When I go to www.mysite.com/admin and login, I receive the following error message(s):

    Warning: Cannot modify header information - headers already sent by (output started at /home/onlybet/public_html/themes/default/msg.php:1) in /home/onlybet/public_html/lib/users.class.php on line 274

    Warning: Cannot modify header information - headers already sent by (output started at /home/onlybet/public_html/themes/default/msg.php:1) in /home/onlybet/public_html/lib/users.class.php on line 284

    Warning: Cannot modify header information - headers already sent by (output started at /home/onlybet/public_html/themes/default/msg.php:1) in /home/onlybet/public_html/lib/users.class.php on line 293

    Warning: Cannot modify header information - headers already sent by (output started at /home/onlybet/public_html/themes/default/msg.php:1) in /home/onlybet/public_html/login.php on line 83
    It would appear that the problem lies in msg.php, which I will admit that I did modify yesterday ;-) I am careful to modify only text in black, not in silver and use the admin panel to make changes when possible.

    2 significant things that I changed yesterday are the email address and website for when people join the mailing list and I also manually added a meta description tag for the index page - which I have since removed.

    I tried following the advice of a similar post in here to close the form tag but that didn't work.

    Any ideas? Anyone? :-)

    Casablanca,

    www.OnlyBet.com

    After reading a post located here, I'd like to add that I made some changes in the admin panel but others I did by editing a file within my FTP editor - I'm not sure if this has any consequence?
    Last edited by seomontreal; 05-05-2005 at 01:52 PM. Reason: Additional Info:

  2. #2
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    its a common problem, check you dont have any spaces at the start of the msg.php file.

    it should go straight into the php tag <?php

    If your still having proplems DONT USE the admin template editor, edit in a html editor and use ftp to upload it (im ASCII mode) it should make it work again... seems strange it only happens in the admin pages though ...
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

  3. #3
    Join Date
    Mar 2005
    Posts
    27

    Default Yay! It worked!

    Quote Originally Posted by inspireme
    its a common problem, check you dont have any spaces at the start of the msg.php file.

    it should go straight into the php tag <?php

    If your still having proplems DONT USE the admin template editor, edit in a html editor and use ftp to upload it (im ASCII mode) it should make it work again... seems strange it only happens in the admin pages though ...
    I FTP'd the file back up after removing the space - thank you!

  4. #4
    Join Date
    Aug 2005
    Posts
    36

    Default

    i am getting same prob cant fix it

    cant log in

    can you help please

  5. #5
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    When modifying .php files, make sure there no space before <? and after ?>

    @amusementlinks:
    make a backup/rename your msg.php to msg1.php
    then reupload original msg.php from indexu distribution file.

Similar Threads

  1. Problem Loggin into Admin CP
    By worldchanger in forum v5.x
    Replies: 8
    Last Post: 01-19-2005, 10:10 AM
  2. Modify admin Summary Report
    By janewest in forum v5.x
    Replies: 3
    Last Post: 07-14-2004, 12:06 AM
  3. Replies: 1
    Last Post: 08-10-2003, 07:02 AM
  4. admin can't login
    By nwbsd in forum v5.x
    Replies: 1
    Last Post: 07-10-2003, 03:23 PM
  5. Getting lots of header errors
    By shalida in forum v5.x
    Replies: 3
    Last Post: 06-24-2003, 07:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •