Zen Cart Logo
Forums / General Questions / Urgent help requested making store live!

Urgent help requested making store live!

Locked

Views: 2,464

Results 1 to 16 of 16
This thread is locked. New replies are disabled.
20 Mar 2007, 4:24 PM
#1
gourmets avatar

gourmets

New Zenner

Join Date:
Jan 2007
Posts:
61
Plugin Contributions:
0

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
/**
 *
 * @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
//
/**
 *
 * @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! :cry:

20 Mar 2007, 4:52 PM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

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 Mar 2007, 5:42 PM
#3
gourmets avatar

gourmets

New Zenner

Join Date:
Jan 2007
Posts:
61
Plugin Contributions:
0

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! :(

20 Mar 2007, 5:51 PM
#4
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

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 Mar 2007, 6:03 PM
#5
gourmets avatar

gourmets

New Zenner

Join Date:
Jan 2007
Posts:
61
Plugin Contributions:
0

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.
20 Mar 2007, 6:09 PM
#6
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

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 Mar 2007, 6:24 PM
#7
gourmets avatar

gourmets

New Zenner

Join Date:
Jan 2007
Posts:
61
Plugin Contributions:
0

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.

20 Mar 2007, 6:38 PM
#8
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

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.

  1. 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)

  2. 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 Mar 2007, 6:55 PM
#9
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

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 Mar 2007, 6:57 PM
#10
brent avatar

brent

Totally Zenned

Join Date:
Mar 2005
Location:
United Kingdom
Posts:
606
Plugin Contributions:
0

Re: Urgent help requested making store live!

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

20 Mar 2007, 7:15 PM
#11
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Urgent help requested making store live!

Also check your database configuration table for the configuration_key:
SESSION_WRITE_DIRECTORY

Make sure that the path is correct ...

20 Mar 2007, 7:16 PM
#12
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Urgent help requested making store live!

NOTE: makes sure that the two files on the server for:
/includes/configure.php
/admin/includes/configure.php

really contain the right path for the root ...

Files that were set to 444 cannot be overwritten and must be changed to 644 to overwrite with new files ...

20 Mar 2007, 8:12 PM
#13
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Urgent help requested making store live!

Yeah... try the fix cache first ! good suggestion.

Linda also shows where the path could be incorrectly stated in the dbase.

If this fails, remove IH as indicated above.

20 Mar 2007, 8:24 PM
#14
gourmets avatar

gourmets

New Zenner

Join Date:
Jan 2007
Posts:
61
Plugin Contributions:
0

Re: Urgent help requested making store live!

Thanks for all of the suggestions thus far. I tried to find my way around phpmyadmin, but dont know what Im doing, so I decided not to mess with it before I screw something up even more.
I then installed fix_cache_key.php and uploaded it to my server, but whenever I tried to access the file, I get the same error, so it wont even let me try to fix the problem with that.
I am really leery about completely removing IH because of the difference in files and/or having to re-edit things since my site is heavily customized, not knowing what Im doing, plus the problem with having to reinstall it later on. I didnt install it in the first place and would have to pay someone to do it for me again. I'm going to try some more to continue to get ahold of the programmer that helped me, but in the meantime, if anyone could walk me through phpmyadmin, or thinks up any other suggestions, please continue to post.
I will post a follow-up once it gets fixed as to what the problem was. Thanks

21 Mar 2007, 10:45 AM
#15
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Urgent help requested making store live!

Did you RUN the fix_cache_key.php file ?

Type the URL to your store, then after the final slash, type in fix_cache_key.php

Here are the INSTRUCTIONS that are written into that file by DrByte:-

  • This utility is used to reset your "SESSION_WRITE_DIRECTORY" key after switching servers.
    1. Make sure the DIR_FS_SQL_CACHE setting is correct in your /includes/configure.php file.
    1. Copy this file to the folder where "index.php" exists for your Zen Cart site
    1. Run it
    1. The cache setting from your configure.php file will be displayed, followed by
  • the cache setting from your database.
  • If they match, it will say "No changes required."
  • If they do not match, it will synchronize the database to match the configure.php setting.
    1. VERY IMPORTANT .... WHEN DONE, DELETE THIS FILE FROM YOUR SERVER!!!!!!!!!!!
  • If you don't delete it (or at least rename it to something very obscure), then you run the
  • risk of somebody using it to find out information about your server configuration, which
  • could compromise your site's security. Thus, deleting this file when finished is the best approach.
    */

Remember to REMOVE this file from your server when the file has run.

21 Mar 2007, 6:57 PM
#16
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Urgent help requested making store live!

We seem to have addressed this...

...looks like corrupted php files were to blame.