After installing, viewing any page managed by the module views I get the following error
Undefined variable: view_contains_nodes in permissions_by_term_views_post_execute.....
After installing, viewing any page managed by the module views I get the following error
Undefined variable: view_contains_nodes in permissions_by_term_views_post_execute.....
Comments
Comment #2
dblade1975 commentedGot the same issue. Tested 1.0 - 1.2
Comment #3
jepster_Sorry, I cannot reproduce it. I was trying the same approach with PHP 5.6.7 and PHP 5.3.29. Please post at least the exact error output. Don't shorten it with dots at the end. So I can learn about the line and go to it. Which Drupal 7 version do you have? Are you on the latest one?
Comment #4
jepster_Closing this issue, because it cannot be reproduced.
Comment #5
dblade1975 commentedGet this message after installing 1.0 - 1.2 and latest dev. Drupal 7.40
NOTICE: UNDEFINED VARIABLE: VIEW_CONTAINS_NODES IN PERMISSIONS_BY_TERM_VIEWS_POST_EXECUTE() (LINE 277 OF /HOME/DAVICKSE/PUBLIC_HTML/SITE/TAFFEL_DRUPAL/SITES/ALL/MODULES/PERMISSIONS_BY_TERM/PERMISSIONS_BY_TERM.MODULE).
NOTICE: UNDEFINED VARIABLE: VIEW_CONTAINS_NODES IN PERMISSIONS_BY_TERM_VIEWS_POST_EXECUTE() (LINE 277 OF /HOME/DAVICKSE/PUBLIC_HTML/SITE/TAFFEL_DRUPAL/SITES/ALL/MODULES/PERMISSIONS_BY_TERM/PERMISSIONS_BY_TERM.MODULE).
Comment #6
dblade1975 commentedComment #7
verblet commentedProblem is caused by $view_contains_nodes not being correctly initialised.
Update permissions_by_term.module (line 273) from:
to:
I don't have the time to make a patch right now but hopefully this helps!
Comment #8
dblade1975 commented#7 solved it! Thanks!
Comment #10
jepster_Thanks for the suggested code. I've fixed this in the latest bug fix release version 1.3 (https://www.drupal.org/node/2325357/release). Additionally it's part of the latest dev-version. Closing this issue.