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.
Spent way too much time debugging why my site broke
Turns out it was the upgrade to Features 7.x-2.0-beta1 from 7.x-1.0 - even without changing the features created in 1.0
seems that
The 7.x-2.x version is NOT completely compatible with feature exports created from the 7.x-1.x version.
Issue seemed to be with i18n and errors thrown in core includes/language.inc
I'm handing off this project, so rolling back to Git commit using 7.x-1.0 worked
didn't try 7.x-2.x-dev
Comments
Comment #1
decibel.places CreditAttribution: decibel.places commentedoh yeah, found a copy of the error messages:
• Warning: Attempt to assign property of non-object in template_preprocess_html() (line 2466 of .../docroot/includes/theme.inc).
• Warning: Attempt to assign property of non-object in language_initialize() (line 396 of .../docroot/includes/language.inc).
• Warning: Attempt to assign property of non-object in language_initialize() (line 396 of .../docroot/includes/language.inc).
• Warning: Attempt to assign property of non-object in language_initialize() (line 396 of .../docroot/includes/language.inc).
• Warning: Attempt to assign property of non-object in template_preprocess_page() (line 2537 of .../docroot/includes/theme.inc)
oh yeah, using Drupal 7.15 (yeah we are upgrading to 7.21 for Production)
Comment #2
mpotter CreditAttribution: mpotter commentedI am not able to reproduce any problem with i18n (at least the latest versions in the latest version of Drupal). The 2.x branch of Features only changes the UI, but there have also been several bug fixes committed so it's possible that one of them is responsible for the change. But you'll need to post a step-by-step detailed procedure for reproducing this. And I won't be able to try this on an old Drupal site, sorry.
Comment #3
Greg BoggsI just ran into the same issue trying to deploy translations using features 2