Error in all ubercart imagecache presets

Project:Ubercart Contributions
Component:Code
Category:
Priority:normal
Assigned:Unassigned
Status:active
Description
Project: 
Ubercart

The product image that was showing up on the final checkout for the cart was too large so I tried to go into imagecache to alter the preset for the "cart" preset. However when I did that I got this error message:

warning: rmdir(C:\Documents and Settings\Aaron\My Documents\websites\buddyhawkins-photo\sites\default\files\imagecache\cart) [function.rmdir]: Permission denied in C:\Documents and Settings\Aaron\My Documents\websites\buddyhawkins-photo\sites\all\modules\imagecache\imagecache.module on line 680.

Then when I returned to the cart to see what it looked like I found this error:

* warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in C:\Documents and Settings\Aaron\My Documents\websites\buddyhawkins-photo\sites\all\modules\imageapi\imageapi_gd.module on line 130.
* warning: imagecopyresampled(): supplied argument is not a valid Image resource in C:\Documents and Settings\Aaron\My Documents\websites\buddyhawkins-photo\sites\all\modules\imageapi\imageapi_gd.module on line 63.
* recoverable fatal error: Object of class stdClass could not be converted to string in C:\Documents and Settings\Aaron\My Documents\websites\buddyhawkins-photo\includes\bootstrap.inc on line 667.
* warning: preg_match() expects parameter 2 to be string, object given in C:\Documents and Settings\Aaron\My Documents\websites\buddyhawkins-photo\includes\bootstrap.inc on line 670.
* warning: preg_match() expects parameter 2 to be string, array given in C:\Documents and Settings\Aaron\My Documents\websites\buddyhawkins-photo\includes\bootstrap.inc on line 670.

Aaron-Hawkins's picture
Offline
Joined: 05/21/2008
Juice: 7
Problems with all ubercart imagecache presets

I just now created a completely new installation and then tried to edit the imagecache "product" preset and received a similar error:

warning: rmdir(C:\Documents and Settings\Aaron Hawkins\My Documents\websites\buddyhawkins-photo\sites\default\files\imagecache\product) [function.rmdir]: Permission denied in C:\Documents and Settings\Aaron Hawkins\My Documents\websites\buddyhawkins-photo\sites\all\modules\imagecache\imagecache.module on line 680.

also when I view the product after this change has been made the product image has disappeared. When I go back and erase the action that I added to the product preset the image on the product returns.

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6841
Re: Error in all ubercart imagecache presets
Assigned to:Aaron-Hawkins» Lyle

This sounds like either an imagecache or server-specific issue. If your files folder is public, imagecache should be able to create and delete directories as much as it wants. Ubercart just makes sure that certain presets exist; it doesn't do anything special to them.

Aaron-Hawkins's picture
Offline
Joined: 05/21/2008
Juice: 7
Server Specific
Assigned to:Lyle» Aaron-Hawkins

Perhaps, but I am not having this issue with the presets that are created by other modules. I will try it on another server to see if that changes things.

doomed@drupal.org's picture
Offline
Bug Finder
Joined: 04/05/2008
Juice: 334
Re: Server Specific
Assigned to:Aaron-Hawkins» doomed@drupal.org

Aaron, did you solve this?

I'm having the same problem (same error message) .

torgosPizza's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.
Joined: 08/14/2007
Juice: 4110
Re: Re: Server Specific
Assigned to:doomed@drupal.org» torgosPizza

Do you have imagecache 2.x installed? I thought I've read somewhere that this module has some issues still in need of being worked out. The errors printed by the earlier poster look like they're caused by the imageapi module, which is required by imagecache 2. I'd say try installing imagecache 1.6 (or whichever is latest) and see if that helps.

--
Help directly fund development: Donate via PayPal!

doomed@drupal.org's picture
Offline
Bug Finder
Joined: 04/05/2008
Juice: 334
Hey Torgos, Thanks for the
Assigned to:torgosPizza» doomed@drupal.org

Hey Torgos,

Thanks for the quick response.

I do have imagecache 5.x-2.1 along with imageapi 5.x-1.2 .

Apparently the error comes up but the settings are applying well. I will do further tests and post more information later.