Closed (fixed)
Project:
Ubercart
Version:
6.x-2.0-beta6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
17 Mar 2009 at 04:31 UTC
Updated:
19 Nov 2012 at 17:31 UTC
Jump to comment: Most recent file
Comments
Comment #1
ermanix-1 commentedSame, but I think it is compatibility problem with image.module. I love to use image.module cause his contrib image_gallery.module, but I need imagefield.module too, to running Dynamic Display Block.
Pls, I need solution too.
Comment #2
peximo commentedThe issue is caused by the modification of imagefield field type which in the latest beta has changed from "image" to "filefield".
Comment #3
peximo commentedSorry, in the previous patch I included an eclipse project file. To view the imagefield you'll have to re-install ubercart product module.
Comment #4
thill_ commentedI wanted to include a link to the past issue where this was changed #348837: Core image support isn't setting up Imagefields properly
Comment #5
petefelix commentedIt is fixed with ubercart-404352-3.patch. Thanks.
Comment #6
Island Usurper commentedWhen you said "latest beta", at first I thought you meant Ubercart's instead of Imagefield.
I looked at the export of field_image_cache after updating to the latest imagefield code, and there were a few more differences that I decided to include. You also don't have to reinstall the product module. Just remove that field from the content types and let Ubercart add it again from the link on the Store Administration page.
Comment #7
mrizzle commentedAwesome - the combination of those patches fixed my issues...thanks!
Comment #8
jimbo21 commentedThankyou! This is exactly what I needed :)
Comment #9
torgospizzaLyle,
What do we need to do if we are upgrading? We can't "Remove" the field because all of our content is attached to it! Removing the field will destroy all of the Images that have been uploaded for all of our products (like 300 of them). Any idea of how to solve this?
Comment #10
torgospizzaAlso, now when I try to Preview a node, I get this:
Fatal error: Cannot use string offset as an array in /var/www/vhosts/rifftrax.com/subdomains/d6/httpdocs/sites/all/modules/ubercart/uc_product/uc_product.module on line 1426
Seems like the images aren't being saved either but that might be related.
Comment #11
tr commentedThe preview bug was fixed here: http://drupal.org/node/393490
Comment #12
Island Usurper commentedYou can probably go to the field settings and save them with the correct field and formatter types. Or you can try running the Imagefield updates again to fix the ones on products. Since there are some updates after the one you want, it might be better to run the queries directly on the database. imagefield_update_6003() looks to be the one:
Comment #13
missym commentedIn case anyone has trouble, I only used the first patch and I had to clean up my tables in order to get rid of the error message.
Comment #14
ogiebobo commentedHow do I install this patch?
Thanks,
Alex
Comment #15
torgospizzaYeah and I think it's really important to follow the CCK upgrade instructions - 1) Install / update Core, 2) Install / update CCK, 3) Install and update all other modules. We're going to give that a shot (starting over from scratch) and see if that helps.
Comment #16
nihonjon commentedI'm rather new to Drupal and Ubercart and have no idea how to install the patches. I've installed in the order listed in all documentation and the way #15 describes, but I run into this every time.
Comment #17
torgospizzaYou need to patch Ubercart before you install it. To learn how to install patches do a search on Drupal.org for "Apply patches" and follow the documentation. It's not really that hard.
Or if you wish, you can a) wait until the next stable release, which will include this patch, or b) download the latest Dev version of Ubercart, which also contains the patched file.
Comment #18
jimbox commenteddespite duplicity i'll put instructions here so all necessary info/instructions can be traced in one thread.
* assumes you have shell access (ssh) to your hosting provider- if not you'll need to re-install module via traditional means.
- use above link to download patch file.
- BACKUP your existing ubercart module directory: "cp -a ubercart ubercart.bak"
- copy the patch file to root of the ubercart module's directory (likey WEBROOT/public_html/site/all/modules/ubercart/)
- cd to the ubercart directory
- run "patch -b -p0 < product_image_field.patch" (NB- you can add the "--dry-run" if you want to see what will happen before actually applying it)
- the "-b" option makes it create uc_product.module.orig" before overwriting the actual file
- go back to Store Admin and use the link to have the image file field error auto fixed.
- worked for me!
Comment #19
tr commentedI strongly suggest you do *not* "cp -a ubercart ubercart.bak". Drupal scans the directories under sites/all/modules when it loads pages, and will find TWO copies of every ubercart module if you do this, one in sites/all/modules/ubercart.bak and one in sites/all/modules/ubercart. That will screw you up royally. If you're going to backup files, do something like "tar cvf ubercart-backup.tar ubercart" instead.
Comment #20
KingDavid commentedThanks!! Perfect!
Comment #21
erik seifert commentedOnly for notice
The Link on "Automatically Image Support" ( Store Administration ) is wrong for new cck installation
before :
admin/content/types/product-kit/add_field
now:
admin/content/node-type/product-kit/fields
Comment #22
Island Usurper commentedThanks for the heads up. An issue and patch has been made at #420820: Product kit status message contains bad link.
Comment #23
dpardo commentedIf a wait for new version of ubercart, the problem will be fixed when i update?
Comment #24
Garrett Albright commentedI'm running into this problem. I've installed the latest dev release, but can't make any progress from there. What exactly is "the link" that is mentioned in #6 and #18? I'm gonna need you guys to be a tad more specific - there is no obvious "make product images work" link that I can see.
EDIT: Scratch that. I just uninstalled and reinstalled all of Ubercart's modules and now I'm seeing an Image field.
Comment #25
Island Usurper commented@dpardo, yes.
@Garrett Albright, it's the link on the Store Administration page in the store status table. You shouldn't see it now, since you've got images set up.
Comment #26
jimbox commentedyup- i can now vouch for that.
i quickly realized problems after having 2 directories- one for ubercart and another for ubercart.bak. the errors became obvious with references to ubercart.bak. it was quickly resolved by doing as you suggested.
Comment #27
Passionate_Lass commentedI am getting the same error on my local windows dev server but I have no clue how to use patches. Anyone know if/when this fix will be included straight into the module code?
Modules installed:
Ubercart 6.x-2.0-beta5
FileField 6.x-3.0-rc1
FileField Image 6.x-1.0
FileField ImageCache 6.x-1.0
ImageCache 6.x-2.0-beta8
ImageAPI 6.x-1.5
Also, updating to the dev release (6.x-2.x-dev) does not fix the problem despite full disabling of all ubercart modules, then uninstalling, deleting orginal ubercart folder. I extracted the new dev release, and activated what I needed and I still get the notice/error below.
--
This content type has inactive fields. Inactive fields are not included in lists of available fields until their modules are enabled.
Image (field_image_cache) is an inactive image field that uses a imagefield_widget widget.
--
Comment #28
Garrett Albright commentedLass, check out this page for instructions on applying patches.
If all else fails, you can apply patches manually, especially when they're fairly small like this one. Open the .diff file in your text editor of choice. The file format for these files is fairly simple for humans to read.
Comment #29
Passionate_Lass commentedHi.
The issue is that when viewing the catalog, product listing, or a product itself sometimes images don't show up and sometimes they do. As admin I -randomly- get "warning: mkdir() [function.mkdir]: File exists in /home/ottawaps/public_html/shop/sites/default/modules/imagecache/imagecache.module on line 511".
It seemed fine after I did some mussing with the file system but now the issues are back and we cannot permit this site to go live until these sissues are resolved.
History:
I built a site for my client awhile back on drupal 5 and the the client decided he wanted it moved to drupal 6 however he had already entered all the products into the catalog so I had to do an upgrade.
Said upgrade required me to disable imagefield on drupal 5 prior to migrating / updating everything.
-------
What combo of patches fix the issue, I will -attempt- to do it all manually.
Comment #30
Passionate_Lass commentedUpdated to newest version, ran the update.php as well.
Still randomly getting:
* warning: mkdir() [function.mkdir]: File exists in /home/ottawaps/public_html/shop/sites/default/modules/imagecache/imagecache.module on line 511.
* warning: mkdir() [function.mkdir]: File exists in /home/ottawaps/public_html/shop/sites/default/modules/imagecache/imagecache.module on line 511.
Checked
http://drupal.org/node/346042
And mussed around with file settings, modified htaccess and it -seems- there are no errors now. Will watch it closely, and will inform if it crops up again.
Comment #32
Ole Martin commentedI had this problem on one site (but not on another site with same setup) so I run Imagefield updates ones more. And everything was fixed.
Could you please explain a litle bit more how to do this?
Tanks
Comment #33
freatida commentedThis seems like an old issue that is fixed, but I'm still having problems. I updated Ubercart, Drupal core, filefield and imagefield (in that order).
My versions now are:
Drupal 6.16
Ubercart 6x2.2
Filefield 6x3.3
Imagefield 6x3.3
(CCK is 6.25, haven't done an update)
I get three errors:
1. When enabling modules I get the error
* user warning: Duplicate entry 'field_image_cache' for key 1 query: INSERT INTO content_node_field (field_name, type, global_settings, required, multiple, db_storage, module, db_columns, active, locked) etc
Reported here http://drupal.org/node/419602
2. When doing an update.php I get errors like:
warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/.../sites/all/modules/cck/includes/content.crud.inc on line 333.
3. When viewing my site, the content of some cck fields is missing - not just image fields incidentally. And when I look at the content type for my products I see the message:
This content type has inactive fields. Inactive fields are not included in lists of available fields until their modules are enabled.
From reading all the issues it seems like this all should have been fixed for the versions I'm using. Sounds like maybe uninstalling Ubercart and re-installing could fix this but I don't want to loose my products.
Any suggestions?
Comment #34
freatida commentedUpdating CCK worked for me. Had to remove all CCK modules, upload latest CCK core, enable core, update.php, upload other modules, enable them, then update.php again. A few things needed tweaking but it basically works again.
Comment #35
jfox77 commentedI'm using the same setups as freatida:
Drupal: 6.16
CCK: 6.x-2.5
Ubercart: 6.x-2.2
Filefield: 6.x-3.2
Imagefield: 6.x-3.2
and getting this error when I go to Manage Fields on my Product content type.
"This content type has inactive fields. Inactive fields are not included in lists of available fields until their modules are enabled."
"Image (field_image_cache) is an inactive File field that uses a Image widget."
Please help! I need this to work so I can upload product images.
Thanks! =)
Comment #36
Buddharide commentedSame problem. The patches, and the updates but they did not work:
Drupal: 6.16
CCK: 6.x-2.7
Ubercart: 6.x-2.2
Filefield: 6.x-3.7
Imagefield: 6.x-3.7
When I find a solution, I'll post it here.
Comment #37
Juhani commentedThis can happen often, after some CCK, Ubercart, Filefield or Imagefield module updates. A solution that has been working usually, is to disable CCK, Filefield and Imagefield modules (after running update.php) and then enable them again. If this works, patches are not needed.
Comment #38
MakeOnlineShop commentedThank you, it's magic !
After going to admin/store
and click the Auto configuration option then Image field appeared in Product pages !
Thanks a lot.
Comment #39
sergivives commented#37 Worked brilliantly after many hours trying to fix this I disabled the FileField, Image field and re-enabled it and it just worked!
Thanks Juhani!
Comment #40
simonswiss commentedI confirm #37 works wonders - thank you!
Comment #41
millenniumtreeTried #37 and it actually didn't work for me.
Here's what worked:
update.php - click Continue
Expand the 'Select versions' fieldset
Find 'imagefield module' and select '6003' from the dropdown
Click 'Update' at the bottom of the page.
The 6003 update is what originally was supposed to upgrade the field from the 'image' widget to 'filefield/imagefield'.