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)

Comments

michiellucas created an issue. See original summary.

michiellucas’s picture

StatusFileSize
new580 bytes

fix for notice multilingual

michiellucas’s picture

Issue summary: View changes

  • Pol committed c598b48 on 8.x-1.x authored by michiellucas
    Issue #2822548 by michiellucas: Notices in multilingual situations
    
pol’s picture

Status: Active » Fixed

Thanks !

michiellucas’s picture

Status: Fixed » Active

First 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?

michiellucas’s picture

StatusFileSize
new577 bytes

Fix for second notice in attachment

  • Pol committed e2c1a5c on 8.x-1.x
    Follow up issue #2822548.
    
pol’s picture

Status: Active » Fixed

I think you patch is wrong.

Could you please test the latest version and let me know if the last commit fix this ?

Thanks.

michiellucas’s picture

Pol, patch 1 is not included in 8.1.2

https://www.drupal.org/files/issues/notices_multilingual-2822548-1.patch

can you please apply

michiellucas’s picture

Status: Fixed » Needs review
dark05’s picture

Hi,

Have the same error, could you find a solution ?

pol’s picture

Status: Needs review » Fixed

Hello,

I've published version 8.x-1.3.
Can you test with that version and report back?

Thanks.

dark05’s picture

Good job!

Thanks

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.