Results 1 to 10 of 7098

Hybrid View

  1. #1
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default bmz_cache folder

    I did some additional checking of a few more client sites, and found that there were at least 2 sites where the permissions for the sub-folders are not being inherited from the parent as they should..

    After speaking to their hosting companies I concluded that this is definitely NOT something the host is doing intentionally but rather something Image Handler is doing.. It appears that the IH2 code does this based on certain host settings. (in this case both of these sites are being hosted by Go Daddy reseller companies. The sites that do not have this issue are not Go Daddy hosting. (all various hosts)

    So after doing some digging through the IH2 code I found a hint to the source of the issue. buried in the code is this reference to Tim's website: http://wiki.breakmyzencart.com/zen-cart:safemodehack

    Now I gather that this was included to account for some server configurations where you had to set folder permissions to 777 to get Image Handler to work. (Which is how in the early days of Zen and IH2 it had to be done on many hosts)

    Basically it looks as if one line in the includes/functions/extra_functions/functions_bmz_io.php sets folder permissions for sites hosted on some hosts to 777.

    Code:
          return @mkdir($target, 0777); // crawl back up & create dir tree
    this code on line 118 of the includes/functions/extra_functions/functions_bmz_io.php file is mucking up the sub-folder permissions for some (not all) webhosts.

    Now I don't know exactly why on some hosts the permissions are inheirited correctly and on some hosts they are not.. I do know that if I change the 777 to 755, then the permissions for the sub folders created within the IH2 bmz_cache folder will be set to 755..

    I am not entirely sure if this is THE fix, but it certainly is a solution. I would love it if ckosloff and clyde could weigh in to confirm all of this is in fact the correct solution, and perhaps shed some light on why it might work for some hosts but not others..

    Quote Originally Posted by clydejones View Post
    I just checked my bmz_cache folder (set to 755)
    All the folders (0 - f) within that folder are also set to 755 and the files within these folders are set to 644.
    Quote Originally Posted by ckosloff View Post
    I am so scared of aliens.
    I have never seen one, so they never did anything to me either.
    But I have heard stories of alien abductions, mostly in the X files.
    Since I don't know about aliens, and just to be in the safe side, I am scared, and recommend to other people to stay away from them.
    Sounds pretty much like these new security concerns:
    images in the bmz-cache are encrypted, so it does not matter to what security level they are set.
    If you use some free security tools like the Hacker toolbar, a free add-on for Firefox, or even the Linux CD from backtrack-linux.org, you will see what I mean.
    Try to find an entry point there.
    755 works for most Linux servers, I don't know if for all.
    Just to feed the paranoia you can set to 755 recursively your bmz_cache, IH2 does NOT set permissions for folders.
    Regarding the coders, yes they are dead people, and bad too, addicted to forks.
    However, the last incarnation for IH2 has been written and tested for Zen Cart simply because...there is no IH2 plugin yet for that other bad thing they indulge in.
    But stay tuned and you might soon find one.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  2. #2
    Join Date
    Jul 2010
    Location
    Sacramento, California
    Posts
    17
    Plugin Contributions
    0

    Default Re: Image Handler 2 Support

    Hello, I would like to say thank you very much for this addon! The auto resize + watermark feature has saved me a ton of time doing batch re-size and uploads with photoshop. I'm here today though because I have run into two problems with Image Handler and I can't seem to find the fix for it.

    #1 - In the admin, when I try to uninstall image handler it takes me to a log in and log out screen. I log in, and try to uninstall and it loops me back to the admin login.

    #2 - Image Handler is not displaying additional images. The main image is displaying and working as it should, but Additional images auto named by Image Handler still do not display properly.

    Mainly, I would prefer a solution to #2
    I am having some problems adding additional images to my products. Here is how I have named my products image folder and images inside of it:
    HTML Code:
    images/category1
     a001.JPG         <- Image for product 1 in subcategory A
     a001_01.JPG     <- Additional image for product 1
     a001_02.JPG     <- Additional image for product 1
    
     a002.JPG         <- Image for product 2 in subcategory A
     a002_01.JPG     <- Additional image for product 2
    
     b001.JPG         <- Image for product 1 in subcategory B
     b001_01.JPG     <- Additional image for product 1
    I have looked at the additional images guide:
    https://www.zen-cart.com/tutorials/index.php?article=58

    However, I with the addon Image Handler 2 for v1.3.x, I do not make use the following folders:

    images/medium
    images/large

    I have tried adding the medium and large folder manually and adding additional images there, but that did not make a difference. I have looked at both my:

    Admin>Configuration>Images
    Admin>Product Types>Product General>Edit Layout

    pages to ensure that Additional Images are enabled.

    I am using ZenCart v1.3.9d
    addons: Image Handler 2 for v1.3.x


    I have used the Image Handler Manager to add additional images to an item with no success. I have also manually FTP added the files to my images folder with no success. So I'm a little stumped!

    Would love some help on getting additional images in there :)

  3. #3
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Image Handler 2 Support

    Off the top of my head it sounds like you have possibly 1 or 2 things (and perhaps both) going on..
    1. It does not sound like IH2 is installed correctly
    2. Your IH2 settings are incorrect..

    Image Handler takes care of creating your medium and small product images if you upload your large image. It also manages the proper naming convention Zen Cart requires to create additional product images.. In other words it does automatically what this tutorial shows you how to do manually: https://www.zen-cart.com/tutorials/index.php?article=58

    In order for it to do it's job it must be installed properly and it must be configured correctly.. Please review the readme file and make sure you follow the suggestions and instructions for setting your images settings.. See if that doesn't get you a different result..

    Quote Originally Posted by nwms8 View Post
    Hello, I would like to say thank you very much for this addon! The auto resize + watermark feature has saved me a ton of time doing batch re-size and uploads with photoshop. I'm here today though because I have run into two problems with Image Handler and I can't seem to find the fix for it.

    #1 - In the admin, when I try to uninstall image handler it takes me to a log in and log out screen. I log in, and try to uninstall and it loops me back to the admin login.

    #2 - Image Handler is not displaying additional images. The main image is displaying and working as it should, but Additional images auto named by Image Handler still do not display properly.

    Mainly, I would prefer a solution to #2
    I am having some problems adding additional images to my products. Here is how I have named my products image folder and images inside of it:
    HTML Code:
    images/category1
     a001.JPG         <- Image for product 1 in subcategory A
     a001_01.JPG     <- Additional image for product 1
     a001_02.JPG     <- Additional image for product 1
    
     a002.JPG         <- Image for product 2 in subcategory A
     a002_01.JPG     <- Additional image for product 2
    
     b001.JPG         <- Image for product 1 in subcategory B
     b001_01.JPG     <- Additional image for product 1
    I have looked at the additional images guide:
    https://www.zen-cart.com/tutorials/index.php?article=58

    However, I with the addon Image Handler 2 for v1.3.x, I do not make use the following folders:

    images/medium
    images/large

    I have tried adding the medium and large folder manually and adding additional images there, but that did not make a difference. I have looked at both my:

    Admin>Configuration>Images
    Admin>Product Types>Product General>Edit Layout

    pages to ensure that Additional Images are enabled.

    I am using ZenCart v1.3.9d
    addons: Image Handler 2 for v1.3.x


    I have used the Image Handler Manager to add additional images to an item with no success. I have also manually FTP added the files to my images folder with no success. So I'm a little stumped!

    Would love some help on getting additional images in there :)
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  4. #4
    Join Date
    Jul 2010
    Location
    Sacramento, California
    Posts
    17
    Plugin Contributions
    0

    Default Re: Image Handler 2 Support

    Since I could not use the delete feature in Admin because I kept getting sent to a login, I went and downloaded IH v2 again and basically deleted every file I found in the download from my website. I then renamed the appropriate folders, and uploaded IH to my root directory.

    That didn't seem to fix the problem.

    I still can't 'uninstall' from the admin, and I still can't see additional images.

    Going to try a brand new install (I've made backups already heh) and see if it works out of box.
    Last edited by nwms8; 24 Jul 2010 at 08:19 AM. Reason: adding text.

  5. #5
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Image Handler 2 Support

    That was gonna be my suggestion.. Do you wanna try the version I have with the fixes I posted tonight?? If so, PM me and I'll get you that fileset..

    Quote Originally Posted by nwms8 View Post
    Since I could not use the delete feature in Admin because I kept getting sent to a login, I went and downloaded IH v2 again and basically deleted every file I found in the download from my website. I then renamed the appropriate folders, and uploaded IH to my root directory.

    That didn't seem to fix the problem.

    I still can't 'uninstall' from the admin, and I still can't see additional images.

    Going to try a brand new install (I've made backups already heh) and see if it works out of box.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  6. #6
    Join Date
    Jul 2010
    Location
    Sacramento, California
    Posts
    17
    Plugin Contributions
    0

    Default Re: Image Handler 2 Support

    Quote Originally Posted by DivaVocals View Post
    That was gonna be my suggestion.. Do you wanna try the version I have with the fixes I posted tonight?? If so, PM me and I'll get you that fileset..
    New install, it works

    Now I do see what people mean a few posts back about additional images not having the watermark, but I'm glad that I got additional images working in the first place!


    I'd love to try your version! Thank you for the offer!

    I sent you a PM.

  7. #7
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Image Handler 2 Support

    Cool.. I figured it was an install issue.. I sent you a PM.. Try the new fileset, and let me know if it fixes the watermarks on the large additional images..
    Quote Originally Posted by nwms8 View Post
    New install, it works

    Now I do see what people mean a few posts back about additional images not having the watermark, but I'm glad that I got additional images working in the first place!


    I'd love to try your version! Thank you for the offer!

    I sent you a PM.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  8. #8
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Watermarking on additional large images - possible fix..

    And I'm on a roll..

    I have confirmed that the current fileset for IH2 does indeed have an issue with watermarking ADDITIONAL large images.. I have found the possible solution and have tested and confirmed that my fix resolves the issue.. I am going to enlist the assistance of another Zenner to test this..

    dutchy, if you want to test the fix on your site, please PM me and we can exchange contact info..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

 

 

Similar Threads

  1. v150 Image Handler 4 (for v1.5.x) Support Thread
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 1687
    Last Post: 17 Nov 2024, 07:26 PM
  2. v139h Image Handler 3 Support Thread (for ZC v1.3.9)
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 1095
    Last Post: 2 Oct 2017, 12:42 PM
  3. Image Handler Support Please
    By nadinesky in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 30 Sep 2013, 03:47 PM
  4. Image handler only covers part of screen
    By shaneburton in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 14 May 2009, 07:15 PM
  5. Is Image Handler the only way to go?
    By wwwursa in forum Installing on a Windows Server
    Replies: 2
    Last Post: 23 Dec 2007, 09:22 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