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

Dave Reid’s picture

NROTC_Webmaster’s picture

I 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

beliveonit’s picture

Priority: Normal » Major
Status: Closed (fixed) » Needs work

i 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.

gpk’s picture

Priority: Major » Normal
Status: Needs work » Closed (fixed)

Make sure you are using the latest version of the relevant branch of the Views module.