Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2007
    Posts
    5
    Plugin Contributions
    0

    Default Can't get into Admin - new install

    I am also receiving "Fatal Error" and I cannot access my admin area at all.

    Here is the error message I receive:
    Warning: main(/includes/autoload_func.php) [function.main]: failed to open stream: No such file or directory in E:\meganolson.com\graphiteform.com\catalog\admin\includes\application_top.php on line 149

    Fatal error: main() [function.require]: Failed opening required '/includes/autoload_func.php' (include_path='.;c:\php4\pear') in E:\meganolson.com\graphiteform.com\catalog\admin\includes\application_top.php on line 149
    I've gone ahead and pasted my application_top.php file below

    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: application_top.php 6526 2007-06-25 22:59:38Z drbyte $
    //
    /**
     * File contains just application_top code
     * 
     * Initializes common classes & methods. Controlled by an array which describes
     * the elements to be initialised and the order in which that happens.
     *
     * @package admin
     * @copyright Copyright 2003-2005 zen-cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     */
    /**
     * 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.
     * DO NOT REMOVE THE define BELOW. WILL BREAK ADMIN
     */
    define('IS_ADMIN_FLAG', true);
    /** 
     * integer saves the time at which the script started.
     */
    // Start the clock for the page parse time log
    define('PAGE_PARSE_START_TIME', microtime());
    /**
     * set the level of error reporting
     */
    error_reporting(E_ALL & ~E_NOTICE);
    
    // set php_self in the local scope
    if (!isset($PHP_SELF)) $PHP_SELF = $_SERVER['PHP_SELF'];
    /**
     * 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');
    }
    // Check for application configuration parameters
    if (!file_exists('includes/configure.php')) {
      if (file_exists('../zc_install/index.php')) {
        //header('location: ../zc_install/index.php');
        echo 'ERROR: Admin configure.php not found. Suggest running install? <a href="../zc_install/index.php">Click here for installation</a>';
      } else {
        die('ERROR: admin/includes/configure.php file not found. Suggest running zc_install/index.php?');
      }
    }
    /**
     * load the main configure file.
     */
    require('includes/configure.php');
    /**
     * ignore version-check if INI file setting has been set
     */
    if (file_exists(DIR_FS_ADMIN . 'includes/local/skip_version_check.ini')) {
      $lines=@file(DIR_FS_ADMIN . 'includes/local/skip_version_check.ini');
      foreach($lines as $line) {
        if (substr($line,0,14)=='admin_configure_php_check=') $check_cfg=substr(trim(strtolower(str_replace('admin_configure_php_check=','',$line))),0,3);
      }
    }
    /*
    // turned off for now
      if ($check_cfg != 'off') {
        // if the admin/includes/configure.php file doesn't contain admin-related content, throw error
        $zc_pagepath = str_replace(basename($PHP_SELF),'',__FILE__); //remove page name from full path of current page
        $zc_pagepath = str_replace(array('\\','\\\\'),'/',$zc_pagepath); // convert '\' marks to '/'
        $zc_pagepath = str_replace('//','/',$zc_pagepath); //convert doubles to single
        $zc_pagepath = str_replace(strrchr($zc_pagepath,'/'),'',$zc_pagepath); // remove trailing '/'
        $zc_adminpage = str_replace('\\','/',DIR_FS_ADMIN); //convert "\" to '/'
        $zc_adminpage = str_replace('//','/',$zc_adminpage); // remove doubles
        $zc_adminpage = str_replace(strrchr($zc_adminpage,'/'),'',$zc_adminpage); // remove trailing '/'
        if (!defined('DIR_WS_ADMIN') || $zc_pagepath != $zc_adminpage ) {
          echo ('ERROR: The admin/includes/configure.php file has invalid configuration. Please rebuild, or verify specified paths.');
          if (file_exists('../zc_install/index.php')) {
            echo '<br /><a href="../zc_install/index.php">Click here for installation</a>';
          }
          echo '<br /><br /><br /><br />['.$zc_pagepath.']&nbsp;&nbsp;&nbsp;&laquo;&raquo;&nbsp;&nbsp;&nbsp;[' .$zc_adminpage.']<br />';
        }
      }
    */
    /**
     * 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();
    }
    /** 
     * load the autoloader interpreter code.
     */
    require(DIR_FS_CATALOG . 'includes/autoload_func.php');
    ?>
    I've been able to locate the autoload_func.php file as well (it is located in graphiteform.com/catalog/includes/autoload_func.php), so looks like both files are present. I also tried deleting and re-uploading my admin directory but that did not work.

    Working on a windows server, and just finished the install process. I'm able to open my store, but cannot access admin.

    Thanks for your help!

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

    Default Re: Fatal Error? Cant access my admin area at all.

    Please post your 2 configure.php files' contents here, but remove the password.
    .

    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.

  3. #3
    Join Date
    Sep 2007
    Posts
    5
    Plugin Contributions
    0

    Default Re: Fatal Error? Cant access my admin area at all.

    here is /catalog/includes/configure.php
    <?php
    /**
    *
    * @package Configuration Settings
    * @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
    */


    /*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/
    /*************** The 2 files should be kept separate and not used to overwrite each other. ***********/

    // Define the webserver and path parameters
    // HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com
    // HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
    define('HTTP_SERVER', 'http://www.graphiteform.com');
    define('HTTPS_SERVER', 'http://www.graphiteform.com');

    // Use secure webserver for checkout procedure?
    define('ENABLE_SSL', 'false');

    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
    // * DIR_WS_* = Webserver directories (virtual/URL)
    // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
    define('DIR_WS_CATALOG', '/catalog/');
    define('DIR_WS_HTTPS_CATALOG', 'https://www.graphiteform.com/catalog/');

    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_INCLUDES', 'includes/');
    define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
    define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
    define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
    define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
    define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
    define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

    define('DIR_WS_PHPBB', '/');

    // * DIR_FS_* = Filesystem directories (local/physical)
    //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
    define('DIR_FS_CATALOG', 'E:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\meganolson.co m\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\graphiteform.co m\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\catalog/');

    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
    define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
    define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
    define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
    define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');

    // define our database connection
    define('DB_TYPE', 'mysql');
    define('DB_PREFIX', '');
    define('DB_SERVER', '65.163.15.16');
    define('DB_SERVER_USERNAME', 'xxxxxxx');
    define('DB_SERVER_PASSWORD', 'xxxxxxx');
    define('DB_DATABASE', 'graphiteform');
    define('USE_PCONNECT', 'false'); // use persistent connections?
    define('STORE_SESSIONS', 'db'); // use 'db' for best support, or '' for file-based storage

    // The next 2 "defines" are for SQL cache support.
    // For SQL_CACHE_METHOD, you can select from: none, database, or file
    // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
    // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
    // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
    define('SQL_CACHE_METHOD', 'none');
    define('DIR_FS_SQL_CACHE', 'E:/cache');

    ?>
    and /catalog/admin/includes/configure.php

    <?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: dist-configure.php 4095 2006-08-08 02:32:01Z drbyte $
    //

    // Define the webserver and path parameters
    // HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com
    // HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
    // HTTP_CATALOG_SERVER is your Main webserver: eg, http://www.yourdomain.com
    // HTTPS_CATALOG_SERVER is your Secure webserver: eg, https://www.yourdomain.com
    /*
    * URL's for your site will be built via:
    * HTTP_SERVER plus DIR_WS_ADMIN or
    * HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or
    * HTTP_SERVER plus DIR_WS_CATALOG or
    * HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG
    * ...depending on your system configuration settings
    */
    define('HTTP_SERVER', 'http://localhost');
    define('HTTPS_SERVER', 'https://127.0.0.1');
    define('HTTP_CATALOG_SERVER', 'http://localhost');
    define('HTTPS_CATALOG_SERVER', 'https://localhost');

    // secure webserver for catalog module and/or admin areas?
    define('ENABLE_SSL_CATALOG', 'false');
    define('ENABLE_SSL_ADMIN', 'false');

    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!

    // * DIR_WS_* = Webserver directories (virtual/URL)
    // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
    define('DIR_WS_ADMIN', '/admin/');
    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_ADMIN', '/admin/');
    define('DIR_WS_HTTPS_CATALOG', '/');

    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
    define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');
    define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');
    define('DIR_WS_INCLUDES', 'includes/');
    define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
    define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
    define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
    define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
    define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
    define('DIR_WS_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');

    // * DIR_FS_* = Filesystem directories (local/physical)
    //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
    define('DIR_FS_ADMIN', '/admin/');
    define('DIR_FS_CATALOG', '/');

    define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
    define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
    define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
    define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/');
    define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
    define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

    // define our database connection
    define('DB_TYPE', 'mysql');
    define('DB_PREFIX', 'zen_');
    define('DB_SERVER', 'localhost');
    define('DB_SERVER_USERNAME', 'xxxxxxx');
    define('DB_SERVER_PASSWORD'xxxxxxx');
    define('DB_DATABASE', '');
    define('USE_PCONNECT', 'false'); // use persistent connections?
    define('STORE_SESSIONS', 'db'); // use 'db' for best support, or '' for file-based storage

    // The next 2 "defines" are for SQL cache support.
    // For SQL_CACHE_METHOD, you can select from: none, database, or file
    // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
    // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
    // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
    define('SQL_CACHE_METHOD', 'none');
    define('DIR_FS_SQL_CACHE', '/enter/your/path/to/public_html_or_htdocs/and/zencart/here/zen/cache');

    ?>
    Thank you!

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

    Default Re: Can't get into Admin - new install

    The admin configure.php file appears to be a default file ... as if the installer didn't have permission to write it during installation.
    Make sure both configure.php files are writable, and rerun the installer.
    .

    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.

  5. #5
    Join Date
    Sep 2007
    Posts
    5
    Plugin Contributions
    0

    Default Re: Can't get into Admin - new install

    Success! I guess when in doubt - try starting over again.

    Thank you very much for the suggestion, I am now able to access my admin area!

 

 

Similar Threads

  1. v139h Can't get into my admin after moving to a new server
    By tpeck in forum Upgrading to 1.5.x
    Replies: 4
    Last Post: 29 Jul 2013, 03:03 PM
  2. Migrated to new godaddy server and can't get into admin
    By friends1976 in forum General Questions
    Replies: 3
    Last Post: 25 May 2010, 06:07 PM
  3. Can't log into Admin after new install
    By kireol in forum General Questions
    Replies: 13
    Last Post: 6 May 2009, 12:21 PM
  4. Can't get into Admin with my new install
    By teddybear in forum General Questions
    Replies: 1
    Last Post: 31 Oct 2007, 11:33 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