I'm getting this in my error log. Any ideas? I'm using Image Handle 3, but the error occurs whether or not Image Handler is active.
PHP Warning: preg_replace(): Unknown modifier '$' in /includes/modules/4a/main_product_image.php on line 22
I'm getting this in my error log. Any ideas? I'm using Image Handle 3, but the error occurs whether or not Image Handler is active.
PHP Warning: preg_replace(): Unknown modifier '$' in /includes/modules/4a/main_product_image.php on line 22
http://www.divinelighting.com -- Super Orders 3.0 -- Ultimate SEO -- Quantity Discounts -- SitemapXML -- Image Handler -- Shipworks
There is no folder /includes/modules/4a/ in the standard distribution
Zen-Venom Get Bitten
I am guessing /A4/ is the name of the template override folder
Zen cart installation / maintenance / customisation / hosting
Supported Modules: Dutch language pack, Multi site, Dynamic Price Updater and more.
kobra, "4a" is probably the custom template override foldername.
divinelightning, What's the image filename involved when the error is triggered?
.
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.
4a is my active template. I don't know the file, but it is triggered very frequently. Not with every page view, but maybe 1/10 page views.
http://www.divinelighting.com -- Super Orders 3.0 -- Ultimate SEO -- Quantity Discounts -- SitemapXML -- Image Handler -- Shipworks
Lemme say it another way: do any of your images have a $ in their filename? If so, remove it.
.
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.
Unable to find images with '$'. This is the line the error refers to
replaced withPHP Code:
$products_image_base = preg_replace('/'.$products_image_extension . '$/', '', $products_image);
which did not work because then I got the errorPHP Code:
$products_image_base = preg_replace('/'.$products_image_extension . '/', '', $products_image);
PHP Code:
[26-Sep-2012 19:24:37 UTC] PHP Warning: preg_replace(): Unknown modifier '/' in /home/divine/domains/divinelighting.com/public_html/includes/modules/4a/main_product_image.php on line 22
http://www.divinelighting.com -- Super Orders 3.0 -- Ultimate SEO -- Quantity Discounts -- SitemapXML -- Image Handler -- Shipworks
There is no custom template file in IH3 for main_product_image.php but you have a custom version at /includes/modules/4a/main_product_image.phpI'm using Image Handle 3
What is this from??
Have you tried deleting it?
Zen-Venom Get Bitten
IH3 download has "Required Core Edits/includes/modules/YOUR_TEMPLATE/main_product_image.php"
http://www.divinelighting.com -- Super Orders 3.0 -- Ultimate SEO -- Quantity Discounts -- SitemapXML -- Image Handler -- Shipworks
Okay, back WAY UP and start at the VERY BASICS.
Do ANY of your image filenames have ANYTHING OTHER THAN letters and numbers, and a single "dot" in them? If so, change them.
.
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.
Bookmarks