I followed the instructions to install/configure the taxonomy context module. I enabled the modeule, checked the settings and then enabled the blocks. It showed up for a little bit, then I noticed that the non-admin accounts couldn't see it, then when I logged back in with my admin user, it couldn't see the blocks either anymore. Any idea what could be wrong?
Andrew Beaupre
www.gonzotravel.net
gozotravel@1337.ca
Comments
Comment #1
(not verified) commentedTurns out the context blocks just aren't showing up on the main page. If you go into the story section, the'll show up along with the other context blocks i've defined.
Andrew Beaupre
www.gonzotravel.net
gozotravel@1337.ca
Comment #2
Uwe Hermann commentedComment #3
handelaar commentedStill broken in 4.6 - changing title to better reflect what the issue's about.
Problem: Blocks do appear for non-admin users, but are empty.
Comment #4
handelaar commentedAnd now the answer:
Taxonomy_context checks for a "View" permission, but provides no hook to allow site admins to set it.
Comment #5
eyos commentedI'm having the same issue. In which part of the module code is checked for this permission? As a quick fix, I would like simply like to disable the check.
Comment #6
nedjoThere is no permission check for the block. The "view" option in a
_blockhook is not a permission but an argument passed in by Drupal on calling the hook.Keep in mind that there is a separate block for each vocabulary. The only filtering done is that the block isn't displayed if the current term or node being viewed isn't assigned to the vocabulary being viewed.
After reviewing the code, I don't think this can have to do with permissions. Likely you are viewing pages/categories not in the block's vocabulary.
Comment #7
eyos commented"Likely you are viewing pages/categories not in the block's vocabulary."
That doesn't explain why admin users are able to see the blocks, but non-admin users aren't. As far as I'm able to see, I've not restrict the block to specific content types.
Comment #8
eyos commented"Likely you are viewing pages/categories not in the block's vocabulary."
That doesn't explain why admin users are able to see the blocks, but non-admin users aren't. As far as I'm able to see, I've not restrict the block to specific content types.
Comment #9
nedjoOkay. The issue may have to do with taxonomy or node-level security. I'll take another look.
Comment #10
matias commentedI have the same issue and tracked down the problem to the function taxonomy_context_show_nodes in the file taxonomy_context.module
As a quick fix I just comment the line 451
// _node_access_join_sql() .
I guess this have to do with the issue described in
http://drupal.org/node/20121
Comment #11
nedjoThanks. The issue is that I've misused the
_node_access_join_sql()function, which shouldn't be called directly but instead (as of 4.6) is provided via thedb_rewrite_sql()call. I'll fix this when I get a sec.Comment #12
nedjoNow fixed.
Comment #13
(not verified) commented