Think there's an conflict with the flag module when doing explain views.
PHP Fatal error: Call to a member function get_views_info() on a non-object in /var/www/html/mtrx/sites/all/modules/flag/includes/flag_handler_field_ops.inc on line 67
Which is $info = $flag->get_views_info();
Part of this function:
/**
* Override base ::query(). The purpose here is to make it possible for the
* render() method to know two things: what's the content ID, and whether
* it's flagged.
*/
function query() {
$parent = $this->get_parent_relationship();
$flag = $this->get_flag();
$info = $flag->get_views_info();
// Find out if the content is flagged. We can't just peek at some field in
// our loaded table because it doesn't always reflect the user browsing the
// page. So we explicitly add the flag_content table to find this out.
$join = new views_join();
$join->construct('flag_content', $info['views table'], $info['join field'], 'content_id');
$join->extra[] = array(
'field' => 'fid',
'value' => $flag->fid,
'numeric' => TRUE,
);
if (!$flag->global) {
$join->extra[] = array(
'field' => 'uid',
'value' => '***CURRENT_USER***',
'numeric' => TRUE,
);
}
$flag_table = $this->query->add_table('flag_content', $parent, $join);
$this->aliases['is_flagged'] = $this->query->add_field($flag_table, 'content_id');
// Next, find out the content ID. We can't add_field() on this table
// (flag_content), because its content_id may be NULL (in case no user has
// flagged this content, and it's a LEFT JOIN). So we reach to the parent
// relationship and add_field() *its* content ID column.
$left_table = $this->view->relationship[$this->options['relationship']]->table_alias;
$this->aliases['content_id'] = $this->query->add_field($left_table, $info['join field']);
}
Comments
Comment #1
dalinWhat versions are you using? I have no issues with
Flag 6--1-3
Views 6--2-11
DB Tunner 6--1 head
Comment #2
drewmacphee commentedHmm
Flag 6--1-3
Views 6--2-11
DB Tunner 6.x 1 dev aug 16th
Comment #3
mikeytown2 commentedsounds related to this lovely issue
#806244: Call to a member function get_option() on a non-object in views/includes/view.inc on line 1904
whats your php version?
File in question extends the views object
http://drupalcode.org/viewvc/drupal/contributions/modules/flag/includes/...
Comment #4
drewmacphee commentedphp 5.2.10