I was creating a view with Users, where the users have custom fields through the Field API, like "firstname" and "lastname" and I was using them just fine while creating the view, but as soon as I saved the view, and then tried to edit the view, I was no longer able to access the custom fields, just the User fields.

The view itself displays the custom fields, just fine, but I can't add or sort or filter by those custom fields anymore.

I'll be glad to post the export of the view, if that would help. I apologize if this is something already in the queue, I searched around for it.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

shendric’s picture

Just to add possible data, I can clone the view, and when I do, I can access the other fields, as expected. So, I can work around it for now, by cloning, updating the view, and them importing into the original and overwriting.

obliquely’s picture

This may be the same as the issue identified under:

As a workaround, try disabling Views caching (in the Views settings under the Advanced tab) while you are editing / configuring the View. This may bring back the missing fields. You can re-enable the caching when your edits are done.

shendric’s picture

Interesting, that seems to be a good workaround. Much quicker than mine, certainly.

Thanks!

rgchi’s picture

Issue summary: View changes

#1 - shendric ~ I can't believe this is still an issue, but I wanted to pass along a thank you for this suggestion (cloning). This saved me a LOT of headache this morning. Our production system was hiccuping this morning! Anyways, many thanks.

$ drush pml | grep webform
 Webform         Webform (webform)                                           Module  Enabled        7.x-3.21       
 Webform         Webform Phone Number (webform_phone)      Module  Enabled        7.x-1.21       
 Webform         Webform Share (webform_share)                      Module  Enabled        7.x-1.2        
 Webform         Webform Validation (webform_validation)         Module  Not installed  7.x-1.1  
babusaheb.vikas’s picture

I think no need to cloning, updating the view, and then importing into the original and overwriting

Instead You can follow two simple steps:--

  1. 1) Go here Home » Administration » Structure » Views » Settings OR open /admin/structure/views/settings/advanced
  2. 2) Enable the checkbox "Disable views data caching" and click on "Save configuration" button.

You can check attached image for reference.