Closed (duplicate)
Project:
Taxonomy Access Control
Version:
7.x-1.0-rc1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Jan 2012 at 12:21 UTC
Updated:
14 Mar 2012 at 11:54 UTC
I noticed errors in my syslog during cron runs:
Including the node.module file fixes this issue
function taxonomy_access_shutdown() {
// Update any affected nodes.
<strong>module_load_include('inc', 'node', 'node.module');</strong>
$affected_nodes = taxonomy_access_affected_nodes();
</>
These are the error messages:
<code>
[Mon Jan 30 15:10:02 2012] [error] [client 127.0.0.1] PHP Stack trace:
[Mon Jan 30 15:10:02 2012] [error] [client 127.0.0.1] PHP 1. {main}() /var/www/devtrac72/devtrac/cron.php:0
[Mon Jan 30 15:10:02 2012] [error] [client 127.0.0.1] PHP 2. drupal_bootstrap() /var/www/devtrac72/devtrac/cron.php:14
[Mon Jan 30 15:10:02 2012] [error] [client 127.0.0.1] PHP 3. _drupal_bootstrap_page_cache() /var/www/devtrac72/devtrac/includes/bootstrap.inc:2107
[Mon Jan 30 15:10:02 2012] [error] [client 127.0.0.1] PHP 4. _drupal_shutdown_function() /var/www/devtrac72/devtrac/includes/bootstrap.inc:0
[Mon Jan 30 15:10:02 2012] [error] [client 127.0.0.1] PHP 5. call_user_func_array() /var/www/devtrac72/devtrac/includes/bootstrap.inc:3270
[Mon Jan 30 15:10:02 2012] [error] [client 127.0.0.1] PHP 6. taxonomy_access_shutdown() /var/www/devtrac72/devtrac/includes/bootstrap.inc:0
[Mon Jan 30 15:10:02 2012] [error] [client 127.0.0.1] PHP 7. taxonomy_access_affected_nodes() /var/www/devtrac72/devtrac/sites/all/modules/taxonomy_access/taxonomy_access.module:531
[Mon Jan 30 15:15:01 2012] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function node_access_needs_rebuild() in /var/www/devtrac72/devtrac/sites/all/modules/taxonomy_access/taxonomy_access.module on line 598
[Mon Jan 30 15:15:01 2012] [error] [client 127.0.0.1] PHP Stack trace:
[Mon Jan 30 15:15:01 2012] [error] [client 127.0.0.1] PHP 1. {main}() /var/www/devtrac72/devtrac/cron.php:0
[Mon Jan 30 15:15:01 2012] [error] [client 127.0.0.1] PHP 2. drupal_bootstrap() /var/www/devtrac72/devtrac/cron.php:14
[Mon Jan 30 15:15:01 2012] [error] [client 127.0.0.1] PHP 3. _drupal_bootstrap_page_cache() /var/www/devtrac72/devtrac/includes/bootstrap.inc:2107
[Mon Jan 30 15:15:01 2012] [error] [client 127.0.0.1] PHP 4. _drupal_shutdown_function() /var/www/devtrac72/devtrac/includes/bootstrap.inc:0
[Mon Jan 30 15:15:01 2012] [error] [client 127.0.0.1] PHP 5. call_user_func_array() /var/www/devtrac72/devtrac/includes/bootstrap.inc:3270
[Mon Jan 30 15:15:01 2012] [error] [client 127.0.0.1] PHP 6. taxonomy_access_shutdown() /var/www/devtrac72/devtrac/includes/bootstrap.inc:0
[Mon Jan 30 15:15:01 2012] [error] [client 127.0.0.1] PHP 7. taxonomy_access_affected_nodes() /var/www/devtrac72/devtrac/sites/all/modules/taxonomy_access/taxonomy_access.module:531
Comments
Comment #1
xjmHi @batje, thanks for reporting this. I think this bug has been fixed in #1313912: undefined function node_access_needs_rebuild() on cached anonymous requests. Could you try either applying the patch from that issue or using 7.x-dev and seeing if that resolves the problem? Thanks!
Comment #2
batje commentedyes, that was it. applied the patch and it worked.