I'm using Drupal 7 with views 3.

I have defined a custom handler for a field and is working on my development machine. When I revert same view in live environment I am getting issue of broken handler, even the handler class s present.

Thanks in advance for your help.

  • Are your module with custom handler enabled? Are you using the same version of Views on both sites? Try to flush caches twice.
    – kalabro
    May 23 '12 at 11:09
  • Yes the module is enabled and everything is working with out this field handler. I am using views 3 in both dev and demo environments. I have cleared cache many times and even rebuild registry.
    – Umar
    May 23 '12 at 11:37
  • 1
    Is the path to the file containing the handler's code relative ? By any means, it would help to see the code.
    – Countzero
    May 23 '12 at 14:34

I have fixed this issue by using hook_views_data_alter(). Earlier the custom handler for the select field was defined in hook_views_data().

  • where would change this piece of code Umar?
    – user23427
    Nov 11 '13 at 16:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.