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

dianacastillo’s picture

I went back to an older version of simple access that I had backed up and dont get this error anymore.

gordon’s picture

Status: Active » Postponed (maintainer needs more info)

The 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.

candotri’s picture

gordon,

Could you help a bit more? Here's the variable entry for my content type:

+---------------------------------------+---------------------------------------------------------------------------------------------------+
| name                                  | value                                                                                             |
+---------------------------------------+---------------------------------------------------------------------------------------------------+
| simple_access_project_management_page | a:1:{s:19:"simple_access_owner";a:3:{s:7:"sa_view";i:0;s:9:"sa_update";i:0;s:9:"sa_delete";i:0;}} |
+---------------------------------------+---------------------------------------------------------------------------------------------------+

What can I do to make sure that "the simple_access" exists in the array?

candotri’s picture

I ignored this error, added a couple of simple_access groups and forged forward. The error went away.

candotri’s picture

Ha! 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.

candotri’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)