i just upgraded from alpha2 and now i am receiving errors. it occured first when i tried to run update.php after the upgrade, it also occurs when i try to clear the cache. when running cron, i get the "Notice" only.
Notice: Undefined index: access administration menu in user_role_grant_permissions() (line 3041 of /home/user/public_html/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] => access administration menu [:db_insert_placeholder_2] => ) in user_role_grant_permissions() (line 3043 of /home/user/public_html/modules/user/user.module).
Comment | File | Size | Author |
---|---|---|---|
#11 | openchurch-7.x-1.11-alpha7-features.patch | 1.26 KB | j_ali |
Comments
Comment #1
j_ali CreditAttribution: j_ali commentedI get this too (started with alpha4, I believe). Looks like http://drupal.org/node/1063204. I got a little lost trying to follow what they were saying but it sounds as though the problem might be avoided if the OpenChurch dependencies could be tweaked (see eg., http://drupal.org/node/1063204#comment-6350638). I'm just using big words here, I've no idea what they mean!
Comment #2
linwiz CreditAttribution: linwiz commentedThat is a step in the right direction but I don't know which module needs to be patched.
Comment #3
j_ali CreditAttribution: j_ali commentedYou mean, using the patch in comment 32? That would be the features module. If you do try it, let us know if it works. Always happy to let someone else be guinnea pig!
Comment #4
linwiz CreditAttribution: linwiz commentedI will work on this when I get home this afternoon
Comment #5
linwiz CreditAttribution: linwiz commentedit doesnt appear that openchurch is using features. as there is no includes/features.user file
Comment #6
j_ali CreditAttribution: j_ali commentedI can navigate to /admin/structure/features which lists a number of features, so I suspect it is.
Note the file is called includes/features.user.inc and on the site I look after it's located at profiles/openchurch/modules/contrib/features/includes/features.user.inc
Comment #7
linwiz CreditAttribution: linwiz commentedI did not run patch, but instead i placed the lines in the features.user.inc file by hand and it appears to work. i can only assume the patches will do the same, but both #27 and #32 must be applied
Comment #8
j_ali CreditAttribution: j_ali commentedGlad that it's working for you, but I'm surprised that both patches need to be applied. #27 adds the call to drupal_static_reset() before the call to _user_features_get_permissions(), #32 adds the call to drupal_static_reset() inside _user_features_get_permissions() itself so I would have expected it to obsolete #27 (and that's what the comments appear to be implying also). Disclaimer: I'm not a PHP programmer.
Comment #9
linwiz CreditAttribution: linwiz commentedI made sure to remove #27 and left #32. problem seems solved, i must have put patch #27 in first, which apparently does not work.
so #27 is not needed, but #32 solved the issue.
the two patches affect two different functions. i tried after appling only one patch and still got the errors.function user_permission_features_rebuild($module) {andfunction _user_features_get_permissions($by_role = TRUE) {Comment #10
linwiz CreditAttribution: linwiz commentedComment #11
j_ali CreditAttribution: j_ali commentedYup, I can confirm that the patch in comment #32 allows me to clear the caches.
I attach the patch that I used to OpenChurch to pull it in.
Comment #12
drupalninja99 CreditAttribution: drupalninja99 commentedI have pushed this change out to 1x dev
Comment #13
drupalninja99 CreditAttribution: drupalninja99 commentedSo is the maintainer going to put this patch in the next release of features?
Comment #14
drupalninja99 CreditAttribution: drupalninja99 commentedThanks for this patch, I think it will keep the user permissions part of features from busting if the module isn't enabled? That would be really good bc we have issues with some module like overlay & admin menu that we don't want to force as dependencies.
Comment #15
j_ali CreditAttribution: j_ali commentedNot sure who you are asking, but either way, I think you're going to need to ask on the features issue (http://drupal.org/node/1063204). The patch we're using was originally written by floretan, who might be able to answer.
Comment #16
drupalninja99 CreditAttribution: drupalninja99 commentedPushed to 7.x-1.11-alpha8
Comment #17
linwiz CreditAttribution: linwiz commentedfixed in 7.x.1.11-beta1.
Comment #18
drupalninja99 CreditAttribution: drupalninja99 commentedComment #20
Jaycoke CreditAttribution: Jaycoke commentedI am still getting this error every time I run the update script, or try to open the modules tab. I have tried to apply the suggested patch and it does not work.
openchurch-7.x-1.11-beta6
Comment #21
AllenConquest CreditAttribution: AllenConquest commentedI am also having the same problem with openchurch-7.x-1.11-beta6. During the update process it applied several updates and finally came back the with error mentioned above.
I'm new to Drupal, how do I start to debug this issue?
Comment #22
drupalninja99 CreditAttribution: drupalninja99 commentedDarn, I must have reintroduced this issue. What version were you upgrading from?
Comment #23
drupalninja99 CreditAttribution: drupalninja99 commentedI tested for a few versions back without issue. Can you give me the specific version you are updating from?
Comment #24
AllenConquest CreditAttribution: AllenConquest commentedI had just downloaded 7.x-1.11-beta6 from the website and copied it over the top of an older version, which I think was 7.1.2. Would it be better to delete the old version and reload it completely (keeping the settings.php)? I don't have anything special on the site and am starting from new, so I don't mind losing anything.
Comment #25
drupalninja99 CreditAttribution: drupalninja99 commentedYa definitely delete everything but your sites folder. I will test some more tonight from 7.1.2
Comment #26
drupalninja99 CreditAttribution: drupalninja99 commentedI bet you need to disable toolbar before upgrading. I can test.
Comment #27
drupalninja99 CreditAttribution: drupalninja99 commentedThat is such an old version, it is likely a module that is disabled. I know that toolbar was retired in favor of the admin menu toolbar so that is my best guess at this time.
Comment #28
drupalninja99 CreditAttribution: drupalninja99 commented