Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm getting the following error when editing the "article" content type :
Notice : Undefined property: stdClass::$simple_access dans simple_access_form() (ligne 450 dans /var/www/ccqm/sites/all/modules/simple_access/simple_access.module).
Editing "basic page" doesn't display this error message however.
Comment | File | Size | Author |
---|---|---|---|
#6 | simple_access-7.x-2.0-beta1_fix-innerJoin-chain-991956-6.patch | 898 bytes | mesr01 |
#6 | simple_access-7.x-2.0-beta1_unable_to_delete_node-1150112-1.patch | 504 bytes | mesr01 |
Comments
Comment #1
clauded CreditAttribution: clauded commentedJust one precision : I'm getting the error for all content types. I've ran the rebuild acces rights but no change.
Comment #2
clauded CreditAttribution: clauded commentedThis seem related to multi-language : switching to english and removing other languages then saving the content type and the warning goes away. It's also possible to switch to the other language and the error won't come back. This is only a workaround of course.
Comment #3
kennyacock CreditAttribution: kennyacock commentedI get this with no multi-language use at all. (I'm only using English on my site.) Also, I get this when adding just about any content type.
Comment #4
mesr01 CreditAttribution: mesr01 commentedFollowing @kennyacock observation: «Editing "basic page" doesn't display this error message however.», I checked all my content type to find out that only 3 of them experience this problem. And these 3 type are not random: they are precisely the ones that I created this morning, while the other types had been created a while ago, probably before installing Simple Access. So I completely uninstalled and reinstalled the module, but it didn't change anything. That's still one clue closer to solving the issue.
Comment #5
rainerdansseg CreditAttribution: rainerdansseg commentedalso facing this problem.
is there a solution yet?
Comment #6
mesr01 CreditAttribution: mesr01 commentedYep. These two patches solved all problems I had with this module. (Incidentally, this issue may be a duplicate of either #991956 or #1150112.)
Comment #7
rainerdansseg CreditAttribution: rainerdansseg commentedhm, I'm using version 7.x-2.0-beta1 and both patches are already included...
the errors on my page are:
They pop up, when I'm creating new content (of only few content types). If I edit them, no error is displayed...
Changing the sites' language to english, doesn't change anything...
Comment #8
drupal_simply_amazing CreditAttribution: drupal_simply_amazing commentedSame thing here. I got same error when adding new content
Comment #9
wOOge CreditAttribution: wOOge commentedAny progress on this? The errors are still around.
Comment #10
piemanji CreditAttribution: piemanji commentedThe error messages can be suppressed by preceding the offending statements with an '@' sign.
So line 430 becomes: $user_groups = @is_array($node->simple_access) ? array_filter($node->simple_access, '_simple_access_filter_access') : array();
431: $owner_priv = @is_array($node->simple_access_owner) ? array_filter($node->simple_access_owner) : array();
474: $access = array('owner' => @$node->simple_access_owner);
483: $form['simple_access']['simple_access'][$gid] = simple_access_form_row($gid, $group, @$node->simple_access, $admin);
Hope that helps. Certainly worked for me.
Comment #11
laroccadahouse CreditAttribution: laroccadahouse commentedsubscribing
Comment #12
Anonymous (not verified) CreditAttribution: Anonymous commented#10 worked for me too! Thank you very much.
Comment #13
dianacastillo CreditAttribution: dianacastillo commentedYes I had this problem but was solved by #10 as well
Comment #14
dianacastillo CreditAttribution: dianacastillo commentedComment #15
gordon CreditAttribution: gordon commentedduplicate of 2 other issues #991956: Non-admin users can't edit their own content, due to Fatal Error.
Comment #16
taggartj CreditAttribution: taggartj commentedYep # 10 worked for me was getting the line 456 error now I am not (latest div )
except ... the line numbers are different , just ctrl+f you will find them
Comment #17
stanb CreditAttribution: stanb commentedDuplicate here I think:
https://drupal.org/node/1950118
#10 worked for me as well for Simple Access 7.x-2.0-rc4.
This workaround appears to only suppress the error as explained here: http://www.php.net/manual/en/language.operators.errorcontrol.php
Is there a way to prevent the error from occurring on newer releases?
Comment #18
stanb CreditAttribution: stanb commentedThis is very strange. I deleted the nodes for the content type (in my case, it was only one) that was producing the error, changed the Title field label back to "Title", reset the file directory for the image fields for that content type to nothing and magically, the error disappeared.
To try to narrow down the cause I added a new Title field label and added a file directory for the image fields but could not reproduce the error. It appears to be gone. Can't think of what else I might have changed to stop the error from occurring.
I created another "test" content type with similar field types and the error did not appear.
Comment #19
stanb CreditAttribution: stanb commentedAssigning then reassigning Simple Access permissions for the content type seems to have eradicated the errors.
Comment #20
suffering drupal CreditAttribution: suffering drupal commentedI tried #10 on rc4, only got more errors. Maybe my fault, but I was so sick and tired of loosing time trying and the lack of interest of the maintainers as usual, that I felt a great relieve uninstalling this module and opting for the Private module.