Zen Cart Logo
Forums / All Other Contributions/Addons / Image Handler 2 (for ZC v1.3.8 ONLY) Support

Image Handler 2 (for ZC v1.3.8 ONLY) Support

Views: 2,510,728

Results 3,781 to 3,800 of 7,094
22 Apr 2009, 9:36 AM
#3781
tophand avatar

tophand

Totally Zenned

Join Date:
Jan 2007
Location:
1.5 miles from Home
Posts:
674
Plugin Contributions:
0

Image Handler 2 (for ZC v1.3.8 ONLY) Support

burnduck:

sure, http://gyratech.com/

idk why zooming is not working

You need to upload "All" of the IH files.
You are missing the one you need to have zoom/hover work.

22 Apr 2009, 1:20 PM
#3783
jymontoya avatar

jymontoya

New Zenner

Join Date:
Apr 2009
Posts:
54
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Nope, didn't work.

22 Apr 2009, 3:53 PM
#3784
tophand avatar

tophand

Totally Zenned

Join Date:
Jan 2007
Location:
1.5 miles from Home
Posts:
674
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

jymontoya:

Nope, didn't work.

Well, does now work with IE (didn't before).

You don't have zoom/hover site wide or just on the page you link to?

22 Apr 2009, 4:36 PM
#3785
balamir avatar

balamir

New Zenner

Join Date:
Apr 2009
Posts:
4
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Hi there,
this is my first post and I hope you can help me with my issue.
I've installed ZenCart 1.3.8a (ZJ_Black template) and IH2 (the latest versione). I got this problem: when I upload and additional picture, the script do it assigning CHMOD 600 to the new file. Due to this, the picture isn't available to normal user (catalog side) when they try to enlarge it.

If I go modifying new uploaded picture to CHMOD 775 (or 777), the enlarged picture become available.

Can you help me with this? Any suggestion to be able to upload the additional picture with standard CHMOD?

I've already changed bmz_cache to match images directory (both 777).

Hope you can help.

Regards.

22 Apr 2009, 5:33 PM
#3786
jmies avatar

jmies

New Zenner

Join Date:
Oct 2008
Posts:
3
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

I haven't been able to find a reference to this problem in any posts. IH2 is working fine, but I can't use the IH manager to upload images. When I browse my images and upload one, I get a blank page with the address http://www.mysite.com/catalog/admin/image_handler.php?&products_filter=254&imgBase=subcategory&imgBaseDir=&imgExtension=.gif&action=save showing in the address bar.

Images zoom perfectly on the pages. I'm trying to upload a small JPG, does the reference to a GIF in the address have anything to do with it?

Thanks for the help.

22 Apr 2009, 5:39 PM
#3787
jymontoya avatar

jymontoya

New Zenner

Join Date:
Apr 2009
Posts:
54
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

tophand:

Well, does now work with IE (didn't before).

You don't have zoom/hover site wide or just on the page you link to?

That's good to know. Gotta have that IE compatibility! I'm going to have to get VMWARE's fusion and install XP, so I can check myself.

Should be site wide. It definitely is for me. Is it not for you? I don't get why Safari would be so different. :cry:

22 Apr 2009, 6:02 PM
#3788
balamir avatar

balamir

New Zenner

Join Date:
Apr 2009
Posts:
4
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

I see many people before got my same problem, since 2005 toward today... And no solution... I guess there's no solution to this problem...

22 Apr 2009, 8:09 PM
#3789
need_help avatar

need_help

Zen Follower

Join Date:
Feb 2009
Posts:
205
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

jmies:

I haven't been able to find a reference to this problem in any posts. IH2 is working fine, but I can't use the IH manager to upload images. When I browse my images and upload one, I get a blank page with the address http://www.mysite.com/catalog/admin/image_handler.php?&products_filter=254&imgBase=subcategory&imgBaseDir=&imgExtension=.gif&action=save showing in the address bar.

Images zoom perfectly on the pages. I'm trying to upload a small JPG, does the reference to a GIF in the address have anything to do with it?

Thanks for the help.

Use large images as Image Handler makes small and medium from your large images.

I'm not sure why Gif would be in the address if it's a jpg but sounds like there might be a problem there.

You can go into your admin, configuration and images and change the filetype if it is a gif and it'll then work with Gif files.

Regarding your error message. Check the file image_handler.php is installed and in the correct folder.

22 Apr 2009, 8:13 PM
#3790
need_help avatar

need_help

Zen Follower

Join Date:
Feb 2009
Posts:
205
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Balamir:

I see many people before got my same problem, since 2005 toward today... And no solution... I guess there's no solution to this problem...

Clear the image cache and set permissions on the images folder and bmz_cache to 755.

Make sure there are no image files in the medium and large folders as otherwise Image Handler just won't do it's job.

23 Apr 2009, 8:10 AM
#3791
balamir avatar

balamir

New Zenner

Join Date:
Apr 2009
Posts:
4
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

need_help:

Clear the image cache and set permissions on the images folder and bmz_cache to 755.

Make sure there are no image files in the medium and large folders as otherwise Image Handler just won't do it's job.

Thank you for your help, but, unfortunately, it still doesn't work...
The problem isn't in the cache directory but in the fact that the image uplaoded is set to CHMOD 600 instead of 755 (as when you upload image through categories/products).

Any other solution?

23 Apr 2009, 10:54 AM
#3792
gonsman avatar

gonsman

New Zenner

Join Date:
Oct 2005
Posts:
35
Plugin Contributions:
1

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

gonsman:

I am having a permissions problem where the images that I upload are set to 600. If I upload an image under categories/products it works fine. I have seen this issue a few times in this thread, but no real answers. I talked to my host about it and they suggested that I customize the code and manually set the permissions using chmod(). I can easily do this if someone could direct me to the file and line that uploads/moves the files to server. Does anybody know where this is?

I was able to find the answer to this question. The file to edit is /admin/includes/ih_manager.php. In my version, I changed lines 166-212.

Change the following (old code):

    if ($check != 1) {
      // check for destination directory and create, if they don't exist!
      // Then move uploaded file to its new destination
      
      // default image
      if ($_FILES['default_image']['name'] != '') {
        io_makeFileDir(DIR_FS_CATALOG_IMAGES.$data['defaultFileName']);
        $source_name = $_FILES['default_image']['tmp_name'];
        $destination_name = DIR_FS_CATALOG_IMAGES . $data['defaultFileName'];
        if ( !move_uploaded_file($source_name, $destination_name) ) {
          $messageStack->add( TEXT_MSG_NOUPLOAD_DEFAULT, "error" );
          $check = 1;
        }
      }
      // medium image
      if ($_FILES['medium_image']['name'] != '') {
        $data['mediumImgExtension'] = substr( $_FILES['medium_image']['name'], 
          strrpos($_FILES['medium_image']['name'], '.'));
        $data['mediumFileName'] ='medium/' . $data['imgBaseDir']
          . $data['imgBase'] 
          . $data['imgSuffix'] . IMAGE_SUFFIX_MEDIUM
          . $data['mediumImgExtension'];
        io_makeFileDir(DIR_FS_CATALOG_IMAGES.$data['mediumFileName']);
        $source_name = $_FILES['medium_image']['tmp_name'];
        $destination_name = DIR_FS_CATALOG_IMAGES . $data['mediumFileName'];
        if ( !move_uploaded_file($source_name, $destination_name) ) {
          $messageStack->add( TEXT_MSG_NOUPLOAD_MEDIUM, "error" );
          $check = 1;
        }
      }
      // large image
      if ($_FILES['large_image']['name'] != '') {
        $data['largeImgExtension'] = substr( $_FILES['large_image']['name'], 
          strrpos($_FILES['large_image']['name'], '.'));
        $data['largeFileName'] = 'large/' . $data['imgBaseDir']
          . $data['imgBase'] 
          . $data['imgSuffix'] . IMAGE_SUFFIX_LARGE
          . $data['largeImgExtension'];
        io_makeFileDir(DIR_FS_CATALOG_IMAGES.$data['largeFileName']);
        $source_name = $_FILES['large_image']['tmp_name'];
        $destination_name = DIR_FS_CATALOG_IMAGES . $data['largeFileName'];
        if ( !move_uploaded_file($source_name, $destination_name) ) {
          $messageStack->add( TEXT_MSG_NOUPLOAD_LARGE, "error" );
          $check = 1;
        }
      }  
    }

to (new code):

    if ($check != 1) {
      // check for destination directory and create, if they don't exist!
      // Then move uploaded file to its new destination
      
      // default image
      if ($_FILES['default_image']['name'] != '') {
        io_makeFileDir(DIR_FS_CATALOG_IMAGES.$data['defaultFileName']);
        $source_name = $_FILES['default_image']['tmp_name'];
        $destination_name = DIR_FS_CATALOG_IMAGES . $data['defaultFileName'];
        if ( !move_uploaded_file($source_name, $destination_name) ) {
          $messageStack->add( TEXT_MSG_NOUPLOAD_DEFAULT, "error" );
          $check = 1;
        }
		else
		{
			chmod($destination_name, 0755);
		}
      }
      // medium image
      if ($_FILES['medium_image']['name'] != '') {
        $data['mediumImgExtension'] = substr( $_FILES['medium_image']['name'], 
          strrpos($_FILES['medium_image']['name'], '.'));
        $data['mediumFileName'] ='medium/' . $data['imgBaseDir']
          . $data['imgBase'] 
          . $data['imgSuffix'] . IMAGE_SUFFIX_MEDIUM
          . $data['mediumImgExtension'];
        io_makeFileDir(DIR_FS_CATALOG_IMAGES.$data['mediumFileName']);
        $source_name = $_FILES['medium_image']['tmp_name'];
        $destination_name = DIR_FS_CATALOG_IMAGES . $data['mediumFileName'];
        if ( !move_uploaded_file($source_name, $destination_name) ) {
          $messageStack->add( TEXT_MSG_NOUPLOAD_MEDIUM, "error" );
          $check = 1;
        }
		else
		{
			chmod($destination_name, 0755);
		}
      }
      // large image
      if ($_FILES['large_image']['name'] != '') {
        $data['largeImgExtension'] = substr( $_FILES['large_image']['name'], 
          strrpos($_FILES['large_image']['name'], '.'));
        $data['largeFileName'] = 'large/' . $data['imgBaseDir']
          . $data['imgBase'] 
          . $data['imgSuffix'] . IMAGE_SUFFIX_LARGE
          . $data['largeImgExtension'];
        io_makeFileDir(DIR_FS_CATALOG_IMAGES.$data['largeFileName']);
        $source_name = $_FILES['large_image']['tmp_name'];
        $destination_name = DIR_FS_CATALOG_IMAGES . $data['largeFileName'];
        if ( !move_uploaded_file($source_name, $destination_name) ) {
          $messageStack->add( TEXT_MSG_NOUPLOAD_LARGE, "error" );
          $check = 1;
        }
		else
		{
			chmod($destination_name, 0755);
		}
      }  
    }

As you can see, I added 3 chmod functions after each upload. You can change the permissions from 0755 to 0777 or whatever you want. If you want to check the version, the top of this file has the following:

/**
 * ih_manager.php
 * manager module for IH2 admin interface
 *
 * @author  Tim Kroeger <[email protected]>
 * @copyright Copyright 2005-2006 breakmyzencart.com
 * @license http://www.gnu.org/licenses/gpl.txt GNU General Public License V2.0
 * @version $Id: ih_manager.php,v 1.2 2006/04/17 18:23:24 tim Exp $
 */
23 Apr 2009, 11:12 AM
#3793
balamir avatar

balamir

New Zenner

Join Date:
Apr 2009
Posts:
4
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

gonsman:

I was able to find the answer to this question. The file to edit is /admin/includes/ih_manager.php. In my version, I changed lines 166-212.

Change the following (old code):

if ($check != 1) {
  // check for destination directory and create, if they don't exist!
  // Then move uploaded file to its new destination
  
  // default image
  if ($_FILES['default_image']['name'] != '') {
    io_makeFileDir(DIR_FS_CATALOG_IMAGES.$data['defaultFileName']);
    $source_name = $_FILES['default_image']['tmp_name'];
    $destination_name = DIR_FS_CATALOG_IMAGES . $data['defaultFileName'];
    if ( !move_uploaded_file($source_name, $destination_name) ) {
      $messageStack->add( TEXT_MSG_NOUPLOAD_DEFAULT, "error" );
      $check = 1;
    }
  }
  // medium image
  if ($_FILES['medium_image']['name'] != '') {
    $data['mediumImgExtension'] = substr( $_FILES['medium_image']['name'], 
      strrpos($_FILES['medium_image']['name'], '.'));
    $data['mediumFileName'] ='medium/' . $data['imgBaseDir']
      . $data['imgBase'] 
      . $data['imgSuffix'] . IMAGE_SUFFIX_MEDIUM
      . $data['mediumImgExtension'];
    io_makeFileDir(DIR_FS_CATALOG_IMAGES.$data['mediumFileName']);
    $source_name = $_FILES['medium_image']['tmp_name'];
    $destination_name = DIR_FS_CATALOG_IMAGES . $data['mediumFileName'];
    if ( !move_uploaded_file($source_name, $destination_name) ) {
      $messageStack->add( TEXT_MSG_NOUPLOAD_MEDIUM, "error" );
      $check = 1;
    }
  }
  // large image
  if ($_FILES['large_image']['name'] != '') {
    $data['largeImgExtension'] = substr( $_FILES['large_image']['name'], 
      strrpos($_FILES['large_image']['name'], '.'));
    $data['largeFileName'] = 'large/' . $data['imgBaseDir']
      . $data['imgBase'] 
      . $data['imgSuffix'] . IMAGE_SUFFIX_LARGE
      . $data['largeImgExtension'];
    io_makeFileDir(DIR_FS_CATALOG_IMAGES.$data['largeFileName']);
    $source_name = $_FILES['large_image']['tmp_name'];
    $destination_name = DIR_FS_CATALOG_IMAGES . $data['largeFileName'];
    if ( !move_uploaded_file($source_name, $destination_name) ) {
      $messageStack->add( TEXT_MSG_NOUPLOAD_LARGE, "error" );
      $check = 1;
    }
  }  
}
> to (new code):
> ```
    if ($check != 1) {
      // check for destination directory and create, if they don't exist!
      // Then move uploaded file to its new destination
      
      // default image
      if ($_FILES['default_image']['name'] != '') {
        io_makeFileDir(DIR_FS_CATALOG_IMAGES.$data['defaultFileName']);
        $source_name = $_FILES['default_image']['tmp_name'];
        $destination_name = DIR_FS_CATALOG_IMAGES . $data['defaultFileName'];
        if ( !move_uploaded_file($source_name, $destination_name) ) {
          $messageStack->add( TEXT_MSG_NOUPLOAD_DEFAULT, "error" );
          $check = 1;
        }
		else
		{
			chmod($destination_name, 0755);
		}
      }
      // medium image
      if ($_FILES['medium_image']['name'] != '') {
        $data['mediumImgExtension'] = substr( $_FILES['medium_image']['name'], 
          strrpos($_FILES['medium_image']['name'], '.'));
        $data['mediumFileName'] ='medium/' . $data['imgBaseDir']
          . $data['imgBase'] 
          . $data['imgSuffix'] . IMAGE_SUFFIX_MEDIUM
          . $data['mediumImgExtension'];
        io_makeFileDir(DIR_FS_CATALOG_IMAGES.$data['mediumFileName']);
        $source_name = $_FILES['medium_image']['tmp_name'];
        $destination_name = DIR_FS_CATALOG_IMAGES . $data['mediumFileName'];
        if ( !move_uploaded_file($source_name, $destination_name) ) {
          $messageStack->add( TEXT_MSG_NOUPLOAD_MEDIUM, "error" );
          $check = 1;
        }
		else
		{
			chmod($destination_name, 0755);
		}
      }
      // large image
      if ($_FILES['large_image']['name'] != '') {
        $data['largeImgExtension'] = substr( $_FILES['large_image']['name'], 
          strrpos($_FILES['large_image']['name'], '.'));
        $data['largeFileName'] = 'large/' . $data['imgBaseDir']
          . $data['imgBase'] 
          . $data['imgSuffix'] . IMAGE_SUFFIX_LARGE
          . $data['largeImgExtension'];
        io_makeFileDir(DIR_FS_CATALOG_IMAGES.$data['largeFileName']);
        $source_name = $_FILES['large_image']['tmp_name'];
        $destination_name = DIR_FS_CATALOG_IMAGES . $data['largeFileName'];
        if ( !move_uploaded_file($source_name, $destination_name) ) {
          $messageStack->add( TEXT_MSG_NOUPLOAD_LARGE, "error" );
          $check = 1;
        }
		else
		{
			chmod($destination_name, 0755);
		}
      }  
    }

As you can see, I added 3 chmod functions after each upload. You can change the permissions from 0755 to 0777 or whatever you want. If you want to check the version, the top of this file has the following:

/**

  • ih_manager.php
  • manager module for IH2 admin interface
  • @author Tim Kroeger [email protected]
  • @copyright Copyright 2005-2006 breakmyzencart.com
  • @license http://www.gnu.org/licenses/gpl.txt GNU General Public License V2.0
  • @version $Id: ih_manager.php,v 1.2 2006/04/17 18:23:24 tim Exp $
    */

Finally it works!

Thank you so much, gonsman! You saved my life (and my small brain...) :hug:
23 Apr 2009, 1:15 PM
#3794
jmies avatar

jmies

New Zenner

Join Date:
Oct 2008
Posts:
3
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

need_help:

Use large images as Image Handler makes small and medium from your large images.

I'm not sure why Gif would be in the address if it's a jpg but sounds like there might be a problem there.

You can go into your admin, configuration and images and change the filetype if it is a gif and it'll then work with Gif files.

Regarding your error message. Check the file image_handler.php is installed and in the correct folder.

Thanks. I found what was wrong. When I was setting it up, each time FTP'ed the bmz_io_conf.php file to the admin directory, my admin interface went blank. I installed it without that file, and forgot to transfer it again. I put it in the directory and that problem is solved.

I have one more small problem. In the categories/product section, the new icon wih the "i" is missing from between the copy and attribute icon. What would cause that to happen? Thanks in advance.

23 Apr 2009, 5:13 PM
#3795
scarlet avatar

scarlet

Zen Follower

Join Date:
Jun 2004
Posts:
127
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

I must not know how to use this mod - I installed everything and nothing has changed on the storefront. The images don't popup when hovered over, even though it says to do so. It looks just like the regular additional images before I added the mod. Anyone know what I might have done wrong? I triple checked I uploaded all the files.

23 Apr 2009, 7:44 PM
#3796
cupid avatar

cupid

New Zenner

Join Date:
Apr 2009
Posts:
3
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

timkroeger:

Just found out the new forums are in effect ;-) Here's the new support thread for Image Handler 2 picking up where the old support thread left. I assume you have read the IH2 documentation already.

Cheers,
Tim

I have looked and looked, and I can't see how to upload images. The directions that tell me to go to admin/images/logo.gif. I know where admin - configurations - images is. but I don't see a logo.gif. I know that I am missing something basic.

Thanks,
Cupid

23 Apr 2009, 7:47 PM
#3797
scarlet avatar

scarlet

Zen Follower

Join Date:
Jun 2004
Posts:
127
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Click on the little "i" circle on the right side of the product listing pages.

23 Apr 2009, 9:36 PM
#3798
cupid avatar

cupid

New Zenner

Join Date:
Apr 2009
Posts:
3
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Scarlet:

Click on the little "i" circle on the right side of the product listing pages.

Thanks, I do have one of each product. But I need to add logo and extra pictures of products.

24 Apr 2009, 12:40 AM
#3799
tophand avatar

tophand

Totally Zenned

Join Date:
Jan 2007
Location:
1.5 miles from Home
Posts:
674
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Scarlet:

I must not know how to use this mod - I installed everything and nothing has changed on the storefront. The images don't popup when hovered over, even though it says to do so. It looks just like the regular additional images before I added the mod. Anyone know what I might have done wrong? I triple checked I uploaded all the files.

A link helps us help you.