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.
Error
Notice: Undefined index: site_404 in navigation404_site_404_submit() (line 42 of navigation404.module).
Step to reproduce the error
- multilingual drupal with at least two language
- "Variable translation" enabled
- go to admin/config/regional/i18n/variable and check "Default 404" in "site information" tab
- go to admin/config/system/site-information click on the second language and try to submit the form
if you fill in site_404, the value is well saved.
Comment | File | Size | Author |
---|---|---|---|
#4 | navigation404-n1844830-4.patch | 517 bytes | DamienMcKenna |
#3 | navigation404-undefined_index_site_404-1844830-0.patch | 560 bytes | Asmon |
#2 | Undefined_index_site_404-1844830-1.patch | 560 bytes | Asmon |
Comments
Comment #1
dimitriseng CreditAttribution: dimitriseng commentedI had the same issue.
Comment #2
Asmon CreditAttribution: Asmon commentedHi,
here is a patch that avoid displaying error message.
Comment #3
Asmon CreditAttribution: Asmon commentedsorry but i made a mistake in the patch naming conventions so here is the patch with the good name
Comment #4
DamienMcKennaSimplified to just use if(empty()).
Comment #5
brentgThis patch works and looks clean.