Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Jun 2006
    Location
    Atlanta, GA
    Posts
    118
    Plugin Contributions
    0

    Default Error: Unknown modifier '$' in main_product_image.php

    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

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Error: Unknown modifier '$' in main_product_image.php

    There is no folder /includes/modules/4a/ in the standard distribution
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,846
    Plugin Contributions
    25

    Default Re: Error: Unknown modifier '$' in main_product_image.php

    I am guessing /A4/ is the name of the template override folder

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Error: Unknown modifier '$' in main_product_image.php

    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.

  5. #5
    Join Date
    Jun 2006
    Location
    Atlanta, GA
    Posts
    118
    Plugin Contributions
    0

    Default Re: Error: Unknown modifier '$' in main_product_image.php

    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

  6. #6
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Error: Unknown modifier '$' in main_product_image.php

    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.

  7. #7
    Join Date
    Jun 2006
    Location
    Atlanta, GA
    Posts
    118
    Plugin Contributions
    0

    Default Re: Error: Unknown modifier '$' in main_product_image.php

    Unable to find images with '$'. This is the line the error refers to
    PHP Code:
    $products_image_base preg_replace('/'.$products_image_extension '$/'''$products_image); 
    replaced with
    PHP Code:
    $products_image_base preg_replace('/'.$products_image_extension '/'''$products_image); 
    which did not work because then I got the error
    PHP Code:
    [26-Sep-2012 19:24:37 UTCPHP 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

  8. #8
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Error: Unknown modifier '$' in main_product_image.php

    I'm using Image Handle 3
    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.php

    What is this from??
    Have you tried deleting it?
    Zen-Venom Get Bitten

  9. #9
    Join Date
    Jun 2006
    Location
    Atlanta, GA
    Posts
    118
    Plugin Contributions
    0

    Default Re: Error: Unknown modifier '$' in main_product_image.php

    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

  10. #10
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Error: Unknown modifier '$' in main_product_image.php

    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.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. preg_match(): Unknown modifier '0' ???
    By AnglersCorner in forum Upgrading to 1.5.x
    Replies: 5
    Last Post: 1 Jun 2015, 12:36 PM
  2. Replies: 5
    Last Post: 15 Sep 2011, 03:16 PM
  3. preg_replace(): Unknown modifier 'h' in layout_controller.php
    By rashuweb in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 4 May 2011, 01:47 PM
  4. Replies: 2
    Last Post: 3 May 2010, 08:39 PM
  5. preg_match() Unknown modifier 'a' warning in Admin Additiona Images addon
    By dlamar in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 26 Mar 2010, 03:20 PM

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