If this is your first visit, check our documentation. To post, register or login.

Image Manager addon

Started by boudewijn on 15 Oct 2009, 8:13 AM · Views: 93,213

Results 121 to 140 of 284
6 Nov 2010, 10:45 AM
#121
boudewijn avatar

boudewijn

Zen Follower

Join Date:
Jun 2009
Posts:
207
Plugin Contributions:
0

Post #121 by boudewijn

George.Boboc:

Hello,

Can anyone please help with this error in admin/image manager:

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/home/MYSITE/public_html/images/3ds/mcsc.gif/) is not within the allowed path(s): (/home/MYSITE/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/MYSITE/public_html/admin/includes/functions/extra_functions/function_image_manager.php on line 635

The error is over and over again for every single image i have in products catalog.

I already tried setting permissions to 777 almost to any folder or file... no result.
I tried reinstall the image manager i had the same result.

I notice the error after rename admin folder to another name. I restore previous name and make all the neccesary changes back to configure.php.

I have no idea what to do next. I'm using zen cart v1.3.9f and the image manager version is 1.4

If anybody has some ideas, please share it...

Thanks!

Did you make changes to your htaccess file, your php.ini, or did your provider change any settings there?

Boudewijn Sjouke
http://www.chinesedingen.nl

7 Nov 2010, 8:52 AM
#122
george_boboc avatar

george_boboc

New Zenner

Join Date:
Oct 2010
Location:
Bucharest
Posts:
7
Plugin Contributions:
0

Post #122 by george_boboc

boudewijn:

Hi,

Have you checked the paths in your <admin>/includes/configure.php? They are affected by renaming the admin folder.

Boudewijn

Hi,

Yes, I did. I followed the instruction from this tutorial when changing the admin folder name:
https://www.zen-cart.com/tutorials/index.php?article=33
After changing the admin folder everything works well. After some time i noticed the issue with the IM mentioned above.
I had a backup file of the configure.php from MYADMIN/includes/ and i restore the admin name to default. Still no change, i have the same error with my IM.

I'm not sure if the error comes from renaming the admin. I just recall being the last modification I had made on my website before the IM error ...

7 Nov 2010, 9:08 AM
#123
george_boboc avatar

george_boboc

New Zenner

Join Date:
Oct 2010
Location:
Bucharest
Posts:
7
Plugin Contributions:
0

Post #123 by george_boboc

boudewijn:

Did you make changes to your htaccess file, your php.ini, or did your provider change any settings there?

No, I did not made any changes to htaccess. As per php.ini i don't even know where is it or where to find it.

I do however have a reseller account on my provider server due to multiple domains host there. I had some changes lately like:

  • ask my provider to disable safe mode for another different domain where I have a drupal instalation and some modules are not running with this feature. But he confirm me that safe mode was disable only for that different account.
  • i changed the password from WHM page for this domain we are talking about at the same time as i change the admin folder name. As told, i reverse the name of the admin folder back to "admin" and restore the changes in configure.php using the backup file made previous to this change. I did not change back the password from WHM...I really don't think i recall the old one..
    Do you think this might be the problem?

Any ideas?
Thanks

7 Nov 2010, 9:22 AM
#124
george_boboc avatar

george_boboc

New Zenner

Join Date:
Oct 2010
Location:
Bucharest
Posts:
7
Plugin Contributions:
0

Post #124 by george_boboc

boudewijn:

Did you make changes to your htaccess file, your php.ini, or did your provider change any settings there?

I just found another error:
Success: The database has been saved.
Warning CAUTION: Your /admin/ foldername should be renamed to something less common, to prevent unauthorized access.
Error ERROR: This backup script seldom works when safe_mode is enabled or open_basedir restrictions are in effect.
If you get no errors doing a backup, check to see whether the file is less than 200kb. If so, then the backup is likely unreliable.

This is from the module Database backup that i use. I did not have this error before... Do you thing might be related? Is there a relation between safe_mode and open_basedir restriction?

Thanks

7 Nov 2010, 12:57 PM
#125
boudewijn avatar

boudewijn

Zen Follower

Join Date:
Jun 2009
Posts:
207
Plugin Contributions:
0

Post #125 by boudewijn

Both safe mode and basedir restrictions put limitations on what PHP scripts can do. I don't oversee what impact safe mode set to on has on Zen-Cart, but both IM and the backup addon cannot function normally with the basedir restriction set to on. This prevents a script from accessing parts of the filesystem, and both addons need access to create files.
I begin to suspect that your ISP has changed these settings, causing the problems you have now.

If you run server info from the admin interface of Zen-Cart, and lookup open_basedir, you can see what setting is in effect right now. The same applies to safe_mode.

Boudewijn Sjouke
http://www.chinesedingen.nl

7 Nov 2010, 5:01 PM
#126
george_boboc avatar

george_boboc

New Zenner

Join Date:
Oct 2010
Location:
Bucharest
Posts:
7
Plugin Contributions:
0

Post #126 by george_boboc

boudewijn:

Did you make changes to your htaccess file, your php.ini, or did your provider change any settings there?

boudewijn:

Both safe mode and basedir restrictions put limitations on what PHP scripts can do. I don't oversee what impact safe mode set to on has on Zen-Cart, but both IM and the backup addon cannot function normally with the basedir restriction set to on. This prevents a script from accessing parts of the filesystem, and both addons need access to create files.
I begin to suspect that your ISP has changed these settings, causing the problems you have now.

If you run server info from the admin interface of Zen-Cart, and lookup open_basedir, you can see what setting is in effect right now. The same applies to safe_mode.

I just did and the results are:
open_basedir /home/MYUSER/:/usr/lib/php:/usr/local/lib/php:/tmp no value
PHP Safe Mode: Off

No value for open_basedir means set to one?

I will talk to my ISP to make the changes and post than a reply with the effects. Thanks!

8 Nov 2010, 9:33 AM
#127
george_boboc avatar

george_boboc

New Zenner

Join Date:
Oct 2010
Location:
Bucharest
Posts:
7
Plugin Contributions:
0

Post #127 by george_boboc

George.Boboc:

I just did and the results are:
open_basedir /home/MYUSER/:/usr/lib/php:/usr/local/lib/php:/tmp no value
PHP Safe Mode: Off

No value for open_basedir means set to one?

I will talk to my ISP to make the changes and post than a reply with the effects. Thanks!

Hi,

Just solved the problem.
It seems that my ISP upgraded the php and the new version comes without the safe mode function but with open_basedir restriction set on. After setting to off everything is finally normal.

Thank you for your support!
George

10 Nov 2010, 7:57 AM
#128
boudewijn avatar

boudewijn

Zen Follower

Join Date:
Jun 2009
Posts:
207
Plugin Contributions:
0

Post #128 by boudewijn

George.Boboc:

Hi,

Just solved the problem.
It seems that my ISP upgraded the php and the new version comes without the safe mode function but with open_basedir restriction set on. After setting to off everything is finally normal.

Thank you for your support!
George

Hi George,

I'm glad that all is well now. Thanks for posting the solution here.

Boudewijn

Boudewijn Sjouke
http://www.chinesedingen.nl

4 Dec 2010, 11:56 PM
#129
faristababa avatar

faristababa

New Zenner

Join Date:
Dec 2006
Posts:
45
Plugin Contributions:
0

Post #129 by faristababa

Can anyone please help with this error in image manager?

I get this errors like 50 times before the images are showing up. I have to scroll down if I like to change something.
**

------------------------** **
Warning: Division by zero in / naspex.info/spiritwear/designer.t-shirt.tshirt.tee/admin.naspex.13/includes/functions/extra_functions/function_image_manager.php on line 283** **

Warning: Division by zero in /naspex.info/spiritwear/designer.t-shirt.tshirt.tee/admin.naspex.13/includes/functions/extra_functions/function_image_manager.php on line 232** **

Warning: Division by zero in /naspex.info/spiritwear/designer.t-shirt.tshirt.tee/admin.naspex.13/includes/functions/extra_functions/function_image_manager.php on line 327** **

Folder rights are sufficient** **

------------------------** **
I Install Image Manager on zencart 1.3.9h Upload fills and SQL.** **

If anybody has an idea how I can fix it.
** **

Thanks!**

Listen to the music of the Earth, Dance to the rhythm of Life. -- www.naspex.info -- www.bamboomoon.at --

5 Dec 2010, 2:57 AM
#130
boudewijn avatar

boudewijn

Zen Follower

Join Date:
Jun 2009
Posts:
207
Plugin Contributions:
0

Post #130 by boudewijn

faristababa:

Can anyone please help with this error in image manager?

I get this errors like 50 times before the images are showing up. I have to scroll down if I like to change something.
**

------------------------** **
Warning: Division by zero in / naspex.info/spiritwear/designer.t-shirt.tshirt.tee/admin.naspex.13/includes/functions/extra_functions/function_image_manager.php on line 283** **

Warning: Division by zero in /naspex.info/spiritwear/designer.t-shirt.tshirt.tee/admin.naspex.13/includes/functions/extra_functions/function_image_manager.php on line 232** **

Warning: Division by zero in /naspex.info/spiritwear/designer.t-shirt.tshirt.tee/admin.naspex.13/includes/functions/extra_functions/function_image_manager.php on line 327** **

Folder rights are sufficient** **

------------------------** **
I Install Image Manager on zencart 1.3.9h Upload fills and SQL.** **

If anybody has an idea how I can fix it.
** **

Thanks!**

Hi,

In your configuration settings, look for Images -> Small Image Height, and Images -> Product Info - Image Height. I suspect both are either not set or set to 0. They should contain a numeric value greater than 0.

In the next version of IM I will add a check for correct configuration values of the image sizes.

Boudewijn

Boudewijn Sjouke
http://www.chinesedingen.nl

5 Dec 2010, 6:54 AM
#131
faristababa avatar

faristababa

New Zenner

Join Date:
Dec 2006
Posts:
45
Plugin Contributions:
0

Post #131 by faristababa

Thanks for the fast replay, you made my day.
Everything works perfect.

Thanks have a good day too :smile::thumbsup:

Listen to the music of the Earth, Dance to the rhythm of Life. -- www.naspex.info -- www.bamboomoon.at --

11 Jan 2011, 10:51 AM
#132
paulcreedy avatar

paulcreedy

New Zenner

Join Date:
Sep 2010
Posts:
43
Plugin Contributions:
0

Post #132 by paulcreedy

This is going to sound like a stupid questions but....

I'm looking for an easier way for my client to upload, resize and manage images.

I'd also like the ability for the client to see the main product image on both the catalogue and attribute controller page.

As I've only just stumbled upon this add on, and as there is no readme or instructions on the download - what does it do?

11 Jan 2011, 12:43 PM
#133
boudewijn avatar

boudewijn

Zen Follower

Join Date:
Jun 2009
Posts:
207
Plugin Contributions:
0

Post #133 by boudewijn

Hi,

There are no stupid questions, only stupid answers :smile:

All info about Image manager are in image_manager.txt, which is part of the package.
If you have any questions after reading the info, please don't hesitate to ask.....

Boudewijn

Boudewijn Sjouke
http://www.chinesedingen.nl

12 Jan 2011, 12:07 PM
#134
paulcreedy avatar

paulcreedy

New Zenner

Join Date:
Sep 2010
Posts:
43
Plugin Contributions:
0

Post #134 by paulcreedy

Well, there's me looking for the readme.txt file that I'm accustomed to seeing and missing the image_manager.txt one. :laugh:

12 Jan 2011, 12:19 PM
#135
paulcreedy avatar

paulcreedy

New Zenner

Join Date:
Sep 2010
Posts:
43
Plugin Contributions:
0

Post #135 by paulcreedy

A few questions perhaps someone knows the answer to:

The hurdle I have is that a client would generally upload a massive image file supplied from their product suppliers. This image file then needs to be resized for large, medium, and small. I'm looking for a way of simplifying that process for the client.

I assume it doesn't resize the image when a user adds it via the add product page. Is that correct?

What naming convention on the images? Original image in different folder, or adding _MED etc etc

When resizing the original large image, does it create a new image with a different name or resize the original?

After uploading an image in add product, then going to image manager is there a way to automatically resize either all or all new images? So that the client doesn't have to go searching for the dozen or so new products/images that he just added so that he can resize them?

23 Jan 2011, 9:51 PM
#136
buildingblocks avatar

buildingblocks

Totally Zenned

Join Date:
Jun 2008
Posts:
629
Plugin Contributions:
0

Post #136 by buildingblocks

I'm testing this mod on a 139h zen cart. After resizing the images I noticed the image created as the large image was loading really slow. I then noticed the large image that was created was very large in kilobytes. For instance the main image that was uploaded is 44 KB and the large image that image manager creates is 238 Kb. Are there any settings that will restrain the weight of that large image?

24 Jan 2011, 6:29 AM
#137
boudewijn avatar

boudewijn

Zen Follower

Join Date:
Jun 2009
Posts:
207
Plugin Contributions:
0

Post #137 by boudewijn

paulcreedy:

A few questions perhaps someone knows the answer to:

The hurdle I have is that a client would generally upload a massive image file supplied from their product suppliers. This image file then needs to be resized for large, medium, and small. I'm looking for a way of simplifying that process for the client.

  1. I assume it doesn't resize the image when a user adds it via the add product page. Is that correct?

  2. What naming convention on the images? Original image in different folder, or adding _MED etc etc

  3. When resizing the original large image, does it create a new image with a different name or resize the original?

  4. After uploading an image in add product, then going to image manager is there a way to automatically resize either all or all new images? So that the client doesn't have to go searching for the dozen or so new products/images that he just added so that he can resize them?

Hi,

  1. That is correct. IM is a true add-on which does not alter any existing code. Therefore, images that are initially uploaded from the product page, must be copied/resized later from the IM-page.

  2. IM follows the naming and structure conventions, and settings from Zen-Cart. The small images are in images/ or any structure from there (images/bottles/, images/glasses/ etc), the medium size images in images/medium/ with the same subordinate structure (images/medium/bottles etc). The same applies for large images.
    _MED and _LRG are added to the filename for medium and large images, or whatever suffix is set in the configuration settings for Zen-Cart (Configuration->Images)

  3. It saves a copy of the original file, with the extension .bak. After that the file is resized, keeping the existing name.

  4. There is no 'fix all' option. mainly due to the fact that various actions are possible, dependent on the situation. I am thinking though of one specific situation, where one large original exists and no medium and large image yet. Fixing this could become a 'one click' action.
    It is not hard to find the new images. Choose 'Show files: with errors' and only those images will appear.

Boudewijn

Boudewijn Sjouke
http://www.chinesedingen.nl

24 Jan 2011, 6:31 AM
#138
boudewijn avatar

boudewijn

Zen Follower

Join Date:
Jun 2009
Posts:
207
Plugin Contributions:
0

Post #138 by boudewijn

buildingblocks:

I'm testing this mod on a 139h zen cart. After resizing the images I noticed the image created as the large image was loading really slow. I then noticed the large image that was created was very large in kilobytes. For instance the main image that was uploaded is 44 KB and the large image that image manager creates is 238 Kb. Are there any settings that will restrain the weight of that large image?

One would expect that the small image size is smaller than the large image size. In this case I suspect that IM does not enlarge the picture in dimensions, but creates a larger file as a watermark is added. Is that correct?

Boudewijn Sjouke
http://www.chinesedingen.nl

24 Jan 2011, 10:11 AM
#139
paulcreedy avatar

paulcreedy

New Zenner

Join Date:
Sep 2010
Posts:
43
Plugin Contributions:
0

Post #139 by paulcreedy

So to follow a client senario - is this how it works?

A client uploads an image via their add product
They go into IM and find the image
Then create the three images from the original.

Is that correct?

What directory should they upload the original to? The main one or the large one?
Once the images have been created the original is now not required, can it be deleted?

24 Jan 2011, 2:17 PM
#140
buildingblocks avatar

buildingblocks

Totally Zenned

Join Date:
Jun 2008
Posts:
629
Plugin Contributions:
0

Post #140 by buildingblocks

boudewijn:

One would expect that the small image size is smaller than the large image size. In this case I suspect that IM does not enlarge the picture in dimensions, but creates a larger file as a watermark is added. Is that correct?

original image
Size: 44 Kb
Dimensions: 485 x 640

In configuration > Image Manager I set the max large image width and height to 600

no watermark file present

Image manager generates the large image at
Size: 236 Kb
Dimensions: 455 x 600

:shocking: LOL

Does anyone else notice this happening in their installation?