I did an upgrade on a site and now I can't add fields to a View other than the META data type fields, such as Author or Date. The fields don't show in the list when I click Add. I have checked the Permissions and they seem to be OK.

There is an error: Notice: unserialize(): Error at offset 421 of 16415 bytes in views_db_object->load_row() (line 2251 of /var/www/alwri-drupal/html/Clone/sites/all/modules/views/includes/view.inc).

I would appreciate any help or clues you can offer!

Comments

renatog’s picture

Hi @nora-mcdougall, how are you?

I'm checking this error and I checked that function:

<?php
  function load_row($data) {
    $schema = drupal_get_schema($this->db_table);

    // Go through our schema and build correlations.
    foreach ($schema['fields'] as $field => $info) {
      $this->$field = empty($info['serialize']) ? $data->$field : unserialize($data->$field);
    }
  }
?>

Use Propertie $data->$field that should be okay in object.

For solving this error I recommend that update for the last version of Views and your Drupal Core project. After that, you can run update.php for executing all pending updates. It's ok now and it will work for you.

Best,

renatog’s picture

renatog’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.