Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Multiple image per product problem


ohioman

Recommended Posts

I have made modifications to install the contribution: Three images with Admin 1.02 in which each product can have up to 3 images each. My original images folder /images is completly operational, as I can still have 1 product image through this whole process. The only problem is when in admin there are 2 identical errors that say: Error: Catalog images directory does not exist: /home/****/public_html/images which are for the 2 new folders to be added.

 

I traced where these errors are generated and they are the exact errors that are generated when the /images file that is default for oscommerce does not exist. However, in this mod, it also throws this exact error for the additional 2 directories that are to be added to make this mod work:

 

images/medium

images/large

 

What really has me baffled is the original images directory has never had a problem which suggest that the original lines in my /admin/includes/configure.php file are doing just fine also. This shop has been up and running great for about a year now... without a hitch. There are a total of 4 define statements to add to this file for this mod and I see no problem with them either.

 

I have been sure to add the necessary folders both with my ftp program AND my cpanel to eliminate these types of problems as possibilities. These folders are CHMOD 777 as the documentation suggests. I have included my admin/includes/configure.php code .. perhaps someone can find my oversight???

 

<?php
/*
 osCommerce, Open Source E-Commerce Solutions
 [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url]

 Copyright © 2003 osCommerce

 Released under the GNU General Public License
*/

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'http://www.######.com'); // eg, [url="http://localhost"]http://localhost[/url] - should not be empty for productive servers
 define('HTTP_CATALOG_SERVER', 'http://www.#######.com');
 define('HTTPS_CATALOG_SERVER', 'https://www.######.com');
 define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', '/home/*****/public_html/'); // where the pages are located on the server
 define('DIR_WS_ADMIN', '/admin/'); // absolute path required
 define('DIR_FS_ADMIN', '/home/******/public_html/admin/'); // absolute pate required
 define('DIR_WS_CATALOG', '/'); // absolute path required
 define('DIR_FS_CATALOG', '/home/******/public_html/'); // absolute path required
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
 define('DIR_WS_CATALOG_IMAGES_MEDIUM', DIR_WS_CATALOG . 'images/medium/'); // CAO 3 Images
 define('DIR_WS_CATALOG_IMAGES_LARGE', DIR_WS_CATALOG . 'images/large/'); // CAO 3 Images
 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', DIR_WS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
 define('DIR_FS_CATALOG_IMAGES_MEDIUM', DIR_FS_CATALOG . 'images/medium/'); // CAO 3 Images
 define('DIR_FS_CATALOG_IMAGES_LARGE', DIR_FS_CATALOG . 'images/large/'); // CAO 3 Images
 define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
 define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

// define our database connection
 define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', '$$$$$$$$');
 define('DB_SERVER_PASSWORD', '$$$$$$$$$');
 define('DB_DATABASE', '$$$$$$$$$$');
 define('USE_PCONNECT', 'false'); // use persisstent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

 

Any ideas???

 

Iceman

Link to comment
Share on other sites

Ok.. let me try this way:

 

What is the minumum default coding sections necessary to write image information to my database for a new product or edited product from categories.php in the admin? Anyone???

 

Iceman :thumbsup:

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...