Results 1 to 9 of 9
  1. #1
    Join Date
    Nov 2008
    Posts
    3
    Plugin Contributions
    0

    Default error when trying to log into admin after changing admin name

    I have just made changes to my admin/includes/configue.php file and change the admin name to a new security name which is the same as what I change in the configue file. I now cannot log into my admin folder, I get the following message,

    Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/content/#####/html/testsec/includes/configure.php:1) in /home/content/#####/html/includes/functions/sessions.php on line 108

    Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/content/#####/html/testsec/includes/configure.php:1) in /home/content/#####/html/includes/functions/sessions.php on line 108

    Warning: Cannot modify header information - headers already sent by (output started at /home/content/#####/html/testsec/includes/configure.php:1) in /home/content/#####/html/testsec/includes/init_includes/init_templates.php on line 36

    Warning: Cannot modify header information - headers already sent by (output started at /home/content/#####/html/testsec/includes/configure.php:1) in /home/content/#####/html/testsec/includes/functions/
    general.php on line 21

    I have change to new admin same in the above example for security reasons. My website seems to be working ok at this time.

    I am using Zen-Cart 1.3.8

    Thanks for your help

    Jerry

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: error when trying to log into admin after changing admin name

    Quote Originally Posted by pcrcanada View Post
    Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/content/#####/html/testsec/includes/configure.php:1) ...
    You probably have a blank line or space, or some other invalid character on line 1 of that file.
    Related FAQ: https://www.zen-cart.com/tutorials/index.php?article=87
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    May 2008
    Posts
    6
    Plugin Contributions
    0

    Default Re: error when trying to log into admin after changing admin name

    I am having the same problem:

    Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/content/xxx/includes/configure.php:1) in /home/content/xxx/includes/functions/sessions.php on line 108

    Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/content/xxx/includes/configure.php:1) in /home/content/xxx/includes/functions/sessions.php on line 108

    Warning: Cannot modify header information - headers already sent by (output started at /home/content/xxx/adminkej55/includes/configure.php:1) in /home/content/xxx/includes/init_includes/init_templates.php on line 36

    I have confirmed several times that there is no blank line or characters in confirgure.php at line 1. Nothing before <?php and nothing after ?>

  4. #4
    Join Date
    May 2008
    Posts
    6
    Plugin Contributions
    0

    Default Re: error when trying to log into admin after changing admin name

    Just one other possible point -- my site was upgraded to PHP 5 at the same basic time. Would this better explain the problem?

  5. #5
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: error when trying to log into admin after changing admin name

    PHP5 should have nothing to do with it.

    What editor did you use to edit the configure.php file? It sounds like you've got hidden characters at the beginning of the file, which is a classic indication of using an editor that's set to UTF8-With-BOM mode instead of UTF8-without-BOM or just plain ANSI/text/ascii instead.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    May 2008
    Posts
    6
    Plugin Contributions
    0

    Default Re: error when trying to log into admin after changing admin name

    Originally I had used MS Expression Web but subsequently I have just used Notepad. Maybe create a new text file and copy into it??

  7. #7
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: error when trying to log into admin after changing admin name

    Quote Originally Posted by Big_K View Post
    Originally I had used MS Expression Web
    EEKS ... I would NEVER trust an MS application to edit anything on my website. Ever. Way too much crap and unreliable in my experience.
    Quote Originally Posted by Big_K View Post
    Maybe create a new text file and copy into it??
    Probably a good start.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #8
    Join Date
    May 2008
    Posts
    6
    Plugin Contributions
    0

    Default Re: error when trying to log into admin after changing admin name

    Well, the new text file seemed to do it. Unfortunately MS Expression Web was the default for *.php files so that is why it opened it automatically. Notepad from now on. Thanks!

  9. #9
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: error when trying to log into admin after changing admin name

    You'll enjoy Notepad++ better. http://notepad-plus.sf.net
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Replies: 6
    Last Post: 28 Dec 2012, 09:38 PM
  2. v139h Cannot log in into admin after changing host
    By ekele in forum General Questions
    Replies: 2
    Last Post: 2 Sep 2012, 09:17 PM
  3. Error trying to Log Into Admin: Call to undefined function
    By jaxbakers in forum Upgrading to 1.5.x
    Replies: 13
    Last Post: 6 Jan 2012, 10:31 PM
  4. Cannot log into admin after changing directory name
    By brennen in forum Customization from the Admin
    Replies: 4
    Last Post: 13 Sep 2010, 05:11 PM
  5. 500 Internal Server Error when trying to log into admin
    By kbalona in forum General Questions
    Replies: 3
    Last Post: 3 May 2007, 11:29 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR