Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default IH2 bug: zen_image doesnt take parameter

    Sample code
    PHP Code:
    zen_image(DIR_WS_IMAGES $pd->fields['products_image'], $pd->fields['products_name'] ,195160'longdesc="'.zen_href_link(FILENAME_PRODUCT_INFO'products_id='.$pd->fields['products_id']).'"'); 
    While it is expected that the param I passed in should be in the new image, it was actually overwritten in this function and hence never appears (unless a certain condition is met, which I believe is the case that neither width nor height value is passed)

    Not exactly a Zen Cart bug, but kinda annoying and inconvenient.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  2. #2
    Join Date
    Apr 2007
    Location
    Herts. UK
    Posts
    890
    Plugin Contributions
    4

    Default Re: zen_image doesnt take parameter

    Quote Originally Posted by yellow1912 View Post
    While it is expected that the param I passed in should be in the new image, it was actually overwritten in this function and hence never appears (unless a certain condition is met, which I believe is the case that neither width nor height value is passed)
    I can't see anything in the stock ZC 1.3.8 code that would produce that effect. Do you have IH2 installed? Are you sure that DIR_WS_IMAGES . $pd->fields['products_image'] points to a valid filename?

    Regards,
    Christian.

  3. #3
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: zen_image doesnt take parameter

    You are right, with IH2 installed it seems to produce that effect. Now I will have to see how to by pass this.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  4. #4
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: zen_image doesnt take parameter

    Just to clarify this matter:
    1. It isnt a Zen Cart bug, seem to happen only when ih2 is installed
    2. I ended up having to create an alternative zen_image2 function to have my params put in. Well, it works that way so....
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

 

 

Similar Threads

  1. v151 zen_image ambiguous value for $src parameter
    By chicagoitsystems in forum Bug Reports
    Replies: 6
    Last Post: 19 Dec 2012, 11:58 PM
  2. Fixed bug in IH2 - parameters passed via zen_image ignored
    By wgeoghegan in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 24 Dec 2009, 11:39 AM
  3. IE bug with IH2
    By australican in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 23 Jun 2009, 05:52 AM
  4. My site doesnt' seem take account of Gift Certificate with PayPal
    By studio177 in forum PayPal Express Checkout support
    Replies: 3
    Last Post: 26 Apr 2007, 07:31 PM
  5. Replies: 1
    Last Post: 16 Aug 2006, 11:31 PM

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