I have 2 notices using this module in a multilingual setup
Error message
Notice: Undefined index: default in Drupal\views\Plugin\views\PluginBase->setOptionDefaults() (line 182 of core/modules/views/src/Plugin/views/PluginBase.php).
Drupal\views\Plugin\views\PluginBase->setOptionDefaults(Array, Array) (Line: 138)
Drupal\views\Plugin\views\PluginBase->init(Object, Object, Array) (Line: 85)
Drupal\views\Plugin\views\row\EntityRow->init(Object, Object, Array) (Line: 813)
Drupal\views\Plugin\views\display\DisplayPluginBase->getPlugin('row') (Line: 122)
Drupal\views\Plugin\views\style\StylePluginBase->init(Object, Object, Array) (Line: 813)
Drupal\views\Plugin\views\display\DisplayPluginBase->getPlugin('style') (Line: 784)
Drupal\views\Plugin\views\display\DisplayPluginBase->usesFields() (Line: 2407)
Drupal\views\Plugin\views\display\DisplayPluginBase->validate() (Line: 2099)
Notice: Undefined property: Drupal\views_parity_row\Plugin\views\Entity\Render\TranslationLanguageRenderer::$langcodeAlias in Drupal\views_parity_row\Plugin\views\Entity\Render\TranslationLanguageRenderer->getLangcode() (line 23 of modules/contrib/views_parity_row/src/Plugin/views/Entity/Render/TranslationLanguageRenderer.php).
Drupal\views_parity_row\Plugin\views\Entity\Render\TranslationLanguageRenderer->getLangcode(Object) (Line: 50)
Drupal\views_parity_row\Plugin\views\Entity\Render\RendererBase->preRender(Array) (Line: 178)
Drupal\views\Plugin\views\row\EntityRow->preRender(Array) (Line: 432)
Drupal\views\Plugin\views\style\StylePluginBase->preRender(Array) (Line: 1495)
Drupal\views\ViewExecutable->render() (Line: 2391)
Drupal\views\Plugin\views\display\DisplayPluginBase->preview() (Line: 1649)
Drupal\views\ViewExecutable->preview('block_1') (Line: 99)
dataflow_article_get_related_articles(Object) (Line: 18)
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | notices_multilingual-2822548-7.patch | 577 bytes | michiellucas |
| #2 | notices_multilingual-2822548-1.patch | 580 bytes | michiellucas |
Comments
Comment #2
michiellucas commentedfix for notice multilingual
Comment #3
michiellucas commentedComment #5
polThanks !
Comment #6
michiellucas commentedFirst notice still active
Error message
Notice: Undefined index: default in Drupal\views\Plugin\views\PluginBase->setOptionDefaults() (line 182 of core/modules/views/src/Plugin/views/PluginBase.php).
You know what?
Comment #7
michiellucas commentedFix for second notice in attachment
Comment #9
polI think you patch is wrong.
Could you please test the latest version and let me know if the last commit fix this ?
Thanks.
Comment #10
michiellucas commentedPol, patch 1 is not included in 8.1.2
https://www.drupal.org/files/issues/notices_multilingual-2822548-1.patch
can you please apply
Comment #11
michiellucas commentedComment #12
dark05 commentedHi,
Have the same error, could you find a solution ?
Comment #13
polHello,
I've published version 8.x-1.3.
Can you test with that version and report back?
Thanks.
Comment #14
dark05 commentedGood job!
Thanks