10 replies [Last post]
drjonez's picture
Offline
Joined: 03/13/2009
Juice: 35
Was this information Helpful?

I upgraded imagefield, Filefield and Ubercart, and it broke the Image content field. Someone suggested going to the DEV module of ubercart, and now ALL of my images for my products are GONE (over 500 products).

I can see the files are still in the database in FILES table. HELP!!!

drjonez's picture
Offline
Joined: 03/13/2009
Juice: 35
drjonez wrote: I can see the
drjonez wrote:

I can see the files are still in the database in FILES table.

By this I mean the file is referenced in the FILES table.

fid uid filename filepath filemime filesize status timestamp
482 1 ND07.JPG sites/default/files/ND07_1.JPG image/jpeg 325057 1 1238433279

thill's picture
Offline
Joined: 01/25/2008
Juice: 815
Re: drjonez wrote: I can see the

What version of Ubercart? Beta 5? try and upgrade to the dev release or the BZR version.

drjonez's picture
Offline
Joined: 03/13/2009
Juice: 35
Re: Re: drjonez wrote: I can see the

I'm using the latest DEV release for D6.

mikejoconnor's picture
Offline
AdministratorBug FinderGetting busy with the Ubercode.
Joined: 08/07/2007
Juice: 536
Two questions, What did you

Two questions,

What did you upgrade from?

If you upgrade from D5, make sure you follow the upgrade instructions on the CCK project page.

Did you run update.php? If you upgrade from 5, don't do it until you follow the instructions mentioned above.

Ownage's picture
Offline
Joined: 12/19/2008
Juice: 69
Re: Two questions, What did you

I had a similar problem, I clicked on Store Administration - On that Page look at the bottom for Images and reset the Presets... Not sure if this will work for you but it did for me Smiling

drjonez's picture
Offline
Joined: 03/13/2009
Juice: 35
I didn't upgrade drupal. I'm

I didn't upgrade drupal.

I'm running Drupal 6.10

I upgraded Ubercart, Filefield, and imagefield to the latest version (as I mentioned in my last post)

yes i ran update.php Smiling

And I don't see anything that says "reset images" in the store administration page.

Thanks everyone for your help, I hope I can get this back up soon.

drjonez's picture
Offline
Joined: 03/13/2009
Juice: 35
Re: I didn't upgrade drupal. I'm

Also,FYI, I can upload NEW images to product, however, the old images aren't there :\

However, I can see them in the database, as I mentioned before. i'ma play with this a bit.

drjonez's picture
Offline
Joined: 03/13/2009
Juice: 35
FIXED!

Fixed,

After doing some back tracking, I found that new images were going on `content_field_image_cache`

I took all the data from `content_type_product` and put it into `content_field_image_cache`

Poof there we go.

Last question: Is it okay to drop `content_type_product` ?

Thank you

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: FIXED!

I would let CCK drop it for you when it decides it needs to. It creates and drops tables based on how many fields a content type has and whether they are used on other types as well. I'm not sure if it will try to recreate the table after you drop it, or if it will just crash and burn.

Even if it doesn't ever use it, empty tables in your database shouldn't hurt.

make-online-shop's picture
Offline
Joined: 01/01/2011
Juice: 217
I just had the same problem because i disabled 3 modules

Hi,

I just had the same problem because i disabled

CCK CONTENT

FILEFIELD

IMAGEFIELD.

I found this post on Google and checked STORE ADMINISTRATION.

Thank you for the reply, now I know that these 3 modules must be enabled to show my products photos.