Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2007
    Location
    italy
    Posts
    90
    Plugin Contributions
    2

    Default strange login admin error

    from some days I can't login into my zencart, because at the login page, appear an error page instead of normal login page and I don't understand what is happen and what is wrong:
    http://www.estufe.com/admin/login.php

    Warning: main(/home/hotelsup/public_html/stufe/includes/autoload_func.php): failed to open stream: No such file or directory in /home/domains/estufe.com/web/admin/includes/application_top.php on line 149

    Warning: main(/home/hotelsup/public_html/stufe/includes/autoload_func.php): failed to open stream: No such file or directory in /home/domains/estufe.com/web/admin/includes/application_top.php on line 149

    Fatal error: main(): Failed opening required '/home/hotelsup/public_html/stufe/includes/autoload_func.php' (include_path='.:/usr/lib/php/:/usr/share/pear/') in /home/domains/estufe.com/web/admin/includes/application_top.php on line 149

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

    Default Re: strange login admin error

    Check or reload /home/hotelsup/public_html/stufe/includes/autoload_func.php
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Mar 2007
    Location
    italy
    Posts
    90
    Plugin Contributions
    2

    Default Re: strange login admin error

    I tryed to check, but I?m not a php expert I reuploaded it , but all remain the same..
    here the code:

    <?php
    /**
    * File contains the autoloader loop
    *
    * The autoloader loop takes the array from the auto_loaders directory
    * and uses this this to constuct the InitSysytem.
    * see {@link http://www.zen-cart.com/wiki/index.php/Developers_API_Tutorials#InitSystem} 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: autoload_func.php 4387 2006-09-04 13:54:28Z drbyte $
    */
    if (!defined('IS_ADMIN_FLAG')) {
    die('Illegal Access');
    }
    reset($autoLoadConfig);
    ksort($autoLoadConfig);
    foreach ($autoLoadConfig as $actionPoint => $row) {
    $debugOutput = "";
    foreach($row as $entry) {
    $debugOutput = 'actionPoint=>'.$actionPoint . ' ';
    // $entry['loadFile'] = str_replace(array(':', '\\\\'), '', $entry['loadFile']);
    switch($entry['autoType']) {
    case 'include':
    /**
    * include a file as specified by autoloader array
    */
    if (file_exists($entry['loadFile'])) include($entry['loadFile']);
    $debugOutput .= 'include(\'' . $entry['loadFile'] . '\');' . '<br />';
    break;
    case 'require':
    /**
    * require a file as specified by autoloader array
    */
    if (file_exists($entry['loadFile'])) require($entry['loadFile']);
    $debugOutput .= 'require(\'' . $entry['loadFile'] . '\');' . '<br />';
    break;
    case 'init_script':
    $baseDir = DIR_WS_INCLUDES . 'init_includes/';
    if (file_exists(DIR_WS_INCLUDES . 'init_includes/overrides/' . $entry['loadFile'])) {
    $baseDir = DIR_WS_INCLUDES . 'init_includes/overrides/';
    }
    /**
    * include an init_script as specified by autoloader array
    */
    if (file_exists($baseDir . $entry['loadFile'])) include($baseDir . $entry['loadFile']);
    $debugOutput .= 'include(\'' . $baseDir . $entry['loadFile'] . '\');' . '<br />';
    break;
    case 'class':
    if (isset($entry['classPath'])) {
    $classPath = $entry['classPath'];
    } else {
    $classPath = DIR_FS_CATALOG . DIR_WS_CLASSES;
    }
    /**
    * include a class definition as specified by autoloader array
    */
    if (file_exists($classPath . $entry['loadFile'])) include($classPath . $entry['loadFile']);
    $debugOutput .= 'include(\'' . $classPath . $entry['loadFile'] . '\');' . '<br />';
    break;
    case 'classInstantiate':
    $objectName = $entry['objectName'];
    $className = $entry['className'];
    if (isset($entry['classSession']) && $entry['classSession'] === true) {
    if (isset($entry['checkInstantiated']) && $entry['checkInstantiated'] === true) {
    if (!isset($_SESSION[$objectName])) {
    $_SESSION[$objectName] = new $className();
    $debugOutput .= 'if (!$_SESSION[' . $objectName . ']) { ';
    $debugOutput .= '$_SESSION[' . $objectName . '] = new ' . $className . '();';
    $debugOutput .= ' }<br />';
    }
    } else {
    $_SESSION[$objectName] = new $className();
    $debugOutput .= ' $_SESSION[' . $objectName . '] = new ' . $className . '();<br />';
    }
    } else {
    $$objectName = new $className();
    $debugOutput .= '$' . $objectName . ' = new ' . $className . '();<br />';
    }
    break;
    case 'objectMethod':
    $objectName = $entry['objectName'];
    $methodName = $entry['methodName'];
    if (is_object($_SESSION[$objectName])) {
    $_SESSION[$objectName]->$methodName();
    $debugOutput .= '$_SESSION[' . $objectName . ']->' . $methodName . '();<br />';
    } else {
    $$objectName->$methodName();
    $debugOutput .= '$' . $objectName . '->' . $methodName . '();<br />';
    }
    break;
    }
    if (DEBUG_AUTOLOAD === true) echo $debugOutput;
    }
    }
    ?>

 

 

Similar Threads

  1. strange error when trying to login to admin
    By _rgk in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 26 Oct 2011, 08:23 PM
  2. Admin Login Issues - Very Strange....
    By buyashed in forum General Questions
    Replies: 5
    Last Post: 29 Jan 2008, 01:48 AM
  3. Strange Admin Login
    By gabstero in forum Installing on a Windows Server
    Replies: 5
    Last Post: 23 Nov 2007, 10:05 PM
  4. Strange error message for admin login
    By paults in forum General Questions
    Replies: 1
    Last Post: 24 Jul 2006, 11:08 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