Thread: Broke my Admin

Results 1 to 9 of 9
  1. #1
    Join Date
    Sep 2006
    Posts
    14
    Plugin Contributions
    0

    Default Broke my Admin

    Yes i admit to it have broke the admin on my site, not sure what i have di=one but getting following error messages and can no longer log in.......................HELP! PLEASE!

    Have tried restoring and same fault:

    Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /data01/****/public_html/admin/includes/classes/logger.php:105) in /data01/****/public_html/includes/functions/sessions.php on line 100

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /data01/****/public_html/admin/includes/classes/logger.php:105) in /data01/****/public_html/includes/functions/sessions.php on line 100

    Warning: Cannot modify header information - headers already sent by (output started at /data01/****/public_html/admin/includes/classes/logger.php:105) in /data01/****/public_html/admin/includes/init_includes/init_templates.php on line 69

    once log it get this:

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /data01/****/public_html/admin/includes/classes/logger.php:105) in /data01/****/public_html/includes/functions/sessions.php on line 100

    Warning: Cannot modify header information - headers already sent by (output started at /data01/****/public_html/admin/includes/classes/logger.php:105) in /data01/****/public_html/admin/includes/init_includes/init_templates.php on line 69

    Warning: Cannot modify header information - headers already sent by (output started at /data01/****/public_html/admin/includes/classes/logger.php:105) in /data01/****/public_html/admin/includes/functions/general.php on line 34

    Thank you in advance

    Mark

  2. #2
    Join Date
    Jun 2005
    Location
    Cheney WA
    Posts
    1,134
    Plugin Contributions
    0

    Default Re: Broke my Admin

    Mark,

    check your configure.php file and make sure you have the right username and password for the mysql database connections.

    Not sure if this is it, but I have a feeling that your not connecting to the db.

  3. #3
    Join Date
    Sep 2006
    Posts
    14
    Plugin Contributions
    0

    Default Re: Broke my Admin

    Hi yes password was wrong and have updated but fault remains

    Mark

  4. #4
    Join Date
    Sep 2004
    Location
    MONTANA!!!
    Posts
    105
    Plugin Contributions
    0

    Default Re: Broke my Admin

    Howdy Mark,

    What were you editing before the breakage?

    logger.php?

    Or, what mod were you adding?

  5. #5
    Join Date
    Sep 2006
    Posts
    14
    Plugin Contributions
    0

    Default Re: Broke my Admin

    Hi Paul

    Apologies perhaps should have provided more information, was installing the "Green Tea" admin plugin, backed up all files before commencement, decided did not like so restored previous files.

    PHP files changed; login.php & index.php

    So now have no access to admin and also wesite is directing to nddbc.html, have checked the sql database is all ok and up.

    Checked passwords last night as previous post and if enter wrong password gos to unable to connect to db so passwords are correct.

    Thank you

    Mark

  6. #6
    Join Date
    Sep 2006
    Posts
    14
    Plugin Contributions
    0

    Default Broken admin and site is down

    Installed the "Green Tea" admin plugin, backed up all files before commencement, decided did not like so restored previous files.

    PHP files changed; login.php & index.php

    So now have no access to admin and also wesite is directing to nddbc.html, have checked the sql database is all ok and up.

    This is messge displayed at login: (also login box is left aligned)

    Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /data01/****/public_html/admin/includes/classes/logger.php:105) in /data01/****/public_html/includes/functions/sessions.php on line 100

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /data01/****/public_html/admin/includes/classes/logger.php:105) in /data01/****/public_html/includes/functions/sessions.php on line 100

    Warning: Cannot modify header information - headers already sent by (output started at /data01/****/public_html/admin/includes/classes/logger.php:105) in /data01/****/public_html/admin/includes/init_includes/init_templates.php on line 69

    once log it get this:

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /data01/****/public_html/admin/includes/classes/logger.php:105) in /data01/****/public_html/includes/functions/sessions.php on line 100

    Warning: Cannot modify header information - headers already sent by (output started at /data01/****/public_html/admin/includes/classes/logger.php:105) in /data01/****/public_html/admin/includes/init_includes/init_templates.php on line 69

    Warning: Cannot modify header information - headers already sent by (output started at /data01/****/public_html/admin/includes/classes/logger.php:105) in /data01/****/public_html/admin/includes/functions/general.php on line 34

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

    Default Re: Broken admin and site is down

    Quote Originally Posted by mka0202 View Post
    headers already sent by (output started at /data01/****/public_html/admin/includes/classes/logger.php:105
    Your error is at line 105 in the file mentioned.

    Here's an FAQ on the topic:
    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.

  8. #8
    Join Date
    Sep 2006
    Posts
    14
    Plugin Contributions
    0

    Default Re: Broke my Admin

    Hi thank you for reply but have looked at file and still at a total loss with it here is a copy of logger.php perhaps you could advise me. Thank you

    PHP Code:
    <?php
    //
    // +----------------------------------------------------------------------+
    // |zen-cart Open Source E-commerce                                       |
    // +----------------------------------------------------------------------+
    // | Copyright (c) 2003 The zen-cart developers                           |
    // |                                                                      |   
    // | http://www.zen-cart.com/index.php                                    |   
    // |                                                                      |   
    // | Portions Copyright (c) 2003 osCommerce                               |
    // +----------------------------------------------------------------------+
    // | This source file is subject to version 2.0 of the GPL license,       |
    // | that is bundled with this package in the file LICENSE, and is        |
    // | available through the world-wide-web at the following url:           |
    // | http://www.zen-cart.com/license/2_0.txt.                             |
    // | If you did not receive a copy of the zen-cart license and are unable |
    // | to obtain it through the world-wide-web, please send a note to       |
    // | [email protected] so we can mail you a copy immediately.          |
    // +----------------------------------------------------------------------+
     
    //  $Id: logger.php 1969 2005-09-13 06:57:21Z drbyte $
    //
     
      
    class logger {
        var 
    $timer_start$timer_stop$timer_total;
     
    // class constructor
        
    function logger() {
          
    $this->timer_start();
        }
     
        function 
    timer_start() {
          if (
    defined("PAGE_PARSE_START_TIME")) {
            
    $this->timer_start PAGE_PARSE_START_TIME;
          } else {
            
    $this->timer_start microtime();
          }
        }
        function 
    timer_stop($display 'false') {
          
    $this->timer_stop microtime();
          
    $time_start explode(' '$this->timer_start);
          
    $time_end explode(' '$this->timer_stop);
          
    $this->timer_total number_format(($time_end[1] + $time_end[0] - ($time_start[1] + $time_start[0])), 3);
          
    $this->write($_SERVER['REQUEST_URI'], $this->timer_total 's');
          if (
    $display == 'true') {return $this->timer_display();
    }
    }
     
        function 
    timer_display() {
          return 
    '<span class="smallText">Parse Time: ' $this->timer_total 's</span>';
        }
     
        function 
    write($message$type) {
          
    error_log(strftime(STORE_PARSE_DATE_TIME_FORMAT) . ' [' $type '] ' $message "\n"3STORE_PAGE_PARSE_TIME_LOG);
        }
      }
    ?>

  9. #9
    Join Date
    Sep 2006
    Posts
    14
    Plugin Contributions
    0

    Default Re: Broke my Admin

    Sorry forgot to mention there is no line 105

    Mark

 

 

Similar Threads

  1. v151 I broke my admin panel
    By vojtechjan in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 8 Apr 2014, 05:53 PM
  2. Something broke after moving admin
    By kalastaja in forum General Questions
    Replies: 6
    Last Post: 17 Oct 2012, 03:12 AM
  3. v138a I broke my admin login!
    By soundlizard in forum Basic Configuration
    Replies: 1
    Last Post: 1 Feb 2012, 07:39 AM
  4. Broke my Admin - please help.
    By StevenB in forum General Questions
    Replies: 1
    Last Post: 22 Jul 2007, 10:33 PM
  5. Customized language - broke admin area
    By sympria in forum Customization from the Admin
    Replies: 0
    Last Post: 26 Jan 2007, 07:12 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