Zen Cart Logo
Forums / Basic Configuration / I Broke Admin, But Don't Know How

I Broke Admin, But Don't Know How

Locked

Views: 1,187

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
2 Apr 2007, 11:02 AM
#1
bobguindon avatar

bobguindon

New Zenner

Join Date:
Apr 2007
Posts:
30
Plugin Contributions:
0

I Broke Admin, But Don't Know How

I performed a new installation on my site, using fantastico. I then ordered and installed a SSL cert., and edited includes/configure.php and admin/includes/configure.php per the instructions at: https://www.zen-cart.com/tutorials/index.php?article=14.

So far, so good. I made a few changes in the admin section, and realized that SSL only worked during admin login. I re-read the tutorial, and found the note at the bottom of the page:

NOTE: As of v1.3.x, the Admin area can only secure the "login" page via SSL unless you set the HTTP_SERVER in your "admin/includes/configure.php" to an SSL URL, in which case the entire admin area will be treated as SSL rather than only selected relevant pages.

I edited admin/includes/configure.php as follows:
from: define('HTTP_SERVER', 'http://www.superphones.com');
to: define('HTTP_SERVER', 'https://www.superphones.com');

Now, whenever I browse to: http://www.superphones.com/admin, I get the following error:

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

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

Warning: Cannot modify header information - headers already sent by (output started at /home/super/public_html/admin/includes/configure.php:92) in /home/super/public_html/admin/includes/init_includes/init_templates.php on line 36

Warning: Cannot modify header information - headers already sent by (output started at /home/super/public_html/admin/includes/configure.php:92) in /home/super/public_html/admin/includes/functions/general.php on line 34

I changed admin/includes/configure.php back to the way it was, and still get the error. I can't see anything that I may have inadvertently changed.

I suppose that I could simply delete and re-install zen-cart, but I would much rather understand what I did wrong. Any ideas?

2 Apr 2007, 11:54 AM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: I Broke Admin, But Don't Know How

If you used a "generic" text editor (or perhaps the editor in C-Panel), it is likely that a CHARACTER SPACE or CARRIAGE RETURN has crept in after the final CLOSING TAG. (?>).

Get yourself a GOOD text editor such as CRIMSON (free to download off the web) and ONLY edit your files using this editor.

Then, by opening up your FTP client, set it up to EDIT files using the better text editor (eg: Crimson).

Then, login (via ftp) to your server, and EDIT the configure.php files using Crimson editor.

Check to see if there are blank spaces after the final "?>" at the end of the files, or at the TOP, where it starts " <?php "

If you have letter spaces after these tags, remove them.

2 Apr 2007, 12:15 PM
#3
bobguindon avatar

bobguindon

New Zenner

Join Date:
Apr 2007
Posts:
30
Plugin Contributions:
0

Re: I Broke Admin, But Don't Know How

[quote=schoolboy;352239]If you used a "generic" text editor (or perhaps the editor in C-Panel), it is likely that a CHARACTER SPACE or CARRIAGE RETURN has crept in after the final CLOSING TAG. (?>)./quote]

Thanks for the great advice! There were a couple of blank lines after the closing tag. Removing them solved the problem. So simple, yet it never would have occurred to me. Thanks, again.

Bob