How can I find out and fix this error in Drupal - Call to undefined function views_build_view()
Whenever I run cron.php it hangs with the error
Fatal error: Call to undefined function views_build_view() in path-to-my-install/includes/common.inc(1537) : eval()'d code on line 3
The site has been up for some time but has multiple admin / authors and no one knows what happened.
How can I narrow down what could be causing this I've looked through tons of files and even raw database fields but still nothing that I can see would be causing this.

Replies
debugging
I had this happen once and it turned out to be some php in a page that had been abandoned - was published but no real link or content, during cron the search indexer was triggering it.
I temporarily altered common.inc to give me a bit more info on what was causing it
Spits out a nice bit of info on what was being evaled
line 1628 of common.inc /includes/common.inc
function drupal_eval($code) {
global $user;//just so it displays for the main admin user
if ($user->uid == 1){
debug_print_backtrace();
}
the part that helped me
#5 node_prepare(stdClass Object ([nid] => 1253,[type] => page,[language] => en,[uid] => 1,[status] => 1,[created] => 1241737625,[changed] => 1241737625,[comment] => 0,[promote] => 0,[moderate] => 0,[sticky] => 0,[tnid] => 0,[translate] => 0,[vid] => 1250,[revision_uid] => 1,[title] => View Topics,[body] => ,[teaser] => ,[log] => ,[revision_timestamp] => 1241737625,[format] => 4,[name] => Admin,[picture] => ,[data] => a:1:{s:18:"admin_compact_mode";b:1;},[path] => content/tester,[pages] => Array ([0] => ),[page_count] => 1,[print_display] =>
Post new comment