Closed (fixed)
Project:
Content Construction Kit (CCK)
Version:
7.x-2.x-dev
Component:
General
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Sep 2010 at 09:01 UTC
Updated:
29 Jan 2011 at 20:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
dave reidPatch is missing lines at the bottom.
Comment #2
Cheek commentedCreating a 'Select List' is still not possible. Using the patch makes it work, but gives these warnings:
Comment #3
das-peter commentedHi Cheek,
this issue looks more like a webserver / php config issue.
Line 941 in bootstrap does nothing else than this
include_once DRUPAL_ROOT . '/' . $filename;- a simple include of a file.The Warning says you don't have access permissions to this file.
Check if:
Cheers,
Peter
Comment #4
Cheek commentedHi peter,
You were right. PHP safe mode wasn't disabled. But by patching the cck.module file, access to cck.module was somehow set to forbidden.. Sorry for the confusion. :)
I don't usually deal with patches, but it seems like this one can be set to 'reviewed & tested by the community' so it can be enrolled?
Comment #5
arthurf commentedPatch applies cleanly and I can now create select drop downs. I am seeing a bunch of warnings:
Comment #6
crizconfirmed. selectlists are not usable because of this bug.
Comment #7
Azol commentedsubscribing
Comment #8
shunting commentedsubscribing d7b2
Comment #9
Azol commentedI confirm that patch in #1 has solved my problem and I now can use select lists and logical values (on/off)
Comment #10
jcarlson34 commentedI also used patch #1 and am now getting the same warnings as arthurf in #5.
However, select lists are editable now. I upgraded from 6.19 to 7 beta 3 and used content migrate.
Comment #11
ngmaloney commentedExperiencing same issue.
1. Installed fresh copy of D7 Beta-3 on MAMP
2. Created a content type with a list field
3. Populated initial field values
4. WSOD
php_error.log:
PHP Fatal error: Call to undefined function list_field_schema() in /drupal-7.0-beta3/sites/all/modules/cck/cck.module on line 117
Comment #12
meba commentedAttached patch solved both the undefined function and the notices (since they all come together).
That doesn't change the fact that some of the settings like PHP functions are not saved when CCK is enabled
Comment #13
johnvShouldn't this new patch be tested by test-bot?
Comment #14
dave reidOnly if testing is enabled on the CCK project, and the CCK project has actual simpletests, which does not seem to be the case.
Comment #15
johnvDave, OK, I understand.
I have tested your patch #12: I created 3 fields: List, List(text) and List(numeric). I could create Content types and Content with no problem, except for one Notice after creating List(text) :
" Notice: Undefined index: default_value_function in cck_default_value_form() (line 100 of cck.module).
Could you remove that last one?
Comment #16
good_man commentedThe same issue, it's working but leaving a notice as in #15
Comment #17
yechuah commentedpatch uploaded same as 12 but for version 7.x-2.x-dev.
edit: attachment link doesnt work. try here http://drupal.org/files/cck.patch
Comment #18
good_man commentedThe patch has an error during upload maybe? it's pointing to http://drupal.org/files/issues/
Comment #19
jbfelix commentedTry this http://drupal.org/files/issues/cck.patch
Comment #20
dave reid+1 to #12.
Comment #21
dave reid+1 to #12.
Comment #22
yched commentedKaren fixed the .install file not being loaded a couple days ago.
Committed the attached patch for the other glitches (different from #12, which had a couple isset checks that shouldn't be needed - or at least, if some of those stuff happen not to be set, then the problem lies elsewhere)
Comment #23
paulgodard commentedHi
I am new to Drupal... so I am no so sure if I have done something wrong or not. Anyway I get 2 failed when applying the patch on cck 7.x-2.x-dev.
MacPro:cck paul$ patch -p0 < cck-d7-allowed-default-php-906358.patch
patching file cck.module
Hunk #2 FAILED at 67.
Hunk #3 succeeded at 85 (offset -1 lines).
Hunk #4 succeeded at 93 (offset -1 lines).
Hunk #5 FAILED at 110.
Hunk #6 succeeded at 127 (offset -2 lines).
Hunk #7 succeeded at 152 (offset -2 lines).
Hunk #8 succeeded at 164 (offset -2 lines).
Hunk #9 succeeded at 283 (offset -2 lines).
Hunk #10 succeeded at 329 (offset -2 lines).
Hunk #11 succeeded at 347 (offset -2 lines).
2 out of 11 hunks FAILED -- saving rejects to file cck.module.rej
Comment #24
jcarlson34 commentedHi Paul. Looks like yched already committed the patch to the latest dev version of CCK.
So instead of installing the patch, you can just download the latest dev release (currently Jan 10) and the fix will be included.
As for the hunk fails, often times, patches fail when patching a version of the dev that is different from the version the patch is associated with. Hope that helps.