11 replies [Last post]
wahidtanner's picture
Offline
Joined: 05/14/2009
Juice: 20
Was this information Helpful?

Hello, I am having problems trying to change a product's image and hope somebody can help. I was able to upload images for some of my products just fine but was not happy with the way they looked and am now trying to change them. It appears though that my changes are being ignored. When I try to remove an image, it seems to work ok. I then upload the new image and it also seems to work. I get the new image thumbnail showing in the edit page for the product. When I click save, everything still seems ok. But when I visit the category listing, the old image is still there. Clicking on the product shows the old image and when I go to the edit page for the product, the old image is still there.

So I tried to just remove the image and that is also not working. While on the edit page for a product, I click on the remove button for the image and it goes away. I then click on save and it seems to save. I even refreshed the page in my browser at this point and the image is still gone. But clicking on the view tab shows the original image and then going back to the edit page shows the image still existing also.

Is there something else I need to do to change or remove a product's image? I am using Drupal 6.11, Ubercart 2.0 rc3, and ImageCache 2.0 beta9. All of this is running on a Linux host that I have full control over.

wahidtanner's picture
Offline
Joined: 05/14/2009
Juice: 20
Re: Unable to change or remove a product image

Does anybody have an idea or suggestion? Do I need to edit the database to change the images or remove them?

luckydad's picture
Offline
Joined: 05/15/2009
Juice: 5
experiencing similar problem

I apologize in advance if I make noob mistakes in describing my situation.
Thought I would try Acquia implementation of drupal but have not subscribed as of yet, so when all of the recent upgrades (some relative to images) showed up, I downloaded latest versions of modules and replaced in the /modules/acquia folder instead of sites/all/modules. I am tinkering with local copy of drupal site on WinXP SP3 using:
Drupal 6.12
Ubercart core 6.x-2.0-rc3
Just upgraded to:
filefield 6.x-3.0
imageapi 6.x-1.6
imagecache 6.x-2.0-beta9

Status report says everything ok other than:
-Performance Logging APC not enabled
-Performance logging APC memory size
-Upload progress Not enabled

When I create a new product and add an image, works fine.
When I try to remove an image from a product, works fine.
BUT when I try to add a new image to an existing product after removing original image - I browse, click upload, then nothing really. I click save or save and continue on Edit product page but no new image.

On the Store Administration page it says:

"Product image support has been automatically configured by Ubercart."

Something I don't expect - when I upload image to add to product, I am presented with only 1 upload field. After I remove an uploaded image, and then I go to upload a new image, it shows two upload forms, one below the other.

Any ideas?

Thanks in advance.

Michael

wahidtanner's picture
Offline
Joined: 05/14/2009
Juice: 20
Re: experiencing similar problem

Michael, your setup looks similar to mine except for the host OS. I can also create a product and add an image. But removing does not work for me. I also get two upload forms but I had assumed this was by design. Maybe somebody can confirm if there should be two upload forms and if we are using Ubercart correctly for managing product images?

The message about product image support being automatically configured seems correct. I also get that and have seen it listed as correct in other sources.

Regards,
Wahid

wahidtanner's picture
Offline
Joined: 05/14/2009
Juice: 20
Re: Re: experiencing similar problem

Does anybody have a test site that can be used to try this scenario? I would at least like to know if this is a problem with my server configuration or a bug.

I have products that are newly created with no images but once I add an image, then I cannot change or remove the images.

wahidtanner's picture
Offline
Joined: 05/14/2009
Juice: 20
Re: Re: Re: experiencing similar problem

I found a workaround! There may be a bug here but it seems that the first user has the ability to do what I need. I do not normally login as this user and my normal account should have permission to do this. Checking the permissions shows that I should be able to make this type of change. But still, it is only the first user who can make changes to the images once they have been uploaded that will actually take effect.

Danny_Joris's picture
Offline
Joined: 05/09/2009
Juice: 199
Re: Re: Re: Re: experiencing similar problem

I've noticed that i cannot upload images when i have Devel module turned on. I have no sollution for it other than turning it off.

But without Devel on i have a similar problem. Some pictures are unable to remove. I save my pictures with the product name, say: productexample.jpg, productexample_1.jpg, productexample_2.jpg, etc... So if i remove the first one and replace it with another, it shows the OLD productexample.jpg instead the newly uploaded picture. In my sites/default/files/ map i find that productexample.jpg (so the first one of productexample) is replaced by the new one. Only the imagecache picture is not updated.

Flushing caches or running cron does not help ...

Hope there is a sollution for this.
Any help is welcome.
Cheers,
Danny

snicers's picture
Offline
Uber DonorInternationalizationizer
Joined: 09/20/2007
Juice: 192
Re: Re: Re: Re: Re: experiencing similar problem

seems like that you are having problem with imagefield / fielfild / imagecache. Problems with this 3 mostly are related to server configuration like directory rights and even the php limit is important when deleting files. Perhaps you want to check their issue queues?

Danny_Joris's picture
Offline
Joined: 05/09/2009
Juice: 199
Re: Re: Re: Re: Re: Re: experiencing similar problem

my php memory_limit is set to 96M so i think that should be enough.

In the issue queues the only relevant issue was this one and there's not a real answer yet, only a snippet.
http://drupal.org/node/362356

As for the directory rights: the imagecache-files are able to be created, so they must be able to deleted or overwritten or am i wrong? As for the imagecache folder the read/write rights are set to xxx and i can't change that.

Hope someone can still help.

I find this a really big issue, and i'm surprised that i encounter it and not more people besides me.

snicers's picture
Offline
Uber DonorInternationalizationizer
Joined: 09/20/2007
Juice: 192
Re: Re: Re: Re: Re: Re: Re: experiencing similar problem

when they are set to xxx and you can't change it to 755 or something else you are probably not the owner of the directory.

Danny_Joris's picture
Offline
Joined: 05/09/2009
Juice: 199
Re: Re: Re: Re: Re: Re: Re: Re: experiencing similar problem

Hmm, the owner... I manage it with fileZilla, so i feel like i should be able to change it all. But indeed, i had troubles before with (FTP-) permissions with uploaded files trough the browser. I have no idea how to change that. Maybe trough the hosting settings?

Does everybody have that problem or is it just me?

iharley's picture
Offline
Joined: 10/23/2008
Juice: 72
Re: Unable to change or remove a product image

I have a similar problem. Prior to the latest recommended release I had uploaded pictures for my products, and was able to change them without a problem. With this most recent update I am no longer able to see what file is currently being used for a product while editing, and I'm unable to upload new files.