I am building an exposed filter dynamically. When the value is changed the ajax form callback is called to rebuild the form, but it gives error.
The form field to which the ajax callback is attached is a select field.. The error is
Call to a member function exposed_form_validate() on a non-object .
I have looked into the error and found that the
code is called on an object and $exposed_form_plugin is not being passed as an object. The variable gets its value from $form_state['exposed_form_plugin']. So i have induced that $form_state is definitely not an object. What am i doing wrong that the form_state is not being passed as object?