I get the following errors when viewing the index of my site. This only happens when viewing the site as a guest. Whatever the problem is, it seems to break the theme when it occurs (example attached).

Fatal error: Call to undefined function user_access() in /home/[...]/greendragonjewelry.com/modules/rules/rules.module on line 1006
HTTP/1.1 304 Not Modified Date: Tue, 15 Mar 2011 21:25:35 GMT Server: Apache Connection: Keep-Alive Keep-Alive: timeout=2, max=99 Etag: "1300224325-1" Cache-Control: public, max-age=0
Fatal error: Call to undefined function user_access() in /home/[...]/greendragonjewelry.com/modules/rules/rules.module on line 1006

Comments

JohnBarner’s picture

Component: Rules Core » Rules Engine

Assuming from the error that it had something to do with the cache, I started fiddling around with my settings. I was unable to resolve it without disabling the cache totally.

fago’s picture

Status: Active » Closed (duplicate)

I remember having this fixed already, please try testing the latest dev snapshot. If the problem still appears, please just re-open.

enochRoot’s picture

Version: 7.x-2.0-alpha5 » 7.x-2.3
Component: Rules Engine » Rules Core
Status: Closed (duplicate) » Active

I get the same error message:
Fatal error: Call to undefined function user_access() in /..../sites/all/modules/rules/rules.module on line 1190

It just gets written out at the end of my front page.
And I can get rid of it by configuring rules settings 'showdebug information' to 'never'.

So if this is somehow related to how how rules handles it's debug information, I'd rather not have this output written out for anonymous users to see...

eR

denix’s picture

same error here, with version 7.x-2.3, when I activate the anonymous cache.

E_ERROR: Call to undefined function user_access()

in rules_show_debug_output called at /.../sites/all/modules/contrib/rules/rules.module (1194)
in rules_show_debug_output called at /.../sites/all/modules/contrib/rules/rules.module (1201)
in rules_exit called at ? (?)
in call_user_func_array called at /.../includes/module.inc (833)
in module_invoke called at /.../includes/bootstrap.inc (1071)
in bootstrap_invoke_all called at /.../includes/bootstrap.inc (2343)
in _drupal_bootstrap_page_cache called at /.../includes/bootstrap.inc (2186)
in drupal_bootstrap called at /.../index.php (20)

Denis

fago’s picture

Status: Active » Closed (duplicate)

Please test the patch over at https://drupal.org/node/1019646#comment-7561299 and reports whether it works for you (there).