Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
The automated tester is currently failing with the following
registration_convert_form_settings
exception: [Notice] Line 920 of sites/all/modules/registration/includes/registration.forms.inc:
Undefined index: open_date_token
exception: [Notice] Line 921 of sites/all/modules/registration/includes/registration.forms.inc:
Undefined index: close_date_token
This is because the Token module is not present so $values['scheduling']['open_date_token']
and $values['scheduling']['close_date_token']
are both undefined. To fix this, we should probably remove those keys from the array and add them via
if (module_exists('token')) {
$fields['open_date_token'] = $values['scheduling']['open_date_token'];
$fields['close_date_token'] = $values['scheduling']['close_date_token'];
}
Comment | File | Size | Author |
---|---|---|---|
#4 | undefined-index-2903034-4.patch | 895 bytes | RedEight |
#2 | undefined-index-2903034-1.patch | 719 bytes | RedEight |
Comments
Comment #2
RedEight CreditAttribution: RedEight at 95Visual commentedComment #3
RedEight CreditAttribution: RedEight at 95Visual commentedComment #4
RedEight CreditAttribution: RedEight at 95Visual commentedI was having issues with my setup which DID have tokens but those indexes still weren't present. Added a check to ensure they are present.
Comment #5
gcbGood catch, thanks!