Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Jan 2008
    Posts
    3
    Plugin Contributions
    0

    Default error with running on Windows server using NAS external storage address

    I have just installed Zen Cart on my Windows Server. I can see the Successfull Installtion page but the two links to go to the store or admin do not work. The store just brings up a blank page - I have checked and the index file def does exist - and the admin brings up the following error:
    Warning: main(/NAS40ENT/domains/j/jeminijem.com/user/htdocs/vitallifeni/store/includes/autoload_func.php): failed to open stream: No such file or directory in \\NAS40ENT\domains\j\jeminijem.com\user\htdocs\vitallifeni\store\admin\includes\ application_top.php on line 130

    Fatal error: main(): Failed opening required '/NAS40ENT/domains/j/jeminijem.com/user/htdocs/vitallifeni/store/includes/autoload_func.php' (include_path='.;c:\php4\pear') in \\NAS40ENT\domains\j\jeminijem.com\user\htdocs\vitallifeni\store\admin\includes\ application_top.php on line 130
    The configure file from the admin/includes is as follows:
    <?php
    /**
    * @package Configuration Settings circa 1.3.8
    * @copyright Copyright 2003-2007 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 "store" version of configure.php. ***********/
    /*************** The 2 files should be kept separate and not used to overwrite each other. ***********/

    // Define the webserver and path parameters
    // Main webserver: eg-http://www.your_domain.com -
    // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
    // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
    // HTTP_CATALOG_SERVER is your Main webserver: eg-http://www.your_domain.com
    // HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.your_domain.com
    /*
    * URLs 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
    *
    * If you desire your *entire* admin to be SSL-protected, make sure you use a "https:" URL for all 4 of the following:
    */
    define('HTTP_SERVER', 'http://www.jeminijem.com');
    define('HTTPS_SERVER', 'https://www.jeminijem.com');
    define('HTTP_CATALOG_SERVER', 'http://www.jeminijem.com');
    define('HTTPS_CATALOG_SERVER', 'https://www.jeminijem.com');

    // Use 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', '/vitallifeni/store/admin/');
    define('DIR_WS_CATALOG', '/vitallifeni/store/');
    define('DIR_WS_HTTPS_ADMIN', '/vitallifeni/store/admin/');
    define('DIR_WS_HTTPS_CATALOG', '/vitallifeni/store/');

    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', '/var/www/jeminijem/htdocs/vitallifeni/store/admin/');
    define('DIR_FS_CATALOG', '/var/www/jeminijem/htdocs/vitallifeni/store/');

    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', '');
    define('DB_SERVER', '213.171.219.95');
    define('DB_SERVER_USERNAME', '******');
    define('DB_SERVER_PASSWORD', '******);
    define('DB_DATABASE', 'Jeminijem');
    define('USE_PCONNECT', 'false');
    define('STORE_SESSIONS', 'db');
    // for STORE_SESSIONS, 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', '/NAS40ENT/domains/j/jeminijem.com/user/htdocs/vitallifeni/store/cache');

    // EOF

    The configure file from the main includes folder is:

    <?php
    /**
    * @package Configuration Settings circa 1.3.8
    * @copyright Copyright 2003-2007 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.your_domain.com
    // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
    define('HTTP_SERVER', 'http://www.jeminijem.com');
    define('HTTPS_SERVER', 'https://www.jeminijem.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', '/vitallifeni/store/');
    define('DIR_WS_HTTPS_CATALOG', '/vitallifeni/store/');

    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', '/NAS40ENT/domains/j/jeminijem.com/user/htdocs/vitallifeni/store/');

    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', '213.171.219.95');
    define('DB_SERVER_USERNAME', '******);
    define('DB_SERVER_PASSWORD', '******');
    define('DB_DATABASE', 'Jeminijem');
    define('USE_PCONNECT', 'false');
    define('STORE_SESSIONS', 'db');
    // for STORE_SESSIONS, 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', '/NAS40ENT/domains/j/jeminijem.com/user/htdocs/vitallifeni/store/cache');

    // EOF
    Any help would be greatly appreicated. I am very new to all this so prob wont understand any complicated things.

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

    Default Re: includes/autoload_func.php): failed to open stream: No such file or directory

    The error is nothing to do with your index.php or your configure.php files (otherwise it wouldn't have got as far as it did). The file that is being queried is includes/autoload_func.php. Is that file present? Can you open it and look at it (i.e. it's not corrupt)?
    Kuroi Web Design and Development | Twitter

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

  3. #3
    Join Date
    Jan 2008
    Posts
    3
    Plugin Contributions
    0

    Default Re: includes/autoload_func.php): failed to open stream: No such file or directory

    Yes, the file is there. I think it is ok but not sure what it would look like if it were corrupt. I have pasted it below. I thought it may have something to do with the directory structure. At the moment I have htdocs/vitallifeni/store then all the other files inside it. To me it looks as though the line in question is looking for an includes folder within the admin/includes folder. I tried changing this by putting in ../../ before the link but it did not work.

    <?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-2007 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 6559 2007-07-05 06:42:51Z 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']); else $debugOutput .= 'FAILED: ';
    $debugOutput .= 'include(\'' . $entry['loadFile'] . '\');' . '<br />';
    break;
    case 'require':
    /**
    * require a file as specified by autoloader array
    */
    if (file_exists($entry['loadFile'])) require($entry['loadFile']); else $debugOutput .= 'FAILED: ';
    $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']); else $debugOutput .= 'FAILED: ';
    $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']); else $debugOutput .= 'FAILED: ';
    $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;
    }
    }
    ?>

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

    Default Re: includes/autoload_func.php): failed to open stream: No such file or directory

    I suspect you'll find your answer here.
    Kuroi Web Design and Development | Twitter

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

  5. #5
    Join Date
    Jan 2008
    Posts
    3
    Plugin Contributions
    0

    Default Re: includes/autoload_func.php): failed to open stream: No such file or directory

    Thanks I had a look at that. I reckon it is the same problem but I am not sure what I need to change those lines in the configure.php file to - is it identical to what was in the other post or do I need to customise it for my site?

  6. #6
    Join Date
    Apr 2007
    Posts
    38
    Plugin Contributions
    0

    Default Re: includes/autoload_func.php): failed to open stream: No such file or directory

    You will need to customise it to your site. Going to each of the folders should give you the correct path, if you are not certain.

 

 

Similar Threads

  1. Replies: 13
    Last Post: 23 Aug 2016, 07:16 PM
  2. Running a cart on one server and using SSL on a different server?
    By bargaindropper in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 14 Jun 2009, 11:14 AM
  3. Using external IP address to host site
    By Meshach in forum General Questions
    Replies: 1
    Last Post: 2 Jun 2009, 11:48 PM
  4. Cannot send email after upgrade using local Windows server
    By AcurA in forum Upgrading from 1.3.x to 1.3.9
    Replies: 6
    Last Post: 8 Sep 2006, 09:18 PM

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