Since upgrade the site is broken with the following message:

Parse error: syntax error, unexpected ';', expecting ')' in /home/ablaze/public_html/sites/all/modules/civicrm/drupal/modules/views/civicrm/civicrm_handler_relationship_relationship.inc on line 58

Line 58 looks as though it is properly closed and removing the semi-colon just introduces another error.

As an emergency repair I've dropped in the file from the last version and it is working again.

Differences in files:

Line 25


$options = array(0 => 'Any');


$options = array();

Line 53

new line inserted:

 '#multiple' => TRUE,

Murphey's law being what it is I've broken my develoipment environment so can't work out anything else for a while.

  • I don't have a solution, but I do have some questions that might or might not point us in the right direction: Do you get this error for every view, or are some working? If some work, what are the differences between the ones that work and the ones that don't? What versions of civi did you upgrade from and to? And lastly, which version of views are you using?
    – naomisl
    Commented Jan 27, 2016 at 18:13
  • Thanks naomisi - having any views that call this code breaks the whole site. I am in the process of setting up my development environment again, though only in between other tasks - I'll experiment with disabling certain views - I suspect it is the ones that use Views relationships on civicrm relationships - views version 7x.3.13 - upgraded from 4.6.10 Commented Jan 28, 2016 at 17:15

1 Answer 1


I just hit this error, too. It's in 4.6.11 and 4.6.12. It appears to be fixed in 4.7.1.

Line 56 in the file is the culprit. It should be

'#description' => t('Choose to limit this relationship to one or more specific types of CiviCRM relationship.'),

Here's the commit that fixes it.

  • Thank you SO much for posting this. This error was driving me nuts. Commented Feb 7, 2016 at 6:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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