Closed (duplicate)
Project:
Content Access
Version:
7.x-1.2-beta1
Component:
User interface
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
14 Apr 2012 at 16:30 UTC
Updated:
20 Jun 2016 at 18:51 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
1kubik commentedsame Problem with 7.x-1.2-beta1 Version
do iam the only one with this problem?
its a brand new drupal 7.12 installation
and a
PHP Version 5.4.0
if go to the content type access admin on
admin/structure/types/manage/article/access
it shows a Notice
'Notice: Array to string conversion in form_process_checkbox() (line 3057 of /var/www/html/includes/form.inc).'
Comment #2
japanitrat commentedsame but different. I can't get the content access permissions rebuilt.
Comment #3
solvemon commentedSame here:
D7.14
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 3034 of /usr/share/drupal7/modules/user/user.module).
Comment #4
roland.wells commentedSame problem here:
Drupal 7.14
PHP 5.4.3
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 3034 of /home/ubs/public_html/modules/user/user.module).
Comment #5
roland.wells commentedthis seems to only occur with PHP 5.4.x , I've tested same site with php 5.3.6 and it works fine
Comment #6
roelw commentedI have this issue on my production server of my hosting service that uses php 5.4.4-2 and drupal 7.14.
A test version of that same site running under Drupal 7.12 on my home server works fine (it uses php 5.3.6-13ubuntu3.6).
I have no idea how to solve it or what to do :-(
Earlier today I installed the Libraries, Media and jPlayer modules. Could that also have something to do with it ?
Comment #7
roland.wells commentedmy site does not have Media or jPlayer modules, and I uninstalled the Libraries module to test. Still exeperiancing the same behavior on PHP 5.4x .
PHP 5.3 works fine with the same site (regardless of whether Libraries module is installed or not).
Comment #8
DrupalDesigner-1 commentedYep same thing here, happens when I try to set permissions for any content type:
Notice: Undefined index: type in content_access_admin_settings_submit() (line 180 of ...sites\all\modules\content_access\content_access.admin.inc).
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()
And when going to the content type access admin on
admin/structure/types/manage/article/access
it also shows a Notice as mentioned above:
'Notice: Array to string conversion in form_process_checkbox() (line 3057 of /var/www/html/includes/form.inc).'
I am using PHP 5.4x and Drupal 7.14 aswell. Would really appreciate some suggestions for this.
Comment #9
DrupalDesigner-1 commentedCan confirm that using PHP 5.3x and Drupal 7.15 gets rid of the errors. Had to reinstall because it completely broke my site.
Comment #10
salvisInstall Devel module, enable its Backtrace error handler, and report the call stack(s) leading to the error(s).
Comment #11
romaingar commentedConfirm too : PHP 5.4.4 and Drupal 7.14
Is someone find a solution ?
thanks
I've tested to apply this patch : http://drupal.org/node/1249952
who describe the same issue caused by the fact that le function user_role_grant_permissions receive a module who is not activated. In our case, the module name doesn't exist because the function doesn't receive the second argument : $premissions
I've did'nt find where this function is called...
Maybe someone could help me to investigate on this bug.
bye !
Comment #12
hgneng commentedSame problem here with PHP 5.4.4 and Drupal 7.14
Comment #13
hgneng commentedI've attached a solution. It seems caused by the value of $form_state['type'] lost. But I don't know why.
Comment #14
k.skarlatos commentedThis seems to work ok for me. Thanks!
Comment #15
dr_cop commentedAlso for saving 'views' permissions per content type you should replace this:
on that:
Comment #16
Routh commentedHas this been incorporated into dev yet? I'm also experiencing this with PHP 5.4
Comment #17
Routh commentedWell, I just attempted that patch and it failed. Still stuck with this.
Comment #18
droplet commentedcan anyone test my patch.
#1721758: Notice: Undefined index: type in content_access_admin_settin (Integrity constraint violation: 1048 Column 'module' cannot be ).
Comment #19
likewhoa commentedpatch in #18 works.
Comment #20
fagohttp://drupal.org/node/1721758
Comment #21
robladdish commentedStill a problem in June 2016. Drupal commons distribution will not load on Apache, PHP, MySQL - all latest versions. Backtracking versions is very time consuming. I tried older versions of PHP and Mysql - no go. I've just tried php 5.3.6, but now looks like I'd have to downgrade apache to 2.2 instead of 2.4. I feel real bad about going back many years as I'm sure there are security patches in the meantime. It'd be awesome if drupal commons could be patched to finally work around this issue. (SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'rid' cannot be null)