Taken from http://drupal.org/node/73245

how does this work? I dont see any extra fields (I was expecting to see
profile fields) under arguments or filters when I add a view

And

What it is I'm asking: How do I get profile Fields to appear as an option in the views "fields" drop-down?

Comments

merlinofchaos’s picture

Title: Having trouble with Views and profile.module » Views is unable to tell when profile.module adds new fields

Ok, so the problem here is that profile.module has no hook which Views can use to know when profile fields have changed.

This means that you need to clear the cache in order for Views to see profile fields after you modify them.

This was actually addressed in the original post, but there IS a lot of text there and I sympathize that it might be difficult to figure that out amongst the rest of the chatter. Unfortunately this is a weakness of profile.module and there isn't anything Views can do about it.

The easiest way to clear the Views' cache is to go to your administer >> modules page and click 'submit'. Views will see that and know to clear the cache.

jenlampton’s picture

well, replacing the views_profile.inc file worked (without a clear cache) on my dev version (http://crmguru.initsoft.com/all_articles) but on the live site replacing the file on the server, clearing the cache, and anything else I can think of has no effect on my options in the drop-down, so I can't change my view (http://www.customerthink.com/all_articles). I even tried viewing the site in IE, clearing the cache, etc, but no dice. Ideas?
-Jen

jenlampton’s picture

nevermind, it's working now... I didn't change anything else, it must be magic or something.

catch’s picture

Status: Active » Closed (fixed)