I'm doing a Drupal upgrade. I have 7.15, and wanted to upgrade to latest Drupal 7 stable version. I started doing the upgrade to 7.16.

After the update I get this error (at the update.php page):

Notice: Undefined index: file_managed in views_handler_field_field->access() (line 127 of /home/sitio/public_html/sites/all/modules/views/modules/field/views_handler_field_field.inc).

The problem happens all the same even if I go straight to the latest version.

Haven't found this exact error before, even after search it though Google. It seems to be caused by Views.
I've tried upgrading Views to the latest version, and the error is still there.

I've also added in my .htaccess file this line, just in case it was related: php_value max_allowed_packet 500M

I've cheched the error line at the views_handler_field_field.inc, and this is what it's there:

<?php
/**
   * Check whether current user has access to this handler.
   *
   * @return bool
   *   Return TRUE if the user has access to view this field.
   */
  function access() {
    $base_table = $this->get_base_table();
    return field_access('view', $this->field_info, $this->definition['entity_tables'][$base_table]);
  }
?>

The 127 line is the return statement.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sibany’s picture

Hi,

i know its old issue topic...

public_html/sites/all/modules/views/modules/field/views_handler_field_field.inc

what the error indicate (means) that you have a field in Views is not active, that was removed from content type or profile ...

check you fields in the views and remove it you should see message in the view it self says something like this

SQLSTATE[42000]: Syntax error or access violation

in my case it was profile cck field that i removed...

i hop this help :)

Best Regards
M.sibany

jmuzz’s picture

Category: Support request » Bug report
FileSize
1001 bytes
95.08 KB

My site seems functional but this error is spamming my watchdog logs. It is affecting a field currently in use in my view. It is a field collection field with values being filtered via an exposed filter through a relationship. views_handler_field_field->get_base_table() is supposed to account for relationships by detecting them and setting the correct base table but in my case $this->options['relationship'] = 'none'; which is not correct as far as I can tell, and get_base_table() evaluates to 'node' instead of 'field_collection_item' as it should.

Attaching a screenshot of my exposed filter settings and a patch that fixes the issue for me. I think it would be better to get $this->options['relationship'] populated with the correct value so I'm not suggesting this be committed.

jmuzz’s picture

FileSize
1007 bytes