I am upgrading an ecommerce site from v5.3 to v6.4 and the imagefield/CCK photos no longer display on product pages. Blog and forum photos display fine. Content types have the right imagecache setting. The photo is there in the node when I click on Edit, it just doesn't display under View. When I check the browser source, there's no HTML link for the photo. Any thoughts?

CommentFileSizeAuthor
#6 1015420.patch21.79 KBgordon

Comments

crozilla’s picture

Also, I'm getting this error on the Edit page of each product. If that helps

warning: Invalid argument supplied for foreach() in /Applications/MAMP/htdocs/SITE-NAME-HERE/sites/all/modules/ecommerce/ec_product/ec_product.admin.inc on line 130.

gordon’s picture

I think that the problem is that because of the change to how the product node type is created, since it is just the same as a story/page node type and you can delete it if needed I think that the CCK like was lost.

I suggest that you try re adding the cck field back to the node type. This may fix it.

#1, this is a problem with a node not having a ptype associated with it. Is this a node type other than product node type. Also use the devel module and take a look at the node and make sure that the ptype is set.

Also can you contact me off list on gordon@heydon.com.au as I would like to help you more with your upgrade so that can improve the upgrade process for everyone.

crozilla’s picture

Thanks for helping! Here's how I did this whole install: First, I started by recreating my D5 site in a MAMP desktop environment and got the site up and running on my local machine. Then I disabled all non-core modules and replaced all the D5 files/modules with corresponding D6 files/modules (forgetting the Imagefield module as I thought it had been merged into FileField). Then I did an update.php and prayed. It seemed to work. Then I reactivated a few other key modules (EXCEPT ecommerce ones) and ran update.php again. Success! Finally, I tried to activate Cart (as I remembered that last time I tried to upgrade over the Summer, there was a proper order to ecommerce module activations), unfortunately, I couldn't because there were some new modules that I was missing (ctools, etc). D'oh! After uploading those, I could and did activate Cart, ran update.php and it seemed to work. That's when I noticed that the images weren't showing up. So after a lot of head scratching and drupal.org searching, I realized my Imagefield error. Once I installed that, the CCK Imagefield field reappeared under each Content Type and photos miraculously appeared on every node type (except eCommerce).

> I suggest that you try re adding the cck field back to the node type.

Do you mean delete the existing CCK field (I called it 'field_photo') in the Content Type and then re-add it? Wouldn't it cause problems to call another field the same field name, or wouldn't the DB care? I would hate to flush all 800 product photos...

> Is this a node type other than product node type.

No, it is a tangible product.

> Also use the devel module and take a look at the node and make sure that the ptype is set.

The ptype SEEMS to be set in these product nodes: ptype (String, 8 characters ) tangible

gordon’s picture

I am not 100% sure that I can help you here in the issue queue as it will be too complex, and being able to replicate your issues will be next to impossible.

If you can contact me at gordon@heydon.com.au I would like to discuss this off list.

I would not be surprised that there is something wrong with the upgrade, and this has been due to a serious lack of good data to test the upgrade process.

gordon’s picture

Title: Product images don't display after upgrade from ecommerce 3x to 4x » e-Commerce 3.x to 4.x upgrade path broken
Version: 6.x-4.1 » 6.x-4.x-dev
Priority: Normal » Critical

I have done some investigation and found that the upgrade path is extremely broken ATM.

I am going to continue working on this over the next couple of days and get it all going again.

gordon’s picture

Component: product » ec_anon
Assigned: Unassigned » gordon
Status: Active » Needs review
Issue tags: +6x upgrade
StatusFileSize
new21.79 KB

I have done a lot of testing and it is starting to look like it is working now.

Gordon.

gordon’s picture

Status: Needs review » Fixed

I think this is all working now, if you find any more upgrade issues please raise new issues, but I think the upgrade process is pretty much working.

Status: Fixed » Closed (fixed)
Issue tags: -6x upgrade

Automatically closed -- issue fixed for 2 weeks with no activity.