I get the following error upon installing the latest dev version of Contact.
Fatal error: Cannot redeclare contact_views_api() (previously declared in /home7/xxx/public_html/sites/all/modules/contact/contact.module:285) in /home7/xxx/public_html/sites/all/modules/views/includes/handlers.inc on line 1390
below is the section starting at line 280 causing the error in contact
/**
* Implements hook_views_api().
*
function contact_views_api() {
return array(
'api' => 2,
'path' => drupal_get_path('module', 'contact'),
);
}
and here is line 1390 from views handlers.inc
function contact_views_api() { return views_views_api(); }
Comments
Comment #1
Dave ReidYou have to update to the latest views 6.x-2.x. See #872354: Views field "User: Link to contact page" not shown and #1104404: Allow core replacement modules to implement hook_views_api.
Comment #2
NROTC_Webmaster CreditAttribution: NROTC_Webmaster commentedI have the latest views 6.x-2.12 but I didn't find that patch when I was searching. Thank you for clearing this up.
Comment #4
beliveonit CreditAttribution: beliveonit commentedi have the same error. and my whole site doesn't work. when i try to open any page, it shows the same error. the member above able to solve his problem with patch if i am not wrong. but i didn't understand what he was trying to say. what is patch and where can i get it? please help
thanks.
Comment #5
gpk CreditAttribution: gpk commentedMake sure you are using the latest version of the relevant branch of the Views module.