Closed (fixed)
Project:
Droplist Filter
Version:
5.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
18 Sep 2008 at 13:28 UTC
Updated:
1 Jan 2009 at 20:48 UTC
When trying to use Droplist filter for an anonymous user (ie create a node) I get this error:
Fatalerror: Call to undefined function: user_access() in ...sites/all/modules/droplist_filter/droplist_filter.module on line 134
It works perfectly for authorized users.
Comments
Comment #1
jchan commentedSeems like this happens only when caching is turned on. Will try to figure something out.
Comment #2
yngvewb commentedGood!
Comment #3
jchan commentedThis should be fixed now in 5.x-1.3. The problem was that when caching is enabled, not all the Drupal API functions are available during hook_init(). Solved it by running the code during hook_menu() instead.
Thank you yngvewb, for finding the bug.
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #5
blockedmind commentedhow can i disable caching using phpmyadmin?
Comment #6
jchan commentedYou don't need to do that. Just log in to Drupal as an admin, and go to:
Administer > Site configuration > Performance
Comment #7
blockedmind commentedi did not ask what i need not. how can i disable caching using phpmyadmin?
Comment #8
jchan commentedblockedmind, what you are asking is outside the scope of Droplist Filter. I'm sorry that I cannot help you.