Closed (duplicate)
Project:
Rules
Version:
7.x-2.3
Component:
Rules Core
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Mar 2011 at 21:33 UTC
Updated:
11 Jul 2013 at 09:09 UTC
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
| Comment | File | Size | Author |
|---|---|---|---|
| Green Dragon Jewelry - Jewelry for Renaissance, Gothic, Fantasy, and Mythology enthusiasts..png | 609.36 KB | JohnBarner |
Comments
Comment #1
JohnBarner commentedAssuming 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.
Comment #2
fagoI remember having this fixed already, please try testing the latest dev snapshot. If the problem still appears, please just re-open.
Comment #3
enochRoot commentedI 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
Comment #4
denix commentedsame 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
Comment #5
fagoPlease test the patch over at https://drupal.org/node/1019646#comment-7561299 and reports whether it works for you (there).