I'm going to Administer › User management › Access profiles and trying to add a profile (URI: http://toadstool/sandbox/?q=admin/user/sa_profiles/add ). This gets me a 404.

Page not found
warning: Illegal offset type in isset or empty in /opt/drupal/sandbox/sites/all/modules/simple_access/simple_access.module on line 580.
The requested page could not be found.

I ran update.php after installing this module (was updating older modules as well), but I'm not sure that's related.

Comments

gordon’s picture

Status: Active » Fixed

I have fixed this issue in dev where it would wrongly detect that a form is being edited.

Please give it another try

nmashruwala’s picture

Status: Fixed » Active

Still getting the same issue. Tried with both the beta 3 and the previous (18th) and most recent dev (23rd) versions. This time I only updated simple_access, ran the update script, and retried.

Page not found
warning: Illegal offset type in isset or empty in /opt/drupal/sandbox/sites/all/modules/simple_access/simple_access.module on line 590.
The requested page could not be found.

tbrix’s picture

I am having the same issue with simple access.

This is the code that results in the page not found:

if (!empty($pid)) {
$profiles = simple_access_get_profiles();

if (!isset($profiles[$pid])) {
drupal_not_found();
exit();
}

simple_access_get_profiles() gets a list of the access profiles, but since I have created any yet, it fails... but why is the $pid not empty (!empty($pid)... I am looking furter into this....

gordon’s picture

Version: 6.x-2.0-beta2 » 6.x-2.0-beta5
Status: Active » Fixed

This should be definitely fixed in beta5

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.