I get Fatal error: Call to undefined function filefield_get_field_list() in modules/imagefield/imagefield.module on line 137 when running cron, both from the web as well as from drush.
I get Fatal error: Call to undefined function filefield_get_field_list() in modules/imagefield/imagefield.module on line 137 when running cron, both from the web as well as from drush.
Comments
Comment #1
okokokok commentedSame with -dev version.
cron hadn't successfully completed for more than a week.
This is on a multi-site installation.
imagefield was only in the specific site's modules directory, problem resolved when moved to all/modules/
Comment #3
okokokok commentedThis might help others: Move both filefield and imagefiled to sites/all/modules.
Comment #4
okokokok commentedAppearing on another site, not sufficient to make sure *field is in sites/all/modules (and nothing in sites/example.com/modules).
Comment #5
quicksketchfilefield_get_field_list() is directly within filefield.module. There's no reason why this file wouldn't be loaded. I suggest you double-check that you don't have stray copies of filefield installed on your server. Check the "system" database table to see which version of FileField is being loaded (look in the "filepath" column).
Comment #6
okokokok commentedI upgraded, problem still there.
Problem was fixed after disabling and re-enabling FileField.
Comment #7
okokokok commentedI think I was too fast, this problem is still occurring. system table looks but somehow drush sm doesn't show a version number for filefield.
Comment #8
okokokok commentedWith some more fiddling around... The problem was that content_access was not defined, which is freaking weird as well.
I added return false to filefield_view_access(); ran cron once, then removed return false and now cron seems to be running fine again...
Comment #9
quicksketchCheck to make sure you don't have multiple copies of modules within your Drupal installation. This can be particularly confusing if you're running Acquia Drupal (which puts modules directly in /modules instead of /sites/all/modules) or if you've renamed previous copies of modules to back up directories like cck.bak or sites/all/modules/backups or something like that. Drupal will find modules no matter where you put them if they're anywhere in a modules directory.