I found this problem in Content Type page.
#overlay=admin/structure/types/manage/CONTENT TYPE NAME/access
Notice: Array to string conversion in form_process_checkbox() (line 3140 of C:\xampp\htdocs\includes\form.inc).
after i summit the setting, it show me error message.
Notice: Undefined index: type in content_access_admin_settings_submit() (line 180 of C:\xampp\htdocs\sites\all\modules\content_access\content_access.admin.inc).
Notice: Undefined index: type in content_access_admin_settings_submit() (line 180 of C:\xampp\htdocs\sites\all\modules\content_access\content_access.admin.inc).
Notice: Undefined index: type in content_access_admin_settings_submit() (line 180 of C:\xampp\htdocs\sites\all\modules\content_access\content_access.admin.inc).
Notice: Undefined index: type in content_access_admin_settings_submit() (line 180 of C:\xampp\htdocs\sites\all\modules\content_access\content_access.admin.inc).
Notice: Undefined index: type in content_access_admin_settings_submit() (line 180 of C:\xampp\htdocs\sites\all\modules\content_access\content_access.admin.inc).
Notice: Undefined index: type in content_access_admin_settings_submit() (line 180 of C:\xampp\htdocs\sites\all\modules\content_access\content_access.admin.inc).
Notice: Undefined index: type in content_access_admin_settings_submit() (line 180 of C:\xampp\htdocs\sites\all\modules\content_access\content_access.admin.inc).
Notice: Undefined index: type in content_access_admin_settings_submit() (line 180 of C:\xampp\htdocs\sites\all\modules\content_access\content_access.admin.inc).
Notice: Undefined index: type in content_access_admin_settings_submit() (line 180 of C:\xampp\htdocs\sites\all\modules\content_access\content_access.admin.inc).
Notice: Undefined index: type in content_access_admin_settings_submit() (line 180 of C:\xampp\htdocs\sites\all\modules\content_access\content_access.admin.inc).
Notice: Undefined index: type in content_access_admin_settings_submit() (line 180 of C:\xampp\htdocs\sites\all\modules\content_access\content_access.admin.inc).
Notice: Undefined index: type in content_access_admin_settings_submit() (line 180 of C:\xampp\htdocs\sites\all\modules\content_access\content_access.admin.inc).
Notice: Undefined index: edit any content in user_role_grant_permissions() (line 3041 of C:\xampp\htdocs\modules\user\user.module).
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'module' cannot be null: INSERT INTO {role_permission} (rid, permission, module) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2); Array ( [:db_insert_placeholder_0] => 3 [:db_insert_placeholder_1] => edit any content [:db_insert_placeholder_2] => ) in user_role_grant_permissions() (line 3043 of C:\xampp\htdocs\modules\user\user.module).
Comment | File | Size | Author |
---|---|---|---|
#16 | php54.patch | 475 bytes | omerida |
#11 | content_acess.patch | 1.13 KB | droplet |
Comments
Comment #1
zietbukuel CreditAttribution: zietbukuel commentedI've got this error too and I cannot edit permissions.
Comment #2
info@raceeend.nl CreditAttribution: info@raceeend.nl commentedI've got the same error on an IIS 7.5 webserver when editing the permissions in a content type. But it's possible to edit the permissions on a separate node.
When I copied the website to an apache enviroment (within VS.PHP), everything works fine. The permissions are editable on the contenttype and on a separate node.
Comment #3
seppola CreditAttribution: seppola commentedI'm experiencing the same issue with the following configuration:
- PHP Version 5.4.6
- IIS 7.5
- Drupal 7.15
Comment #4
zietbukuel CreditAttribution: zietbukuel commentedI changed the line 180 to:
And it worked for me.
Comment #5
saavyone CreditAttribution: saavyone commentedI followed zietbukuel's code (Thanks!) and still got another error a few lines down. So I took the hack one step further:
Comment #6
korn3lius CreditAttribution: korn3lius commented#5 worked for me
Thanks a lot
Comment #7
Ole Martin CreditAttribution: Ole Martin commentedCan anyone tell me which file and what to change?
In the "content_access.module"-file I have only:
178. / **
179. * Implements hook_disable ().
180. * /
181. content_access_disable function () {
182. content_access_disabling (TRUE);
183. }
Thanks.
Comment #8
Ole Martin CreditAttribution: Ole Martin commentedSorry, I saw it now from the error message
"modules\content_access\content_access.admin.inc"
And it's was #5 who fix it for me.
Thanks.
Comment #9
mittina CreditAttribution: mittina commentedI've got this error when enabling 'PER CONTENT NODE ACCESS CONTROL SETTINGS' for a created content type.
Drupal 7.15, and
Had WAMP 2.2. with PHP 5.4.3 and Apache 2.2.22.
Workaround:
Downgrade to PHP v.5.3 solved the issue, too.
Comment #10
John Deefull CreditAttribution: John Deefull commented#5 didn't work for me.
;-) sorry.
and I have no right to down the PHP version...
Comment #11
droplet CreditAttribution: droplet commentedTotally not working, raising priority.
(2 & 3rd changes improve the code only. 1st is the code fix.)
Comment #12
Anonymous (not verified) CreditAttribution: Anonymous commentedThe patch in #11 did not work for me, with PHP 5.4.7.
Instead of getting lines like this :
Notice : Undefined index: type dans content_access_admin_settings_submit() (line 180)
I get :
Notice : Undefined variable: type dans content_access_admin_settings_submit() (line 180)
And the process fail for it still ends with the PDOException :
PDOException : SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'module' cannot be null
Comment #13
droplet CreditAttribution: droplet commented@Pozzo,
what's your Content Access version. I tested with PHP 5.4.4 & Content Access dev
Comment #14
Anonymous (not verified) CreditAttribution: Anonymous commentedIndeed, it works way better with this version of content access and the patch!
Thanks a lot!
Comment #15
IcanDivideBy0 CreditAttribution: IcanDivideBy0 commented#11 worked for me too.
Thanks
Comment #16
omerida CreditAttribution: omerida commentedFor the beta release, this patch should be sufficient to prevent this error when running in a PHP 5.4 environment.
Comment #17
likewhoa CreditAttribution: likewhoa commentedworks for me, thanks!
Comment #18
Nicolas Bouteille CreditAttribution: Nicolas Bouteille commentedI confirm that #16 was enough for me to make content access work with a per node granularity with PHP 5.4.4 and the dev version of december 2011.
By the way what's up with this module ? How is it there are no commits for one year ? I am starting to find more and more modules like that such as Loggin Toboggan and Email Register... and there are others... is Drupal dying or what ? Do you think maintainers choosing other CMS ?
Comment #19
jessepinho CreditAttribution: jessepinho commented#11 won't work, because $type is not yet defined in the scope in which it's being called. #16 works for me.
Comment #20
droplet CreditAttribution: droplet commentedwell...#11 & #16 doing same thing if you using dev version
Comment #21
jessepinho CreditAttribution: jessepinho commentedWoops, sorry, wasn't using the dev version and didn't realize that's what this issue was referring to. My bad!
Comment #22
schnippy CreditAttribution: schnippy commentedJust ran into this issue as well and omerida's patch at #16 worked as expected for us -- cleared out warning notices and sql fatal error. Thanks Oscar!
Comment #23
rudiedirkx CreditAttribution: rudiedirkx commentedAll of that ^ is not necessary.
All that's necessary is changing
to
or simply adding a
&
before$form_state
.As you can see in the quickstart quide the
$form_state
in the form function itself has to be by-reference.Without it, adding
in the form function is useless, because it will never leave the initial form definition (and will never be available in
content_access_admin_settings_submit()
).If that wasn't the problem, you're using a strange PHP...
Comment #24
blogsh CreditAttribution: blogsh commented#23 fixes the problem for me on PHP 5.4.7
Comment #25
omerida CreditAttribution: omerida commentedGuess what the patch in #16 does. I provided a patch file because that makes it easy to apply the change (yes, even if its one line).
Comment #26
zietbukuel CreditAttribution: zietbukuel commentedCan someone please make a working patch? (I'm kinda confused now, there are lots of fixes here). Thanks.
Comment #27
likewhoa CreditAttribution: likewhoa commented@zietbukuel if you pay attention you would notice #16 is a *working* and simple patch.
Comment #28
zietbukuel CreditAttribution: zietbukuel commentedOh sorry about it, I'll check it out. Thanks!
Comment #29
rudiedirkx CreditAttribution: rudiedirkx commentedYes. #16.
Comment #30
claira CreditAttribution: claira commented#16 worked!
Comment #31
everpat CreditAttribution: everpat commented#16 also worked for me, but only with the dev version.
Comment #32
Beezer75 CreditAttribution: Beezer75 commented#23 seems to have done the trick for me. I'm using the 7.x-1.x-dev version, I didn't try it with 7.x-1.2-beta1
Comment #33
likewhoa CreditAttribution: likewhoa commented@chris@bohnsackd please try the much simpler patch in #16
Comment #34
rudiedirkx CreditAttribution: rudiedirkx commented@likewhoa That's the same. Only #23 isn't a patch.
Can someone call someone to tell someone to commit this? I don't know anyone.
Comment #35
norgo CreditAttribution: norgo commentedchanging line 115 in the dev version with patch in #16 worked for me.
Comment #36
gambry#23 works for me, version 7.x-1.2-beta1 PHP 5.4.6
Comment #37
fagoThanks, committed.
Comment #38
LedZelkin CreditAttribution: LedZelkin commentedThanks this patch save my day :)