Closed (fixed)
Project:
Content Construction Kit (CCK)
Version:
6.x-2.4
Component:
General
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Jun 2009 at 08:10 UTC
Updated:
5 Jul 2009 at 01:10 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
lyricnz commentedI have this too.
Comment #2
lyricnz commentedI had CCK enabled, before replacing "cck" directory with files from 6.x-2.3 release. When I ran update.php, I got this error, then when I checked the module page, CCK was showing as *disabled*. I disabled a couple of other modules (emfield, as it happens), then CCK appeared to show up enabled again (wierd). After CCK was enabled, I ran update.php again, and it worked fine.
Comment #3
yched commentedCrap. Missing
drupal_load('module', 'content');at the beginning of update 6004. Forgot about that nice aspect of the update system, and it didn't get reported during the time this code lived in -dev.I'm not where I can roll a fix right now, but it seems we're up for an early 2.4 release :-(
Comment #4
yched commentedfixed in -dev. Will roll a 2.4 shortly, waiting to see if other hotfixes need to get in.
Comment #5
yched commentedComment #6
bmcraec commentedHad the same problem while upgrading a site last night (6.12 core). All 2rd party modules where disabled when Update.php was run, producing the error in question. When I read through the comments here, I went enabled all the 3rd party modules, ran Update.php again, and lo and behold, no errors!
Currently, everything seems to be working fine!
Comment #7
caschbre commentedI too had the very same error.
I didn't want to install the dev release to get the fix, but after reading some of the comments here is what I did:
Went to my modules page (where I had all 3rd party mods disabled). I enabled the CCK core module only and then re-ran update.php. 6010 was installed successfully. I'm not sure if that is right or if that even works, but so far so good.
Comment #8
yched commentedNote that you don't need to disable contrib modules if you only do a contrib module update. It is only required for core major version upgrade.
Comment #9
Anonymous (not verified) commentedJust ran into this update. Ended up having to uninstall CCK and reinstalling it. This was on a dev site that I had left alone for awhile.
Comment #10
andrewsuth commentedI got the same error under the same conditions as explained in the original post. I was upgrading from CCK 2.2 to CCK 2.3
As this site does not use CCK, the work-around I used was to set the update drop-down to
No updates availableComment #11
pwolanin commentedHere's a patch to use based on the CVS commit.
Comment #12
yched commentedI rolled release 2.4 today.
Comment #13
bsimon commentedThanks for the bug fix!
Could I suggest in future withdrawing an update and making it unavailable if it has a bug like this, assuming that's possible. I just installed 6.x-2.3 20 minutes ago... and got hit with this bug.
It's almost funny really... I always wait at least a week before updating a module because I didn't want to get caught out like this again :/
Also, in my opinion, it seems likely to cause serious confusion that this issue was marked as 'fixed' when this bug actually still existed in 6.x-2.3, and people were still able to download it. This makes it much harder for users to find serious issues before installing an update like this.
I hope these suggestions are helpful and apologize in advance if I've misunderstood something here (which is certainly possible). Thanks again for all your great work.
Comment #14
yched commentedWe cannot withdraw a release if there is no newer release yet. The bug was not so bad it would have deserved pulling the 2.3 release out completely.
About marking the issue 'fixed' : that's how issue queues work. A bug is marked 'fixed' if it's fixed in -dev.
I waited a bit to release 2.4 to see if 2.3 needed other hotfixes. This being said, I should probably have updated the 2.3 release notes meanwhile, to state that a bug in the update function required some simple precautions before running update.php.
Sorry about the confusion.
Comment #15
bsimon commentedThanks for the explanation. It seems like the problem is really an inevitable result of structural issues with Drupal.org and the CVS...
Comment #16
stevea3 commentedI get the following comment when I try to activate module CCK release 6.x-2.4:
Fatal error: Call to undefined function content_field_instance_read() in /home/blackcre/public_html/sites/all/modules/content/content.module on line 1475.
When I remove the newly installed CCK release 6.x-2.4 module, the error goes away. I need this module to run the mp3player module.
Was this release supposed to fix this problem? If so, is there something I am overlooking?
Stevea3
Comment #17
markus_petrux commented@stevea3: Make sure you have extracted all files in the CCK package with the proper directory structure and permissions.
Visually backtracing the code:
a) Line 1475 in content.module invokes function content_field_instance_read(). Failed, but why?
b) Function content_field_instance_read() is defined in file includes/content.crud
c) Before line 1475 in content.module, the file includes/content.crud is loaded in line 1469 !!!
So, it seems c) failed, probably because the file isn't there, or it doesn't have the proper permissions.
Comment #18
stevea3 commentedThank you very much, markus_petrux. The directory structure was not there.
Now it works great.