I installed imagefield 6.x-3.0-beta1 and even though it is installed on the modules page, it is not available in the content type section in my list of possible types.
There is something wrong with the install of this new version because it is not being recognized as being installed.
I am doing this as user 1, so its not a permissions thing. I have checked the status report as well and in the logs I found this:
Updating widget type imagefield_widget with module imagefield. (which seemed to finish successfully).
What happened to the installer with this update?
Comments
Comment #1
pelicani commentedI think I had this problem today as well.
I ran the update.php script, and the install was completed.
Maybe this will help you.
Comment #2
swill commentedI also tried to run the update.php script, but that did not help...
I solved this problem by doing the following (im on a fresh install of drupal):
I disabled and then uninstalled the problem module: imagefield 6.x-3.0-beta1
I then downloaded the last version of the module that I KNOW works and installed it: imagefield 6.x-3.0-alpha3
I then copied the problem module (imagefield 6.x-3.0-beta1) in place and ran the update.php file.
This fixed the problem, but THIS IS STILL A PROBLEM WITH THIS RELEASE (imagefield 6.x-3.0-beta1)...
It appears that something has been removed between imagefield 6.x-3.0-alpha3 and imagefield 6.x-3.0-beta1 that causes a fresh install to not actually install.
When I did the update.php, this is what was executed:
The following queries were executed
imagefield module
Update #6003
* UPDATE {content_node_field} SET type = 'filefield', module = 'filefield', active = 1 WHERE module = 'imagefield' OR type = 'image'
* UPDATE {content_node_field_instance} SET widget_type = 'imagefield_widget', widget_active = 1 WHERE widget_type = 'image' OR widget_type = 'imagefield_widget'
Update #6004
* ALTER TABLE {content_field_image_cache} CHANGE field_image_cache_fid `field_image_cache_fid` INT DEFAULT NULL
* UPDATE {content_field_image_cache} SET field_image_cache_fid = NULL WHERE field_image_cache_fid = 0
* UPDATE {content_field_image_cache} SET field_image_cache_fid = NULL WHERE field_image_cache_fid NOT IN (SELECT fid FROM {files})
Update #6005
* Deleted admin thumbnails distributed throughout files directory. All thumbnails are now stored in the "imagefield_thumbs" directory.
Comment #3
quicksketchThe "Image" type is now gone, this is correct. You need to add the type "File", then the use the widget "Image". All that happened by installing the old version first is you were able to create an "Image" type, then the upgrade converted them all to the "File" type for you. If you go to add another field, you'll see the "Image" type is again missing, yet all the existing ImageFields continue to work, because they are all actually FileFields with an "Image" widget. See #397578: Uncouple ImageField from FileField Custom Hooks.
Comment #4
quicksketchPlease reopen if this is not the case I described in #3.
Comment #5
jryanz commentedI had a similar problem - fix was to run update.php and select 6001, even though not prompted to. Everything was a-ok after that.
Comment #6
quicksketchYou weren't prompted to update? Since alpha4, I added updates 6003 - 6005. It should have asked you to start at 6003. Starting at 6001 doesn't do any harm though, since 6001 and 6002 are empty.
Comment #7
jryanz commentedNo, was never prompted. I was reading about some other problems people were having in the past with the 5.x to 6.x conversion and saw that they were forcing update, so figured I'd give it a shot. I'm not expert, but the update to 6001 executed SQL that looked like it did the name update for the image widget...
Comment #8
quicksketchProbably the subsequent updates did the queries, 6001 is quite empty:
jryanzambon, were you doing a clean install or were you installing ImageField after you'd already had it installed before? If ImageField wasn't completely "uninstalled" (not just disabled), then it's not really a clean install since there's residual database cruft left over from the Drupal 5 version.
Comment #9
swill commented@quicksketch in #3: the "Image" widget is not available. that is what i meant. so on the content type page where you manage fields, the "image" widget is not available, only the "file" widget... if this is the way it is supposed to be and you are supposed to add a "file" and then specify "image" after, then there are problems with contributed modules because they use the "image" widget. i did not try to add a "file" widget and then see if there was an image option...
Comment #10
quicksketchPerhaps screenshots are in order.
I did a brand new D6 install. ImageField and FileField work perfectly with all default settings. Here are two screenshots of adding a new ImageField.
Comment #11
milos1234 commentedthanks! that has cleared things up. shall we close this?
Comment #12
swill commentedI think you can close this. Contributed modules are going to have issues with this change if they automagically add content types with cck images. I know that Ubercart's product type has a problem due to this change. Maybe something to consider...
Comment #13
quicksketchGreat. Yes other modules will need to update, but that's not for here. Thanks all.
Comment #14
elkin_taharon commentedmy case was a little different, in the fresh drupal installation made all the update process, but it didn't work until the upload module was enable.
Comment #15
Antinoo commentedI think it would be useful to better advertize this big change (eg. in the README.txt, and/or the project page).
I've lost almost an hour to see why "Image" wasn't showing anymore into the field list. :-)
Close this issue as soon as you've written some lines about it.
Thanks.
Giovanni
ps. I've had to manually run update.php, too. I always run update.php when I insdtall/upgrade modules.
Comment #16
Antinoo commentedChanging the title to refelect the issue.
Comment #17
jryanz commentedIt was a clean install - I had it installed before but did a full "uninstall" before the reinstall.
Comment #18
quicksketchMarking this support request as fixed. I think the main problem here has been previous experience causing expectations. The ImageField Read Me has already been updated with the new instructions.
Comment #19
Antinoo commentedThanks. :-)
Comment #20
rlance commentedI am having the same problem. I have used Imagefield before on other sites with no problem. I did a clean install of imagefield-6.x-3.0-rc1 on a site that had never had Imagefield before (or any CCK).
I am not getting the "File" option in my Field Type selection list. Of course the Image option is not there either.
Comment #21
quicksketchrlance, I think the "File" option not showing up is actually a different problem. This request has been about the "Image" option no longer being there. What you're saying is that neither FileField or ImageField are working (since you can't add a file at all). If you've got both these modules enabled and you can't find the option as shown in the http://drupal.org/node/403884#comment-1374690 screenshots, then you should open an issue in the FileField queue.