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.
Problem/Motivation
When we create the feature it works great on the site we created it. When we enable the feature on another site, we get this error along with a few others, all complaining about undefined indexes. The timeline shows up perfectly below the error message.
After re-saving the view, it does not complain about anything. All of the error message are gone. If I revert the view, then the errors comes back.
Comment | File | Size | Author |
---|---|---|---|
#6 | 2549435-6.patch | 3.17 KB | dcam |
#5 | 2549435-5.patch | 3.68 KB | dcam |
Comments
Comment #2
lily.yan CreditAttribution: lily.yan commentedThe style plugin sets default options values, in options_definition. Using $this->view->style_option['X'] it does not load the default values, when the view is not in the database. You have to use style_plugin->option['X']. Attached is patch to fix.
Comment #3
WorldFallz CreditAttribution: WorldFallz commentedI'm happy to make this change to fix the feature providing it doesn't adversely affect the non feature implementation. I just need to test it first. Unless some others can report it tests ok without the feature as well.
Comment #4
Liam MorlandComment #5
dcam CreditAttribution: dcam as a volunteer commentedRerolled #2.
Comment #6
dcam CreditAttribution: dcam as a volunteer commentedChecking to see if the problems will be solved with $this instead of the circularly-referential $this->view->style_plugin.
Comment #8
dcam CreditAttribution: dcam as a volunteer commentedCommitted #6. Thanks @lily.yan!