Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23
  1. #11
    Join Date
    Dec 2006
    Posts
    26
    Plugin Contributions
    0

    Default Re: Error coming from additional_images.php

    Quote Originally Posted by DrByte View Post
    How many additional product images do you have for this product?
    What are their filenames ?

    Thanks Dr. Byte...

    You hit it on the nail when you asked for the filenames..

    Someone had changed the pictures on a couple of products and called them:

    +filename.jpg so I changed them to filename.jpg

    And the problem has gone away..


    Thanks again

  2. #12
    Join Date
    Jan 2004
    Posts
    66,391
    Blog Entries
    7
    Plugin Contributions
    81

    Default Re: Error coming from additional_images.php

    Aha ... that makes sense ... the preg_match would croak on having a + symbol ... because Regular Expressions use + as a special parameter for pattern matching ... and Zen Cart isn't expecting to have + symbols in filenames ...
    .

    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.

  3. #13
    Join Date
    Jun 2007
    Posts
    26
    Plugin Contributions
    0

    database error Re: Error coming from additional_images.php

    I'm having this same issue. I made the two changes suggested in the thread and now get a zillion of these on the page:
    Warning: preg_match(): Unknown modifier 'b' in /Applications/xampp/htdocs/includes/modules/additional_images.php on line 47

    When I uncomment this line (46)

    if(preg_match("/" . $products_image_match . "/i", $file) == '1') {

    I get just one error:

    Parse error: parse error, unexpected $ in /Applications/xampp/htdocs/includes/modules/additional_images.php on line 114

    Only I can't figure out where anything is missing. I should say I'm a novice at PHP but a quick learner!

    Any ideas!? When i uncommented that line did I need to add something elsewhere? Thanks so much.

    Thanks-
    Amy

  4. #14
    Join Date
    Jan 2004
    Posts
    72
    Plugin Contributions
    0

    Default Re: Error coming from additional_images.php

    check your image filenames - l got this error in one category only, and upon checking the image names, found that they contained spaces, and lots of symbols ( ) ; - etc - once l renamed them all to something 'clean', the problem disappeared alltogether :-)

  5. #15
    Join Date
    Apr 2007
    Posts
    10
    Plugin Contributions
    0

    Default Re: Error coming from additional_images.php

    I've done all the updates - also changed all 290 images in the store to a clean name but still get the error Warning: preg_match() [function.preg-match]: Unknown modifier '3' in /home/cq2730/public_html/store/includes/modules/additional_images.php on line 47. Can someone help me?
    www.eventboutique.ca/store

  6. #16
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Error coming from additional_images.php

    Did you make the changes suggested in posts 2 & 4 above? You should not need to, as those lines did not cause the reported problem, and the post 4 change would actually cause a different error in some conditions.

  7. #17
    Join Date
    Nov 2005
    Location
    Netherlands
    Posts
    53
    Plugin Contributions
    0

    Default Re: Error coming from additional_images.php

    Don't use [ and ] in the image names.

    More info How do I add multiple images to a product?
    zensational

  8. #18
    Join Date
    Apr 2007
    Posts
    10
    Plugin Contributions
    0

    Default Re: Error coming from additional_images.php

    There was only one of the updates that I changed. As for the images - there are only a couple with [ ] in them. There are still images like the engraved beer mug which doesn't have the brackets and the error is still there. The only brackets are shown in the toolbar as the listed model number.

  9. #19
    Join Date
    Nov 2005
    Location
    Netherlands
    Posts
    53
    Plugin Contributions
    0

    Default Re: Error coming from additional_images.php

    Your engraved beermug is available under:

    Products_id=233 and the image is placed under:images/30008-L[1].jpg --> [] in the filename

    and

    Products_id=159 and the image translated under path :images//30008-L.jpg --> double // is because of wrong filename or incorrect images directory -> no picture shown.
    Image available is under images/30008L.jpg
    zensational

  10. #20
    Join Date
    Apr 2007
    Posts
    10
    Plugin Contributions
    0

    Default Re: Error coming from additional_images.php

    Thank you everyone for your help. I had duplicate products (and didn't have each image updated). I have changed all of the image files - thank you guys for your help!

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Replies: 2
    Last Post: 12 Jun 2015, 10:11 PM
  2. v151 query from a category its products name, price, image, description and attributes
    By cmsdeployed in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 19 Jul 2013, 07:21 PM
  3. Image Handler 4.1 and zen lightbox additional_images conflict
    By oavs in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 13 May 2013, 07:01 AM
  4. Hide attributes dropdown when using attribute images and Element Below Image and Opt
    By mattys in forum Setting Up Categories, Products, Attributes
    Replies: 8
    Last Post: 13 Jun 2011, 03:11 PM
  5. function.preg-match error with additional_images.php
    By DigitalShadow in forum General Questions
    Replies: 5
    Last Post: 26 Jan 2011, 10:27 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