Page 1 of 2 12 LastLast
Results 1 to 10 of 19
  1. #1
    Join Date
    Oct 2008
    Posts
    17
    Plugin Contributions
    0

    Default Admin Login Problem, Need Help!

    In trying to login to my admin, I get this message, and cannot access:
    Warning: Cannot modify header information - headers already sent by (output started at /home/teambrun/public_html/soccer-uniforms.com/admin/includes/application_top.php:1) in /home/teambrun/public_html/soccer-uniforms.com/admin/includes/application_top.php on line 114

    Line 114 reads:
    header('location: zc_install/index.php');Anybody see the problem, cause, I'm lost! Thank you,

    Fred
    [FONT="Arial"]F-1 Market Solutions, LLC
    San Diego, CA
    [/FONT]

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Admin Login Problem, Need Help!

    Look to the file that spawned the error
    Code:
    output started at /home/teambrun/public_html/soccer-uniforms.com/admin/includes/application_top.php:1
    application_top.php:1

    The "1" means line one
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Admin Login Problem, Need Help!

    Take a look at your /home/teambrun/public_html/soccer-uniforms.com/admin/includes/application_top.php file.

    Is there anything before the first "<?php" tag?

    Is part of the tag missing i.e. the 1st line starts "?php"?

    Also, you have other problems as well. That Zen Cart is trying to get the installation folder shows that it either can't find your configure.php files or can't find your database.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  4. #4
    Join Date
    Oct 2008
    Posts
    17
    Plugin Contributions
    0

    Default Re: Admin Login Problem, Need Help!

    All that is on line 1 is the following, is this not correct:
    <?php
    Thank you!
    Fred
    [FONT="Arial"]F-1 Market Solutions, LLC
    San Diego, CA
    [/FONT]

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Admin Login Problem, Need Help!

    Check that it is line 1 and there is no clank line before it
    Also check that there is no space before or after
    <?php

    And you are looking at the
    admin/includes/application_top.php file
    Zen-Venom Get Bitten

  6. #6
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Admin Login Problem, Need Help!

    Are you looking at the version on your server or a local copy on your PC or Mac?

    If it is the server version, there may be a non-displayable character before the tag. Have your editor display all characters including those not normally displayed.

    As a last resort, remove the first line contents completely by going to the end and keep hitting backspace several times more than there are characters on the line and then re-enter them.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  7. #7
    Join Date
    Oct 2008
    Posts
    17
    Plugin Contributions
    0

    Default Re: Admin Login Problem, Need Help!

    Yes, these are lines 1-3 from the file on the server:
    <?php
    /**
    * application_top.php Common actions carried out at the start of each page invocation.
    [FONT="Arial"]F-1 Market Solutions, LLC
    San Diego, CA
    [/FONT]

  8. #8
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Admin Login Problem, Need Help!

    Either you're looking at the wrong application_top file, or your store's application_top has overwritten your admin version.

    The file causing your problem is admin/includes/application_top.php
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  9. #9
    Join Date
    Oct 2008
    Posts
    17
    Plugin Contributions
    0

    Default Re: Admin Login Problem, Need Help!

    Yep. Below is the entire file. I've done nothing to change it, but am happy to do so - whatever it takes so I can get to my admin area again. Thank you!:
    <?php
    /**
    * application_top.php Common actions carried out at the start of each page invocation.
    *
    * Initializes common classes & methods. Controlled by an array which describes
    * the elements to be initialised and the order in which that happens.
    * see {@link http://www.zen-cart.com/wiki/index.p...als#InitSystem wikitutorials} for more details.
    *
    * @package initSystem
    * @copyright Copyright 2003-2006 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: application_top.php 6526 2007-06-25 22:59:38Z drbyte $
    */
    /**
    * boolean if true the autoloader scripts will be parsed and their output shown. For debugging purposes only.
    */
    define('DEBUG_AUTOLOAD', false);
    /**
    * boolean used to see if we are in the admin script, obviously set to false here.
    */
    define('IS_ADMIN_FLAG', false);
    /**
    * integer saves the time at which the script started.
    */
    define('PAGE_PARSE_START_TIME', microtime());
    // define('DISPLAY_PAGE_PARSE_TIME', 'true');
    @ini_set("arg_separator.output","&");
    /**
    * Set the local configuration parameters - mainly for developers
    */
    if (file_exists('includes/local/configure.php')) {
    /**
    * load any local(user created) configure file.
    */
    include('includes/local/configure.php');
    }
    /**
    * set the level of error reporting
    *
    * Note STRICT_ERROR_REPORTING should never be set to true on a production site. <br />
    * It is mainly there to show php warnings during testing/bug fixing phases.<br />
    * note for strict error reporting we also turn on show_errors as this may be disabled<br />
    * in php.ini. Otherwise we respect the php.ini setting
    *
    */
    if (defined('STRICT_ERROR_REPORTING') && STRICT_ERROR_REPORTING == true) {
    @ini_set('display_errors', '1');
    error_reporting(E_ALL);
    } else {
    error_reporting(E_ALL & ~E_NOTICE);
    }
    /**
    * include server parameters
    */
    if (file_exists('includes/configure.php')) {
    /**
    * load the main configure file.
    */
    include('includes/configure.php');
    } else {
    header('location: zc_install/index.php');
    }
    /**
    * if main configure file doesn't contain valid info (ie: is dummy or doesn't match filestructure, goto installer)
    */
    if (!is_dir(DIR_FS_CATALOG.'/includes/classes')) header('location: zc_install/index.php');
    /**
    * include the list of extra configure files
    */
    if ($za_dir = @dir(DIR_WS_INCLUDES . 'extra_configures')) {
    while ($zv_file = $za_dir->read()) {
    if (preg_match('/\.php$/', $zv_file) > 0) {
    /**
    * load any user/contribution specific configuration files.
    */
    include(DIR_WS_INCLUDES . 'extra_configures/' . $zv_file);
    }
    }
    $za_dir->close();
    }
    $autoLoadConfig = array();
    $loader_file = 'config.core.php';
    $base_dir = DIR_WS_INCLUDES . 'auto_loaders/';
    if (file_exists(DIR_WS_INCLUDES . 'auto_loaders/overrides/' . $loader_file)) {
    $base_dir = DIR_WS_INCLUDES . 'auto_loaders/overrides/';
    }
    /**
    * load the default application_top autoloader file.
    */
    include($base_dir . $loader_file);
    if ($loader_dir = dir(DIR_WS_INCLUDES . 'auto_loaders')) {
    while ($loader_file = $loader_dir->read()) {
    if ((preg_match('/^config\./', $loader_file) > 0) && (preg_match('/\.php$/', $loader_file) > 0)) {
    if ($loader_file != 'config.core.php') {
    $base_dir = DIR_WS_INCLUDES . 'auto_loaders/';
    if (file_exists(DIR_WS_INCLUDES . 'auto_loaders/overrides/' . $loader_file)) {
    $base_dir = DIR_WS_INCLUDES . 'auto_loaders/overrides/';
    }
    /**
    * load the application_top autoloader files.
    */
    include($base_dir . $loader_file);
    }
    }
    }
    $loader_dir->close();
    }

    /**
    * determine install status
    */
    if (( (!file_exists('includes/configure.php') && !file_exists('includes/local/configure.php')) ) || (DB_TYPE == '') || (!file_exists('includes/classes/db/' .DB_TYPE . '/query_factory.php'))) {
    header('location: zc_install/index.php');
    exit;
    }
    /**
    * load the autoloader interpreter code.
    */
    require('includes/autoload_func.php');

    /**
    * load the counter code
    **/
    // counter and counter history
    require(DIR_WS_INCLUDES . 'counter.php');

    // get customers unique IP that paypal does not touch
    $customers_ip_address = $_SERVER['REMOTE_ADDR'];
    if (!isset($_SESSION['customers_ip_address'])) {
    $_SESSION['customers_ip_address'] = $customers_ip_address;
    }
    ?>
    [FONT="Arial"]F-1 Market Solutions, LLC
    San Diego, CA
    [/FONT]

  10. #10
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Admin Login Problem, Need Help!

    That's the includes/application_top.php file not the admin/includes/application_top.php file.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Help! I don't need to login to admin
    By 4dw in forum Basic Configuration
    Replies: 3
    Last Post: 6 Nov 2009, 03:42 PM
  2. Need major help with admin login
    By keystonewebworks in forum General Questions
    Replies: 0
    Last Post: 31 Mar 2008, 07:47 PM
  3. Admin Login Problem PLEASE HELP
    By sparkiii in forum General Questions
    Replies: 23
    Last Post: 18 Jan 2008, 10:54 AM
  4. Really need Help!!.. Admin cant login
    By Lighterboy_crew in forum General Questions
    Replies: 3
    Last Post: 6 Oct 2006, 08:48 AM
  5. admin login problem after shared SSL install. Pls HELP!!
    By zenartman in forum Basic Configuration
    Replies: 4
    Last Post: 4 Aug 2006, 05:17 AM

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