Zen Cart Logo
Forums / Basic Configuration / Image Handler "Double Directory Image problems"

Image Handler "Double Directory Image problems"

Locked

Views: 3,183

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
10 Jun 2006, 4:45 AM
#1
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,178
Plugin Contributions:
0

Image Handler "Double Directory Image problems"

I just installed Image handler 2 and it is looking for the sample images in a double directory.
The directory that my zencart is installed is called gomag...
In Admin/Tools/ImageHandler2/Preview : The Following occurs below:
I saw all the red x's for the sample .png's and .jpg.
I right clicked and went to properties and it says gomag/gomag/admin/images/ih-test.png
What could have gone wrong with the install?

Ivan 02, quoted below a fix:
i had the same problem.
It seems to be a minor issue since it only affects the admin-preview on a shop below the root directory.

You can solve by editing the file .../admin/includes/functions/extra_functions/functions_bmz_image_handler.php

Just replace:

Code:
$ihConf['dir']['admin'] = preg_replace('/^/(.*)/', '$1', (($request_type == 'SSL') ? DIR_WS_HTTPS_ADMIN : DIR_WS_ADMIN));
with

Replacement Code:
$ihConf['dir']['admin'] = end(explode("/", trim( (($request_type == 'SSL') ? DIR_WS_HTTPS_ADMIN : DIR_WS_ADMIN) ,"/") ))."/";

Did not work at all.

Mark

10 Jun 2006, 6:20 PM
#2
timkroeger avatar

timkroeger

Totally Zenned

Join Date:
Feb 2005
Location:
Germany
Posts:
580
Plugin Contributions:
0

Re: Image Handler "Double Directory Image problems"

Have you seen this post? I'm referencing some quickfixes, MM pointed out at the breakmyzencart forum.

Cheers,
Tim

10 Jun 2006, 6:43 PM
#3
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,178
Plugin Contributions:
0

Re: Image Handler "Double Directory Image problems"

Tim,
Thank you for the quick response and your vital time.

Made the correct file changes.
Great Java Script fixed in IE
Now I can preview only 2 of the 3 file formats in Admin/Image Handler 2/Preview
They are: jpg & gif

The png is the only problem
Admin/Image Handler 2/Preview, the png file path states, gomag3/bmz_cache/0/0d48eeaafa3a8bb8184ebc2da587828a.image.100x56.png Looks correct but no images appear, still the red X box appears.

Any suggestions?
Mark

3 Aug 2009, 6:01 PM
#4
toniscraparoni avatar

toniscraparoni

Zen Follower

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

Re: Image Handler "Double Directory Image problems"

The png is the only problem
Admin/Image Handler 2/Preview, the png file path states, gomag3/bmz_cache/0/0d48eeaafa3a8bb8184ebc2da587828a.image.100x56.png Looks correct but no images appear, still the red X box appears.[/COLOR]
Any suggestions?
Mark

I'm having the same exact problem as haredo after changing hosts. .PNGs worked fine before, not now. Now I can see the .PNG preview in Admin » Catalog, just not in the store or IH2, while .jpg and .gifs display perfectly.

Asked the new host about it, of course they're clueless. And this is the only relevant post I can find. Anyone mind to clue a girl in?

Thanks a bunch!!