Forums / General Questions / Broke my Admin

Broke my Admin

Locked

Views: 1,475

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
13 Apr 2007, 8:34 PM
#1
mka0202 avatar

mka0202

New Zenner

Join Date:
Sep 2006
Posts:
14
Plugin Contributions:
0

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

13 Apr 2007, 8:55 PM
#2
birdoasis avatar

birdoasis

Inactive

Join Date:
Jun 2005
Location:
Cheney WA
Posts:
1,123
Plugin Contributions:
0

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.

John Patrick
A Zen Cart Advocate!

13 Apr 2007, 9:53 PM
#3
mka0202 avatar

mka0202

New Zenner

Join Date:
Sep 2006
Posts:
14
Plugin Contributions:
0

Re: Broke my Admin

Hi yes password was wrong and have updated but fault remains

Mark

13 Apr 2007, 11:34 PM
#4
fourbit avatar

fourbit

Zen Follower

Join Date:
Sep 2004
Location:
MONTANA!!!
Posts:
97
Plugin Contributions:
0

Re: Broke my Admin

Howdy Mark,

What were you editing before the breakage?

logger.php?

Or, what mod were you adding?

Beeee the space between the drops!
[email protected]
Hosting Duo - We're in this together!

14 Apr 2007, 6:20 AM
#5
mka0202 avatar

mka0202

New Zenner

Join Date:
Sep 2006
Posts:
14
Plugin Contributions:
0

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

15 Apr 2007, 6:32 AM
#6
mka0202 avatar

mka0202

New Zenner

Join Date:
Sep 2006
Posts:
14
Plugin Contributions:
0

Re: Broke my Admin

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

15 Apr 2007, 6:41 AM
#7
drbyte avatar

drbyte

Sensei

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

Re: Broke my Admin

mka0202:

headers already sent by (output started at /data01/****/public_html/admin/includes/classes/logger.php:105Your 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.

15 Apr 2007, 7:00 AM
#8
mka0202 avatar

mka0202

New Zenner

Join Date:
Sep 2006
Posts:
14
Plugin Contributions:
0

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
//
// +----------------------------------------------------------------------+
// |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", 3, STORE_PAGE_PARSE_TIME_LOG);
    }
  }
?>
15 Apr 2007, 7:16 AM
#9
mka0202 avatar

mka0202

New Zenner

Join Date:
Sep 2006
Posts:
14
Plugin Contributions:
0

Re: Broke my Admin

Sorry forgot to mention there is no line 105

Mark