We are using number of feature modules in our project. One of the features have i18nviews module dependency included. Installing site with drush si gives error :

PHP Fatal error:  Call to a member function init_display() on a non-object in views/plugins/views_plugin_localization.inc on line 139
Drush command terminated abnormally due to an unrecoverable error.                                                                                                      [error]
Error: Call to a member function init_display() on a non-object in views/plugins/views_plugin_localization.inc,
line 139

As I understand problem is in the .install file

function i18nviews_enable() {
  // enable i18nstrings as views translation method
  variable_set('views_localization_plugin', 'i18nstrings');
}

Site will install perfectly If I comment this varible setup. Also work fine if I remove dependency from the feature module and enable module manually after install.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ilia.ivanov’s picture

I have no idea why this error occurs and add this patch as a temporary solution.

ilia.ivanov’s picture

Status: Active » Needs review