Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | i18nviews-enable-variable-comment.patch | 495 bytes | ilia.ivanov |
Comments
Comment #1
ilia.ivanov CreditAttribution: ilia.ivanov commentedI have no idea why this error occurs and add this patch as a temporary solution.
Comment #2
ilia.ivanov CreditAttribution: ilia.ivanov commented