Closed (fixed)
Project:
FileField
Version:
6.x-3.9
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Jan 2012 at 20:20 UTC
Updated:
31 Jan 2012 at 18:47 UTC
This issue stops cron operations immediately - "Cron run exceeded the time limit and was aborted."
I discovered this error in my web logs while indexing my site with Apache Solr. I suspect FileField and Content Access don't play nice with Solr?
Error from logs:
PHP Fatal error: Call to undefined function content_access() in sites/modules/contrib/filefield/filefield.module on line 570
Code that appears to be in question:
function filefield_view_access($field_name, $node = NULL) {
if (!content_access('view', content_fields($field_name), NULL, $node)) {
return FALSE;
}
// No content permissions to check, so let's fall back to a more general permission.
return user_access('access content') || user_access('administer nodes');
}
Pressflow 6.22
PHP/5.2.17
Apache Solr 6.x-1.6 (latest)
Filefield 6.x-3.9
Content Access 6.x-1.2 (latest)
Since this is happening during cron run, I can't see if this is a content problem or not. I've already searched the database for php in my nodes and blocks so thats doesn't appear to be the problem.
Any help with troubleshooting or a patch for this would be greatly appreciated.
Comments
Comment #1
quicksketchThe content_access() function is actually directly in content.module, as far as I know, so there's no reason it shouldn't be there. Are you running the latest version of CCK?
Comment #2
silverramtruck commentedYep that fixed, it was CCK. Unfortunately, that started a chain reaction of other modules that need updated, but oh well its fixed. Thanks!!!!!
Comment #3
silverramtruck commentedClosed - fixed
Comment #3.0
silverramtruck commentedadded issue stops cron info