Hi, I have been using your module and it is a life saver! However, since upgrading to drupal 6.15 all looks fine when logged in as admin but if I log out or if someone else logs in I get the error:

•warning: array_filter() [function.array-filter]: The second argument, '1::2', should be a valid callback in /home/tintisha/public_html/studysparks/sites/all/modules/simple_access/simple_access.module on line 599.
•warning: Wrong parameter count for array_intersect() in /home/tintisha/public_html/studysparks/sites/all/modules/simple_access/simple_access.module on line 599.

Has anyone else experienced this or know what the problem may be?

Thanks

Comments

arthurzgtw’s picture

I have a similar problem. After updating to Drupal 6.15, all is fine when I'm logged in as admin, but when page is viewed by anon users, the following error occurs:

- warning: array_filter() [function.array-filter]: The second argument, 'Array', should be a valid callback in /sites/all/modules/simple_access/simple_access.module on line 599.
- warning: Wrong parameter count for array_intersect() in /sites/all/modules/simple_access/simple_access.module on line 599.
- warning: array_filter() [function.array-filter]: The second argument, 'Array', should be a valid callback in /sites/all/modules/simple_access/simple_access.module on line 599.
- warning: Wrong parameter count for array_intersect() in /sites/all/modules/simple_access/simple_access.module on line 599.

On top of this, when I try to uninstall the Simple Access module, the screen goes blank and I get the following error message:

Fatal error: Call to a member function get_access_callback() on a non-object in /sites/all/modules/views/plugins/views_plugin_display_page.inc on line 78

So I'm guessing there's something going on between Views and Simple Access after the upgrade to 6.15. But what is it? HELP! :)

spkelley’s picture

I am experiencing the same problem. Login as admin, no problems. Login as normal user and get the following error:

warning: array_filter(): The second argument, 'Array', should be a valid callback in /home/eastbl5/public_html/sites/all/modules/simple_access/simple_access.module on line 599.
warning: Wrong parameter count for array_intersect() in /xxx/xxx/public_html/sites/all/modules/simple_access/simple_access.module on line 599.

Drupal v6.16
MySQL database 4.1.22
PHP 4.4.1

rwsimmo’s picture

I just tried this module with Drupal 6.16 and I am not seeing the problem described in the previous posts. I am running:

Drupal 6.16
MySQL 5.0.45
PHP 5.2.6