Re: New Image Manager available
Hello
good posting but i cant see de images. wend you click on "clik for image" the link is http://mysite.com/images/acessories/image.jpg but its rong the correct link is http://mysite.com/SHOP/images/acessories/image.jpg
Re: New Image Manager available
Hi Dinix,
Can you try the following:
In admin/includes/functions/extra_functions, edit function_image_manager.php
On line 187, replace:
$file = HTTP_CATALOG_SERVER . "/" . DIR_WS_IMAGES . $p["dirname"] . $p["filename"] . "." . $p["extension"];
with:
$file = DIR_WS_CATALOG_IMAGES . $p["dirname"] . $p["filename"] . "." . $p["extension"];
On line 233, replace:
$file = HTTP_CATALOG_SERVER . "/" . DIR_WS_IMAGES . 'medium/'. $p["dirname"] . $p["filename"] . "_MED." . $p["extension"];
with:
$file = DIR_WS_CATALOG_IMAGES . 'medium/'. $p["dirname"] . $p["filename"] . "_MED." . $p["extension"];
On line 287, replace:
$file = HTTP_CATALOG_SERVER . "/" . DIR_WS_IMAGES . 'large/'. $p["dirname"] . $p["filename"] . "_LRG." . $p["extension"];
with:
$file = DIR_WS_CATALOG_IMAGES . 'large/'. $p["dirname"] . $p["filename"] . "_LRG." . $p["extension"];
I THINK this will fix your problem, but as I cannot test this myself I'm not entirely sure. If it doesn't help, please report back and we will go a step further.
Boudewijn
Re: New Image Manager available
Tanks Boudewijn
now works fine
Re: New Image Manager available
Sounds like a good add on, I will give it a try once I'm done updating the stores!
Re: New Image Manager available
Hmmm nice shop :-)
Installation is done in 5 mins.....
If you intend to update your images too, this tool will be very helpful!
Re: New Image Manager available
Looks like this doesnt work with 1.3.9.
When installed on a 1.3.9 you dont see thumbnails of images.
Also you can not perform any actions on images. You cant create sized images ( the main feature I liked).
It does let you search your images and see if the correct images size files are present. It does make non existent folders automatically.
And you can delete images that are not linked.
I did try boudewijn's fix above with no effect.
Re: New Image Manager available
Hi,
Actually I just started rebuilding our webshop to ZenCart 1.3.9. I also copied the IM package but had no opportunity yet to test it, as there are no products and images in my DB.
I will give this some priority and come up with an answer soon.
Boudewijn
Re: New Image Manager available
I did find a small bug in the English language file:
in
<admin dir>/includes/languages/english/extra_definitions/image_manager.php line 30 should be:
define('IM_SELECT_IMG_IMG_ALL', 'All images');
Furthermore I did a small test with one product and one image, and all works fine. So I suspect the problem is in your config.
Can you check <admin dir>/includes/configure.php and check the values for:
HTTP_CATALOG_SERVER: should be something like http://www.mysite.com (no trailing slash)
DIR_WS_IMAGES: should be images/
and check if the image is actually in http://www.mysite.com/images/mypic.jpg
The uploaded image should appear, even before the medium and large image is made, if you select "Small images' or 'All images' in the option bar and click 'Send'.
Boudewijn
Re: New Image Manager available
Just checked configure.php admin/includes file and it is all correct.
All product images are in the correct image folder.
I tried selecting all different options and could not get any thumbnail images to appear. Nor were there any options anywhere to create med. or large images.
I will try your small change, but don't think that is big enough a change to make it work on my site. I did notice that another image manager addon named Imaged Handler required another program GD libraries or ImageMagick to work. However I see no mention of this anywhere about your addon. Is it required for yours as well and just doesnt mention it? ty for the help.
Re: New Image Manager available
Ah yes of course.... good point to think of the prerequisites!
IM does require the GD library, for shrinking/watermarking, as well as for recognising a file as image.
Since it cannot determine image/no image, it won't display sizes, links etc.
As the GD library is quite commonly used (I never suspected it to be absent in installations), you may ask your ISP to activate it.
In the next version I will build a check to see if the library is loaded.
Thanks for your feedback!
Boudewijn
Re: New Image Manager available
Ok well this is getting interesting. Thank you in your patience helping me with this.
After finding out that I do need GD Library, I wanted to find out if I did indeed not have it installed as part of my ISP hosting.
I found this guide to check if GD is turned on.
http://assets.webassist.com/how-tos/gd_library_ht.pdf
It said to make a file named phpinfo.php with
<?php
phpinfo();
?>
upload it to my server and go to that file.
if it is on it said it would show me the info and it did.
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
Not sure where this leaves me. The only conclusion I can make is that something about my server is not compatible with the addon?
Re: New Image Manager available
You can also do the check from within your Zen-cart admin interface: Tools->Server version/info.
Some more info that may be useful:
- What PHP version is on your server?
- The value of DIR_FS_CATALOG in the configure.php file in your <admin>/includes folder. This should be the file path on your server, to your zen-cart files, ending with a slash.
I really cannot think of anything not being compatible, as only standard PHP functions are used, which I believe were already supported in earlier versions of PHP. But one can never know.....
Re: New Image Manager available
PHP Version: 4.4.4
Apache http server
DIR_FS_CATALOG is a correct path. It is in this format;
define('DIR_FS_CATALOG', '/usr2/home/domainname.com/htdocs/storename/');
I should also note the other addons I am using are:
Easy Populate v1.2.5.4
Super Orders 20 Rev48
Quick Order 1.2.3
Improved Attributes Controller
Attribute Grid 1.1.1
Re: New Image Manager available
Ok thanks. That looks ok at first sight.
Let's go back to IM. I want to try and follow the program to see where it doesn't pick up the info.
Can you point out what exactely IM shows you for the images, per column?
Re: New Image Manager available
@boudewijn - did you notice the reference to PHP 4 being used, does that make a difference to your mod?
@Salixia - you should ask you Hoster to upgrade to PHP 5.2.12, it shouldn't break any scripts and is much better.