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

jchan’s picture

Assigned: Unassigned » jchan

Seems like this happens only when caching is turned on. Will try to figure something out.

yngvewb’s picture

Good!

jchan’s picture

Status: Active » Fixed

This 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.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

blockedmind’s picture

Status: Closed (fixed) » Postponed (maintainer needs more info)

how can i disable caching using phpmyadmin?

jchan’s picture

You don't need to do that. Just log in to Drupal as an admin, and go to:
Administer > Site configuration > Performance

blockedmind’s picture

i did not ask what i need not. how can i disable caching using phpmyadmin?

jchan’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

blockedmind, what you are asking is outside the scope of Droplist Filter. I'm sorry that I cannot help you.