I have set up a user group that should be allowed to post blog content. However, if one of those users (non-admin) clicks the 'Create new blog entry' link, the following error message displays:

Fatal error: Call to a member function condition() on a non-object in .../sites/all/modules/simple_access/simple_access.module on line 637

This is a serious limitation of the module. Any ideas how to fix this?

Comments

mesr01’s picture

Hi. I've just installed this module and it looks very promising. Unfortunately, when requesting a node 'Edit' page, I get a white screen with this error:

Fatal error: Call to a member function condition() on a non-object in /path/to/site/modules/simple_access/simple_access.module on line 637

I also get the following error when viewing the content type 'Edit' page but, this time, with the form correctly displayed.

Notice: Undefined index: sa in simple_access_form_node_type_form_alter() (line 385 of /path/to/site/modules/simple_access/simple_access.module)

It seems to be related to the problem described above. I'm not sure how do diagnose it further.

joschy3d’s picture

yea, me too and after update to Drupal 7.4 installation error:

    Notice: Undefined index: log in update_authorize_install_batch_finished() (line 235 of /mnt/webg/c0/84/52862084/htdocs/D7Space/modules/update/update.authorize.inc).
    Warning: Invalid argument supplied for foreach() in update_authorize_install_batch_finished() (line 235 of /mnt/webg/c0/84/52862084/htdocs/D7Space/modules/update/update.authorize.inc).
    Notice: Undefined index: log in update_authorize_install_batch_finished() (line 276 of /mnt/webg/c0/84/52862084/htdocs/D7Space/modules/update/update.authorize.inc).
    Notice: Undefined index: tasks in update_authorize_install_batch_finished() (line 277 of /mnt/webg/c0/84/52862084/htdocs/D7Space/modules/update/update.authorize.inc).
    Installation failed! See the log below for more information.

After activation you have also error in the structur-content types:
book: Notice: Undefined index: sa in simple_access_form_node_type_form_alter() (line 385 of /mnt/webg/c0/84/52862084/htdocs/D7Space/sites/all/modules/simple_access/simple_access.module).

page: Notice: Undefined index: sa in simple_access_form_node_type_form_alter() (line 385 of /mnt/webg/c0/84/52862084/htdocs/D7Space/sites/all/modules/simple_access/simple_access.module).

and so on... can´t use it.

laroccadahouse’s picture

not sure if this will help you, but I was getting the WSOD on creating content and editing as a non-admin and the fix here worked for me

http://drupal.org/node/991956

mesr01’s picture

That worked for me also.
Thanks @laroccadahouse.

simon georges’s picture

Status: Active » Closed (duplicate)