Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Join Date
    Jan 2007
    Posts
    61
    Plugin Contributions
    0

    Default Urgent help requested making store live!

    So, I thought this would be easy. I followed the tutorial perfectly. I changed the sessions directory in admin, I edited both includes/configure.php and admin/includes/configure.php to remove the /cart/ directory I had my store in, but I am getting the following error when trying to access my store:

    Warning: main(bmz_gif_info.class.php) [function.main]: failed to open stream: No such file or directory in /home/gourmets/public_html/cart/includes/classes/bmz_image_handler.class.php on line 12

    Fatal error: main() [function.require]: Failed opening required 'bmz_gif_info.class.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/gourmets/public_html/cart/includes/classes/bmz_image_handler.class.php on line 12

    Now, why is it still looking in the cart folder? Here are my configure.php files as proof that everything has been changed!

    PHP Code:
    <?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.gourmetshoppe.net');
      
    define('HTTPS_SERVER''https://www.gourmetshoppe.net');
      
    // Use secure webserver for checkout procedure?
      
    define('ENABLE_SSL''true');
    // 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''/');
      
    define('DIR_WS_HTTPS_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''/home/gourmets/public_html/');
      
    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''*******');
      
    define('DB_SERVER_PASSWORD''********');
      
    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''/home/gourmets/public_html/cache');
    ?>
    PHP Code:
    <?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 "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://localhost - should not be empty for productive servers
      // 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
      /* 
       * 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
       */
      
    define('HTTP_SERVER''http://www.gourmetshoppe.net');
      
    define('HTTPS_SERVER''https://www.gourmetshoppe.net');
      
    define('HTTP_CATALOG_SERVER''http://www.gourmetshoppe.net');
      
    define('HTTPS_CATALOG_SERVER''https://www.gourmetshoppe.net');
      
    // Use secure webserver for catalog module and/or admin areas?
      
    define('ENABLE_SSL_CATALOG''true');
      
    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''/home/gourmets/public_html/admin/');
      
    define('DIR_FS_CATALOG''/home/gourmets/public_html/');
      
    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''localhost');
      
    define('DB_SERVER_USERNAME''*******');
      
    define('DB_SERVER_PASSWORD''*******');
      
    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''/home/gourmets/public_html/cache');
    ?>
    I'm really getting frustrated as nothing seems to be going easy with this store. Can someone please help?? I've also cleared my temp files and cookies from my computer and opened a new browser to try and see if that worked, but I still get the errors!

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Urgent help requested making store live!

    This is an issue with your installation of the Image Handler module.

    If you are using a Custom Template, then there are slight differences in where you upload the IH files.

    Read the IH install documentation.

    Also, ensure you have set the correct CHMOD permissions on all directories and files.
    20 years a Zencart User

  3. #3
    Join Date
    Jan 2007
    Posts
    61
    Plugin Contributions
    0

    Default Re: Urgent help requested making store live!

    Unfortunately I didnt install the IH mod and Im having a hard time getting ahold of the person who did. The IH was working fine when my store was behind closed doors in the cart/ folder, but now that I moved it, it wont work. Is there a file contained within the IH mod files that is holding onto that cart/ folder? I read through the IH documentation and it looks as if the files are in the right place (custom template) and the permissions are set properly, so I cant seem to figure out why it worked in the cart/ folder but not the main site public_html folder. The errors are still calling the cart/ folder, but I dont know why!

  4. #4
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Urgent help requested making store live!

    At what point does the error occur? IE: what are you doing that causes the error to pop up?

    It may be a corrupted IH file - corruption sometimes occurs when you move files, and you only need one small error in PHP for it to refuse to co-operate!

    Your problem file looks to be: bmz_gif_info.class.php
    20 years a Zencart User

  5. #5
    Join Date
    Jan 2007
    Posts
    61
    Plugin Contributions
    0

    Default Re: Urgent help requested making store live!

    I cant get to anything since I moved my cart folder to my main public_html folder to make the site live.

    I changed the session directory in admin, then I moved the entire contents of the cart directory up to my public_html directory, then I went in and manually changed the includes/configure.php and the admin/includes/configure.php files to remove all the cart/ references. When I went to try out the site at www.gourmetshoppe.net/index.php I got the error. I cant even access www.gourmetshoppe.net/admin

    I looked through that file to see if there were any extra lines or something below the last } but there isnt and the contents of the file is not much, so I dont see how it could be a problem. This is the contents of that file:

    <?php
    /**
    * gif_info.php
    * gif-info class for transparency stuff
    *
    * @version $Id: bmz_gif_info.class.php,v 1.2 2006/04/11 22:00:55 tim Exp $
    */
    class gifinfo
    {
    var $m_transparentRed;
    var $m_transparentGreen;
    var $m_transparentBlue;
    var $m_signature;
    var $m_version;
    var $m_width;
    var $m_height;
    var $m_colorFlag;
    var $m_backgroundIndex;


    function gifinfo($filename)
    {
    $fp = fopen($filename,"rb");
    $result = fread($fp,13);
    $this->m_signature = substr($result,0,3);
    $this->m_version = substr($result,3,3);
    $this->m_width = ord(substr($result,6,1)) + ord(substr($result,7,1)) * 256;
    $this->m_height = ord(substr($result,8,1)) + ord(substr($result,9,1)) * 256;
    $this->m_colorFlag = ord(substr($result,10,1)) >> 7;
    $this->m_background = ord(substr($result,11));

    if($this->m_colorFlag)
    {
    $tableSizeNeeded = ($this->m_background + 1) * 3;
    $result = fread($fp,$tableSizeNeeded);
    $this->m_transparentRed = ord(substr($result,$this->m_background * 3,1));
    $this->m_transparentGreen = ord(substr($result,$this->m_background * 3 + 1,1));
    $this->m_transparentBlue = ord(substr($result,$this->m_background * 3 + 2,1));
    }
    fclose($fp);
    }
    }

    For some reason, it looks like that file is still trying to be read through the cart/ directory which doenst exist anymore since I moved all the contents to the main directory and deleted that folder. I just cant figure out where it is calling that folder at.

  6. #6
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Urgent help requested making store live!

    Do you still have a COPY of the webshop in the /cart/ directory - or did you MOVE it?
    20 years a Zencart User

  7. #7
    Join Date
    Jan 2007
    Posts
    61
    Plugin Contributions
    0

    Default Re: Urgent help requested making store live!

    I just moved all contents into the public_html directory. I did make a backup of the entire home directory though a few days ago. I backed it up though my hosts cpanel and its a .gz file. Do I just need to rewrite all of the files? Do I need to put everything back in a new cart folder? Im unsure as to what I need to do here, or why I need to do it.

  8. #8
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Urgent help requested making store live!

    Looks like you'll have to get rid of IH, then re-install it later when the cart is working properly.

    Try this:

    1. Download a zip of the IH mod, unpack it and store it in a folder on your hard drive.

    2. I presume you have a copy of the zen cart files on your hard drive?

    3. Look at the files in the unzipped copy of IH, and see what core files it over-writes (ie: what original zencart files did it over-write - I think you may find a couple of "header.php" files affected and possibly a few others.

    In any event... make a list of all core zen files (and their folders) that IH over-writes when it is uploaded.

    USE WINMERGE for this task - it's so much easier.

    4. When you KNOW all the files (and folders) that IH uses or has over-written, REMOVE these from your server, and get rid of the BZM cache folder as well and any other js files etc. (IE: delete all files that relate to IH - even those core files it over-wrote)

    5. REPLACE all core files that IH overwrote with their original files (of the same version) into the correct directories.

    This ought to kick your shop back into life.

    PS: doing the above may affect some over-rides you may have configured, in which case you need to ensure that any php files you delete that have been modified for other effects, are examined for these changes.

    Some files can be left on the server - I often re-name them like: "header.php" to "old_header.txt". In this way you still have the original, but it does not influence any site behaviour.
    20 years a Zencart User

  9. #9
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Urgent help requested making store live!

    This could be a database issue too...

    There may be a reference in the database that IH creates, and it's currently pointing the the "cart" path.

    Can you get into your dbase through phpmyadmin?

    In the meantime, I'll look on my dbase and see if there is a reference.

    HOLD BACK with the DELETE IH I describe above
    20 years a Zencart User

  10. #10
    Join Date
    Mar 2005
    Location
    United Kingdom
    Posts
    608
    Plugin Contributions
    0

    Default Re: Urgent help requested making store live!

    schoolboy, is it worth trying the Fix Cache Key contrib?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v138a Urgent help needed on a live site
    By minotaurus in forum General Questions
    Replies: 0
    Last Post: 25 Jan 2012, 08:25 PM
  2. Admin failure.....Urgent Help Requested
    By avf in forum General Questions
    Replies: 5
    Last Post: 22 Mar 2010, 11:31 PM
  3. Urgent Help Requested - all my categories and products missing
    By kinget in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 31 Oct 2007, 06:32 PM
  4. urgent - live store with sudden problem calc shipping
    By ginginca in forum General Questions
    Replies: 12
    Last Post: 23 Mar 2007, 12:30 AM
  5. Need Urgent Help almost going LIVE
    By covone in forum Basic Configuration
    Replies: 1
    Last Post: 25 Oct 2006, 02:55 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