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.
Install geshifilter.
Go to admin/config/content/formats/geshifilter/languages/disabled
Choose one or more language to add.
After we save get this notices, but the languages are saved.
Notice: Undefined index: tags in Drupal\geshifilter\Form\GeshiFilterLanguagesForm->validateForm() (line 83 of /home/ubuntu/workspace/public_html/modules/custom/geshifilter/src/Form/GeshiFilterLanguagesForm.php).
Notice: Undefined index: tags in Drupal\geshifilter\Form\GeshiFilterLanguagesForm->validateForm() (line 92 of /home/ubuntu/workspace/public_html/modules/custom/geshifilter/src/Form/GeshiFilterLanguagesForm.php).
Notice: Undefined index: cpp in Drupal\geshifilter\Form\GeshiFilterLanguagesForm->validateForm() (line 92 of /home/ubuntu/workspace/public_html/modules/custom/geshifilter/src/Form/GeshiFilterLanguagesForm.php).
Notice: Undefined index: java in Drupal\geshifilter\Form\GeshiFilterLanguagesForm->validateForm() (line 92 of /home/ubuntu/workspace/public_html/modules/custom/geshifilter/src/Form/GeshiFilterLanguagesForm.php).
Notice: Undefined index: php in Drupal\geshifilter\Form\GeshiFilterLanguagesForm->validateForm() (line 92 of /home/ubuntu/workspace/public_html/modules/custom/geshifilter/src/Form/GeshiFilterLanguagesForm.php).
Notice: Undefined index: cpp in Drupal\geshifilter\Form\GeshiFilterLanguagesForm->validateForm() (line 79 of /home/ubuntu/workspace/public_html/modules/custom/geshifilter/src/Form/GeshiFilterLanguagesForm.php).
Notice: Undefined index: java in Drupal\geshifilter\Form\GeshiFilterLanguagesForm->validateForm() (line 79 of /home/ubuntu/workspace/public_html/modules/custom/geshifilter/src/Form/GeshiFilterLanguagesForm.php).
Notice: Undefined index: php in Drupal\geshifilter\Form\GeshiFilterLanguagesForm->validateForm() (line 79 of /home/ubuntu/workspace/public_html/modules/custom/geshifilter/src/Form/GeshiFilterLanguagesForm.php).
Notice: Undefined index: tags in Drupal\geshifilter\Form\GeshiFilterLanguagesForm->submitForm() (line 126 of /home/ubuntu/workspace/public_html/modules/custom/geshifilter/src/Form/GeshiFilterLanguagesForm.php).
This is because the default languages, if we save again, we get warnings about every new language we add.
Comments
Comment #2
yukare CreditAttribution: yukare commentedThis was a two lines fix. We need to add all languages from config, as the form have only disabled languages, but we test for all.
Comment #4
yukare CreditAttribution: yukare commented