Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2007
    Location
    England
    Posts
    84
    Plugin Contributions
    0

    bug Loading problem?

    Dear all

    Newbie here, non coder. I have installed Zen, with a UK template upgrade, which had been working on a test basis until very recently. For some reason, I could not get the Zencart to load the main page, without the use of a separate HTML page, pointing to the catalogue? I never knew why this was a suggested fix for the problem and was not informed how to access the main page of Zencart without it?

    Anyway, I removed the HTML page and then could not access my website, but received this message instead.

    Warning: main(includes/application_top.php/index.php) [function.main]: failed to open stream: No such file or directory in /home/xxxx/public_html/xxxx/index.php on line 26

    Warning: main(includes/application_top.php/index.php) [function.main]: failed to open stream: No such file or directory in /home/xxxx/public_html/xxxx/index.php on line 26

    Fatal error: main() [function.require]: Failed opening required 'includes/application_top.php/index.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxx/public_html/xxxx/index.php on line 26


    Forgive me if my question has been asked a million times before and that I may have placed my question into the wrong part of the forum. Any and all suggestions regarding how to fix my Zencart would be appreciated. Should you require further information, please let me know

    Freshstart.

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

    Default Re: Loading problem?

    includes/application_top.php/index.php
    It's very odd that the "/index.php" is getting appended to that.

    What does line 26 of your public_html/xxxxx/index.php file say ? It *should* just say this:
    Code:
      require('includes/application_top.php');
    .

    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
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Loading problem?

    Quote Originally Posted by freshstart View Post
    For some reason, I could not get the Zencart to load the main page, without the use of a separate HTML page, pointing to the catalogue? I never knew why this was a suggested fix for the problem and was not informed how to access the main page of Zencart without it?

    Anyway, I removed the HTML page and then could not access my website
    Who suggested that 'fix'?
    Who set up the site for you initially?
    Were the symptoms you just described the same symptoms that you were experiencing when the "fix" was suggested?
    Who are you hosted with?
    .

    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.

  4. #4
    Join Date
    Jul 2007
    Location
    England
    Posts
    84
    Plugin Contributions
    0

    Default Re: Loading problem?

    Quote Originally Posted by DrByte View Post
    Who suggested that 'fix'?
    Who set up the site for you initially?
    Were the symptoms you just described the same symptoms that you were experiencing when the "fix" was suggested?
    Who are you hosted with?
    Dear DrByte,

    Many thanks for your interest and comments thus far. Line 26 as follows;

    Load common library stuff
    */
    require('includes/application_top.php/');

    $language_page_directory = DIR_WS_LANGUAGES . $_SESSION['language'] . '/'

    Q & A -

    I set up the site and was advised to create a HTML page to point to it, since for some reason the website would not open without it? Really, I wanted to just type in the URL and I would be presented with the main page of my Zencart.

    I am hosted with K1Z.com.

    I am just about to go into the config files to see if there is anything odd in there, however, not being a coder, I will probably miss something. If it helps, I could copy the code here for you to peruse?

    Best wishes;

    freshstart.

  5. #5
    Join Date
    Jul 2007
    Location
    England
    Posts
    84
    Plugin Contributions
    0

    Default Re: Loading problem?

    DrByte,

    Here is a copy of the includes/configure.php file;

    <?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.xxxxxxxxxxxxxx');
    define('HTTPS_SERVER', 'https://www.xxxxxxxxxxxxxx');

    // 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', '/shop/');
    define('DIR_WS_HTTPS_CATALOG', '/shop/');

    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', '/home/xxxxxxxx/public_html/xxxxxxxx/shop/');

    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', 'localhost');
    define('DB_SERVER_USERNAME', 'xxxxxxxxxxxxxx');
    define('DB_SERVER_PASSWORD', 'xxxxxxxxxxxx');
    define('DB_DATABASE', 'xxxxxxxxxxxxxxxxx');
    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', 'database');
    define('DIR_FS_SQL_CACHE', '/home/xxxxxxxx/public_html/xxxxxxxx/shop/cache');

    ?>

    Thx.

    freshstart.

  6. #6
    Join Date
    Jul 2007
    Location
    England
    Posts
    84
    Plugin Contributions
    0

    Default Re: Loading problem?

    DrByte,

    Here is a copy of the includes/application_top.php file;


    <?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;
    }
    ?>

    Thx.
    freshstart.

 

 

Similar Threads

  1. problem loading site
    By Visual Designs in forum General Questions
    Replies: 5
    Last Post: 16 Sep 2010, 04:58 PM
  2. SSL loading problem (newbie)
    By integrity_designs in forum Basic Configuration
    Replies: 7
    Last Post: 25 Feb 2010, 02:51 AM
  3. Image Loading Problem
    By CabinetGuy in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 8 Nov 2009, 09:40 PM
  4. tools > send email > loading loading loading
    By keylesslocks in forum General Questions
    Replies: 6
    Last Post: 29 Aug 2008, 12:10 PM
  5. Problem Loading Page
    By estgeorge in forum General Questions
    Replies: 1
    Last Post: 31 Jul 2006, 04:05 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