As in this comment, I added a relationship for "Content: [Label] (field_[name_of_field)" to have acces to [filepath] token to display just the file path as a field in Views.

However, when I click on this new "File: Path" field, I get a pop-up error "An error occurred at /admin/build/views/ajax/config-item/jobs/page_1/field/filepath." And then the swirly starts spinning and nothing happens. So I can't edit the "File: Path" field's label or settings.

Any ideas?

Many thanks.

Comments

quicksketch’s picture

Thanks, I've noticed this from time to time also, but I had thought it was caused by using the development version of Views. Looks like this is a problem in the 2.3 version of Views also.

I could reproduce this using the steps you described, then by using Firebug I looked at the AJAX request to see what the actual error was:

Fatal error: Call to a member function get_handlers() on a non-object in /Users/nate/Sites/drupal6/sites/all/modules/views/handlers/views_handler_field.inc on line 252

Then I took a look over in the Views issue queue, looks like FileField isn't the only module having this trouble: See #380560: Fatal error: Call to a member function get_handlers().

As a work-around, you can just reload the page after getting this error. The new field will be added regardless of the error, and then you can edit your view right where you left off.

ellanylea’s picture

Status: Active » Closed (fixed)

Thanks!

The patch from http://drupal.org/node/380560#comment-1299602 worked.