Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2007
    Posts
    31
    Plugin Contributions
    0

    Default 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. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default 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.
    20 years a Zencart User

  3. #3
    Join Date
    Apr 2007
    Posts
    31
    Plugin Contributions
    0

    Default 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

 

 

Similar Threads

  1. I don't know if this is possible but...
    By softget in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 8 Feb 2007, 03:48 PM
  2. HELP! need changes but don't know how.
    By kogepan in forum Templates, Stylesheets, Page Layout
    Replies: 13
    Last Post: 9 Jul 2006, 05:59 AM
  3. how to set up the payment(read instructions already, but still don;t know)?
    By lina0962 in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 12 Jun 2006, 07:15 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
  •  
disjunctive-egg