Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When using views 4.7-cvstag and profile module with drupal 4.7-cvstag.
When a view is created and saved the field list from the profile is cached in the cache table. If the user changes fields or adds new fields in the profile module they do not appear in the views drop-down menus until the cache is cleared.
Saving the view, deleting the view does not help. New views have the same problem. Only clearing the cache table or uninstalling and reinstall the views module shows the new profile fileds.
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedSimply visiting the modules page and clicking submit should be enough to clear Views' cache. Beyond that, last I checked it's actually very hard to find a way to invalidate the cache when profile fields are added or changed. This kind of sucks.
Comment #2
eriksays CreditAttribution: eriksays commentedI don't know if this is related; however ---
I am using Views to search and filter users based on their profile settings.
However, new users are not showing up in the results page.
I try to fix by going in to Administer > Modules and hitting submit. no fix.
any suggestions on what may be happening here?
Comment #3
eriksays CreditAttribution: eriksays commentedyou can ignore my comment earlier.
discovered users were not showing up in views until they added content to the system (blog,image,etc.)
Comment #4
scroogie CreditAttribution: scroogie commentedThat is because Views is node based, you could use the usernode module to fix that.
Comment #5
HorsePunchKid CreditAttribution: HorsePunchKid commentedVersion bump; hoping this is appropriate. This bug still is affecting my Drupal 5.1 / Views 5.x-1.4-2rc1 site. At a minimum, some kind of link to wipe the cache and a suggestion for users to do that should be present.
Comment #6
merlinofchaos CreditAttribution: merlinofchaos commentedThe -dev version contains a link to wipe the cache, in fact.
There is a way to fix this for real using form_alter, but that doesn't work well with Views' philosophy unfortunately.
Comment #7
merlinofchaos CreditAttribution: merlinofchaos commentedI put in a test fix for this; will show up in 1.6-beta5
Comment #8
(not verified) CreditAttribution: commented