Zen Cart Logo
Forums / General Questions / error when trying to log into admin after changing admin name

error when trying to log into admin after changing admin name

Locked

Views: 1,983

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
28 Jun 2009, 11:46 PM
#1
pcrcanada avatar

pcrcanada

New Zenner

Join Date:
Nov 2008
Posts:
3
Plugin Contributions:
0

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

29 Jun 2009, 12:34 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

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

pcrcanada:

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

29 Jun 2009, 1:10 AM
#3
big_k avatar

big_k

New Zenner

Join Date:
May 2008
Posts:
6
Plugin Contributions:
0

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 **?>

29 Jun 2009, 5:20 PM
#4
big_k avatar

big_k

New Zenner

Join Date:
May 2008
Posts:
6
Plugin Contributions:
0

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?

29 Jun 2009, 6:23 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

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.

29 Jun 2009, 7:14 PM
#6
big_k avatar

big_k

New Zenner

Join Date:
May 2008
Posts:
6
Plugin Contributions:
0

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??

29 Jun 2009, 7:27 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

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

Big_K:

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.
Big_K:

Maybe create a new text file and copy into it??Probably a good start.

29 Jun 2009, 7:50 PM
#8
big_k avatar

big_k

New Zenner

Join Date:
May 2008
Posts:
6
Plugin Contributions:
0

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!

29 Jun 2009, 7:51 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

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

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