Re: Image Handler 5 (for v1.5.5) Support Thread
could the auto detect be finding my other store's info in error?
site configure
Code:
<?php
/**
* @copyright Copyright 2003-2021 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* File Built by Zen Cart Installer on Sat Jun 19 2021 21:15:48
*/
/*************** NOTE: This file is VERY similar to, but DIFFERENT from the "admin" version of configure.php. ***********/
/*************** The 2 files should be kept separate and not used to overwrite each other. ***********/
/**
* Enter the domain for your store
* If you have SSL, enter the correct https address in BOTH the HTTP_SERVER and HTTPS_SERVER settings, instead of just an http address.
*/
define('HTTP_SERVER', 'https://www.radiant-holidays.com/Test');
define('HTTPS_SERVER', 'https://www.radiant-holidays.com/Test');
/**
* If you have https enabled on your website, set this to 'true'
*/
define('ENABLE_SSL', 'true');
/**
* These DIR_WS_xxxx values refer to the name of any subdirectory in which your store is located.
* These values get added to the HTTP_CATALOG_SERVER and HTTPS_CATALOG_SERVER values to form the complete URLs to your storefront.
* They should always start and end with a slash ... ie: '/' or '/foldername/'
*/
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');
/**
* This is the complete physical path to your store's files. eg: /var/www/vhost/accountname/public_html/store/
* Should have a closing / on it.
*/
define('DIR_FS_CATALOG', '/home/*******/public_html/Test/');
/**
* The following settings define your database connection.
* These must be the SAME as you're using in your admin copy of configure.php
*/
define('DB_TYPE', 'mysql'); // always 'mysql'
define('DB_PREFIX', '*******'); // prefix for database table names -- preferred to be left empty
define('DB_CHARSET', 'utf8mb4'); // 'utf8mb4' or older 'utf8' / 'latin1' are most common
define('DB_SERVER', 'localhost'); // address of your db server
define('DB_SERVER_USERNAME', '*******');
define('DB_SERVER_PASSWORD', '*******');
define('DB_DATABASE', '*******');
/**
* This is an advanced setting to determine whether you want to cache SQL queries.
* Options are 'none' (which is the default) and 'file' and 'database'.
*/
define('SQL_CACHE_METHOD', 'none');
/**
* Reserved for future use
*/
define('SESSION_STORAGE', 'reserved for future use');
/**
* Advanced use only:
* The following are OPTIONAL, and should NOT be set unless you intend to change their normal use. Most sites will leave these untouched.
* To use them, uncomment AND add a proper defined value to them.
*/
// define('DIR_FS_SQL_CACHE' ...
// define('DIR_FS_DOWNLOAD' ...
// define('DIR_FS_LOGS' ...
// End Of File
Admin
Code:
<?php
/**
* @copyright Copyright 2003-2021 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* File Built by Zen Cart Installer on Sat Jun 19 2021 21:15:48
*/
/*************** NOTE: This file is VERY similar to, but DIFFERENT from the "store" version of configure.php. ***********/
/*************** The 2 files should be kept separate and not used to overwrite each other. ***********/
/**
* Enter the domain for your Admin URL. If you have SSL, enter the correct https address in the HTTP_SERVER setting, instead of just an http address.
*/
define('HTTP_SERVER', 'https://www.radiant-holidays.com/Test');
/**
* Note about HTTPS_SERVER:
* There is no longer an HTTPS_SERVER setting for the Admin. Instead, put your SSL URL in the HTTP_SERVER setting above.
*/
/**
* Note about DIR_WS_ADMIN
* The DIR_WS_ADMIN value is now auto-detected.
* In the rare case where it cannot be detected properly, you can add your own DIR_WS_ADMIN definition below.
*/
/**
* Enter the domain for your storefront URL.
* Enter a separate SSL URL in HTTPS_CATALOG_SERVER if your store supports SSL.
*/
define('HTTP_CATALOG_SERVER', 'https://www.radiant-holidays.com/Test');
define('HTTPS_CATALOG_SERVER', 'https://www.radiant-holidays.com/Test');
/**
* Do you use SSL for your customers login/checkout on the storefront? If so, enter 'true'. Else 'false'.
*/
define('ENABLE_SSL_CATALOG', 'true');
/**
* These DIR_WS_xxxx values refer to the name of any subdirectory in which your store is located.
* These values get added to the HTTP_CATALOG_SERVER and HTTPS_CATALOG_SERVER values to form the complete URLs to your storefront.
* They should always start and end with a slash ... ie: '/' or '/foldername/'
*/
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');
/**
* This is the complete physical path to your store's files. eg: /var/www/vhost/accountname/public_html/store/
* Should have a closing / on it.
*/
define('DIR_FS_CATALOG', '/home/*******/public_html/Test/');
/**
* NOTE about DIR_FS_ADMIN
* The value for DIR_FS_ADMIN is now auto-detected.
* In the very rare case where there is a need to override the autodetection, simply add your own definition for it below.
*/
/**
* The following settings define your database connection.
* These must be the SAME as you're using in your non-admin copy of configure.php
*/
define('DB_TYPE', 'mysql'); // always 'mysql'
define('DB_PREFIX', '*******'); // prefix for database table names -- preferred to be left empty
define('DB_CHARSET', 'utf8mb4'); // 'utf8mb4' or older 'utf8' / 'latin1' are most common
define('DB_SERVER', 'localhost'); // address of your db server
define('DB_SERVER_USERNAME', '*******');
define('DB_SERVER_PASSWORD', '******');
define('DB_DATABASE', '*******');
/**
* This is an advanced setting to determine whether you want to cache SQL queries.
* Options are 'none' (which is the default) and 'file' and 'database'.
*/
define('SQL_CACHE_METHOD', 'none');
/**
* Reserved for future use
*/
define('SESSION_STORAGE', 'reserved for future use');
/**
* Advanced use only:
* The following are OPTIONAL, and should NOT be set unless you intend to change their normal use. Most sites will leave these untouched.
* To use them, uncomment AND add a proper defined value to them.
*/
// define('DIR_FS_SQL_CACHE' ...
// define('DIR_FS_DOWNLOAD' ...
// define('DIR_FS_LOGS' ...
// End Of File
Re: Image Handler 5 (for v1.5.5) Support Thread
Quote:
Originally Posted by
g2ktcf
could the auto detect be finding my other store's info in error?
site configure
Code:
<?php
/**
* @copyright Copyright 2003-2021 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* File Built by Zen Cart Installer on Sat Jun 19 2021 21:15:48
*/
/*************** NOTE: This file is VERY similar to, but DIFFERENT from the "admin" version of configure.php. ***********/
/*************** The 2 files should be kept separate and not used to overwrite each other. ***********/
/**
* Enter the domain for your store
* If you have SSL, enter the correct https address in BOTH the HTTP_SERVER and HTTPS_SERVER settings, instead of just an http address.
*/
define('HTTP_SERVER', 'https://www.radiant-holidays.com/Test');
define('HTTPS_SERVER', 'https://www.radiant-holidays.com/Test');
/**
* If you have https enabled on your website, set this to 'true'
*/
define('ENABLE_SSL', 'true');
/**
* These DIR_WS_xxxx values refer to the name of any subdirectory in which your store is located.
* These values get added to the HTTP_CATALOG_SERVER and HTTPS_CATALOG_SERVER values to form the complete URLs to your storefront.
* They should always start and end with a slash ... ie: '/' or '/foldername/'
*/
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');
/**
* This is the complete physical path to your store's files. eg: /var/www/vhost/accountname/public_html/store/
* Should have a closing / on it.
*/
define('DIR_FS_CATALOG', '/home/*******/public_html/Test/');
/**
* The following settings define your database connection.
* These must be the SAME as you're using in your admin copy of configure.php
*/
define('DB_TYPE', 'mysql'); // always 'mysql'
define('DB_PREFIX', '*******'); // prefix for database table names -- preferred to be left empty
define('DB_CHARSET', 'utf8mb4'); // 'utf8mb4' or older 'utf8' / 'latin1' are most common
define('DB_SERVER', 'localhost'); // address of your db server
define('DB_SERVER_USERNAME', '*******');
define('DB_SERVER_PASSWORD', '*******');
define('DB_DATABASE', '*******');
/**
* This is an advanced setting to determine whether you want to cache SQL queries.
* Options are 'none' (which is the default) and 'file' and 'database'.
*/
define('SQL_CACHE_METHOD', 'none');
/**
* Reserved for future use
*/
define('SESSION_STORAGE', 'reserved for future use');
/**
* Advanced use only:
* The following are OPTIONAL, and should NOT be set unless you intend to change their normal use. Most sites will leave these untouched.
* To use them, uncomment AND add a proper defined value to them.
*/
// define('DIR_FS_SQL_CACHE' ...
// define('DIR_FS_DOWNLOAD' ...
// define('DIR_FS_LOGS' ...
// End Of File
Admin
Code:
<?php
/**
* @copyright Copyright 2003-2021 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* File Built by Zen Cart Installer on Sat Jun 19 2021 21:15:48
*/
/*************** NOTE: This file is VERY similar to, but DIFFERENT from the "store" version of configure.php. ***********/
/*************** The 2 files should be kept separate and not used to overwrite each other. ***********/
/**
* Enter the domain for your Admin URL. If you have SSL, enter the correct https address in the HTTP_SERVER setting, instead of just an http address.
*/
define('HTTP_SERVER', 'https://www.radiant-holidays.com/Test');
/**
* Note about HTTPS_SERVER:
* There is no longer an HTTPS_SERVER setting for the Admin. Instead, put your SSL URL in the HTTP_SERVER setting above.
*/
/**
* Note about DIR_WS_ADMIN
* The DIR_WS_ADMIN value is now auto-detected.
* In the rare case where it cannot be detected properly, you can add your own DIR_WS_ADMIN definition below.
*/
/**
* Enter the domain for your storefront URL.
* Enter a separate SSL URL in HTTPS_CATALOG_SERVER if your store supports SSL.
*/
define('HTTP_CATALOG_SERVER', 'https://www.radiant-holidays.com/Test');
define('HTTPS_CATALOG_SERVER', 'https://www.radiant-holidays.com/Test');
/**
* Do you use SSL for your customers login/checkout on the storefront? If so, enter 'true'. Else 'false'.
*/
define('ENABLE_SSL_CATALOG', 'true');
/**
* These DIR_WS_xxxx values refer to the name of any subdirectory in which your store is located.
* These values get added to the HTTP_CATALOG_SERVER and HTTPS_CATALOG_SERVER values to form the complete URLs to your storefront.
* They should always start and end with a slash ... ie: '/' or '/foldername/'
*/
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');
/**
* This is the complete physical path to your store's files. eg: /var/www/vhost/accountname/public_html/store/
* Should have a closing / on it.
*/
define('DIR_FS_CATALOG', '/home/*******/public_html/Test/');
/**
* NOTE about DIR_FS_ADMIN
* The value for DIR_FS_ADMIN is now auto-detected.
* In the very rare case where there is a need to override the autodetection, simply add your own definition for it below.
*/
/**
* The following settings define your database connection.
* These must be the SAME as you're using in your non-admin copy of configure.php
*/
define('DB_TYPE', 'mysql'); // always 'mysql'
define('DB_PREFIX', '*******'); // prefix for database table names -- preferred to be left empty
define('DB_CHARSET', 'utf8mb4'); // 'utf8mb4' or older 'utf8' / 'latin1' are most common
define('DB_SERVER', 'localhost'); // address of your db server
define('DB_SERVER_USERNAME', '*******');
define('DB_SERVER_PASSWORD', '******');
define('DB_DATABASE', '*******');
/**
* This is an advanced setting to determine whether you want to cache SQL queries.
* Options are 'none' (which is the default) and 'file' and 'database'.
*/
define('SQL_CACHE_METHOD', 'none');
/**
* Reserved for future use
*/
define('SESSION_STORAGE', 'reserved for future use');
/**
* Advanced use only:
* The following are OPTIONAL, and should NOT be set unless you intend to change their normal use. Most sites will leave these untouched.
* To use them, uncomment AND add a proper defined value to them.
*/
// define('DIR_FS_SQL_CACHE' ...
// define('DIR_FS_DOWNLOAD' ...
// define('DIR_FS_LOGS' ...
// End Of File
Yup.. Those appear to be the issue..
_SERVER <- This is the server name/domain name... No folders, no sub-folders, just the domain name.
DIR_WS_ <- This is the applicable sub-directory for the type of access referred... It is to begin and end with a slash.
So, all of the HTTP_SERVER, HTTPS_SERVER, HTTP_CATALOG_SERVER, HTTPS_CATALOG_SERVER should stop after the .com.
All instances of DIR_WS_CATALOG and DIR_WS_HTTPS_CATALOG should be in your case '/Test/'.
Now may ask why would it ever be different? That is server/host configured. For example, I've previously used a host where the secure path was by way of a group SSL to a sub-directory that represented the domain, but the standard site used our domain name and no sub-folder.
If there is a specific need to have the sub-folder in the "SERVER" name, then other modifications would be needed for the other desired locations to have the correct information when building links and references... Remember that the includes/configure.php is write protected so will need to be made editable when trying to save the above changes.
Re: Image Handler 5 (for v1.5.5) Support Thread
If this is just a symptom of that, then I should be okay. When I move this to the live site, that issue will go away.
Re: Image Handler 5 (for v1.5.5) Support Thread
I moved from a www.example.com/test to a normal URL and image issue in IH5 admin now works normally.
Re: Image Handler 5 (for v1.5.5) Support Thread
Its seems I as a bit premature on my success. It seems that my _LRG and _MED files are not being generated. So when I go the product detail page, all my images are broken. I look at the path for the image files and verified that they in fact do not exists. I am also getting PHP warnings about the missing files. I have verified that the files are not in the images folder. I do remember during some other testing of getting a php failure about requesting memory and the server would not allow it. I thought that was due to something else. I have not seen that error since however and I have been adding images left and right. There are no spaces in in my file names.
Where do I even start looking?
Re: Image Handler 5 (for v1.5.5) Support Thread
Quote:
Originally Posted by
g2ktcf
Its seems I as a bit premature on my success. It seems that my _LRG and _MED files are not being generated. So when I go the product detail page, all my images are broken. I look at the path for the image files and verified that they in fact do not exists. I am also getting PHP warnings about the missing files. I have verified that the files are not in the images folder. I do remember during some other testing of getting a php failure about requesting memory and the server would not allow it. I thought that was due to something else. I have not seen that error since however and I have been adding images left and right. There are no spaces in in my file names.
Where do I even start looking?
My suggestion.....Install the mod for missing images.... once you find out which images are missing then either fix them or disable until you can fix.
Re: Image Handler 5 (for v1.5.5) Support Thread
Quote:
Originally Posted by
g2ktcf
Its seems I as a bit premature on my success. It seems that my _LRG and _MED files are not being generated. So when I go the product detail page, all my images are broken. I look at the path for the image files and verified that they in fact do not exists. I am also getting PHP warnings about the missing files. I have verified that the files are not in the images folder. I do remember during some other testing of getting a php failure about requesting memory and the server would not allow it. I thought that was due to something else. I have not seen that error since however and I have been adding images left and right. There are no spaces in in my file names.
Where do I even start looking?
Just trying to help... but I don't see a reason to have a _LRG and _MED folder if you are using this module.... put your best image in the /images directory and this module will make the various sizes needed..... I could be wrong but I don't think the _LRG and _MED are used with this package.
Re: Image Handler 5 (for v1.5.5) Support Thread
Also there is a new image mod that some hosting companies are putting on their servers..... Google Speed Module .... this gives a strange location for the files but works for the most part unless you are making changes on the website and not having your cache get updated..... I ran into too many problems with my site and just asked them to uninstall it for my account.
https://developers.google.com/speed/pagespeed/module
Re: Image Handler 5 (for v1.5.5) Support Thread
It appears that my template is actively looking for these larger images. I modified my product image workflow to STOP creating the Large and Medium images. I have reworked two of the 50 images over the past few minutes and it does seem to solve my problem.
Re: Image Handler 5 (for v1.5.5) Support Thread
Quote:
Originally Posted by
shrimp-gumbo-mmmhhh
Just trying to help... but I don't see a reason to have a _LRG and _MED folder if you are using this module.... put your best image in the /images directory and this module will make the various sizes needed..... I could be wrong but I don't think the _LRG and _MED are used with this package.
A reason for a _MED or _LRG image is to actually provide a different image (perhaps a different perspective or content) based on what type of image is called on the catalog side. Now I may these days be wrong about the "folder" portion, but the concept remains the same that particular images are loaded for particular types of display, this plugin takes those pictures and compresses them to the desired resolution and to a filename that is reproducible to find.
I just downloaded version 5.1.11 and at least the observer uses whatever is defined as IMAGE_SUFFIX_MEDIUM and IMAGE_SUFFIX_LARGE which normally corresponds to _MED and _LRG suffix names.