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 am getting this notice when I add a new piece of content:
Notice: Undefined property: stdClass::$simple_access in simple_access_form() (line 456 of C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\pn\sites\all\modules\simple_access\simple_access.module).
Comments
Comment #1
dianacastillo CreditAttribution: dianacastillo commentedI went back to an older version of simple access that I had backed up and dont get this error anymore.
Comment #2
gordon CreditAttribution: gordon commentedThe only way you would get this is if your defaults are corrupt in the valiables table.
Take a look at the variable simple_access_{node type} and make sure the the simple_access exists in the array.
Comment #3
candotri CreditAttribution: candotri commentedgordon,
Could you help a bit more? Here's the variable entry for my content type:
What can I do to make sure that "the simple_access" exists in the array?
Comment #4
candotri CreditAttribution: candotri commentedI ignored this error, added a couple of simple_access groups and forged forward. The error went away.
Comment #5
candotri CreditAttribution: candotri commentedHa! Some months later after migrating a site I came up with the same error. This time I edited the Content Type. The Content Type had no access restrictions so I added a restriction (to a group) and saved the Content Type. Then I edited the Content Type and removed the restriction.
The error disappeared.
Comment #6
candotri CreditAttribution: candotri commented