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
PHP Notice "Notice: Undefined offset: 1 in Drupal\login_redirect_per_role\Form\RedirectURLSettingsForm->validateForm() (line 121 of modules/contrib/login_redirect_per_role/src/Form/RedirectURLSettingsForm.php)."
Proposed resolution
Add isset() to avoid notice
Remaining tasks
Supply patch
User interface changes
None
API changes
None
Data model changes
None
Release notes snippet
Fixed php notice on settings page.
Comment | File | Size | Author |
---|---|---|---|
#2 | login-redirect-per-role-php-notice-3036707-2.patch | 1.17 KB | scott_euser |
Redirect URL Settings Form.png | 2.12 MB | scott_euser |
Comments
Comment #2
scott_euser CreditAttribution: scott_euser as a volunteer and at Soapbox Communications Ltd commentedComment #3
dakruchko CreditAttribution: dakruchko at EPAM Systems commentedPlease provide steps to reproduce. I am not facing with this issue
Comment #4
joco_sp CreditAttribution: joco_sp commentedThe steps are:
1. install module,
2. add the links like scott_euser shows in the image,
3. click on Save configuration,
4. error occurs.
I wanted to write a patch, but scott_euser already did it, so I applied it and it is working. I tested and applied it on the 8.x-1.2 version of the module, but I see that the same code is on the dev version, so it should also work on it.
Comment #6
AntonnaviComment #7
pratik.mehta19 CreditAttribution: pratik.mehta19 as a volunteer commented