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.
I'm currently using this module for a website I'm building, so far it works great. There is however one error that keeps coming back:
Notice: Undefined index: nl in _cck_signup_validate_signup_node() (line 104 in /opt/vvh/public_html/sites/all/modules/cck_signup/cck_signup.module).
This notice is displayed when someone signs up for an event. it is purely an notice, the module itself does work as expected. I did a quick investigation and couldn't find a solution, maybe I will investigate this later if no one comes up with a solution.
Comments
Comment #1
Robert_W CreditAttribution: Robert_W commentedAfter doing some investigation (the issue annoyed me :P), I found out that this error is related to the language variable.
After some debugging I discovered that the value in $language (in my case it was 'nl') isn't actually in the $values array. For some reason language is always 'und', it works for me when I changed the code from $language to 'und':
Maybe I will look further into this issue, but for now it is good for me because the client doesn't sees an error anymore.
Comment #2
MHLut CreditAttribution: MHLut commentedThis appears to be a duplicate of #1206458: Internal server error 500 after signup
Comment #3
MHLut CreditAttribution: MHLut commentedI just changed line 101 in cck_signup.module to
$language = 'und'; // language currently bugged, this should be: $language = $values['language'];
Not the nicest solution, but it will do for now.
Comment #4
liezie_D CreditAttribution: liezie_D commentedthe solution proposed by RobertW worked for me.
But the error is still triggered when removing the signup
Comment #5
kamranzafar CreditAttribution: kamranzafar commentedI think better solution will be this
$language = (array_key_exists($values['language'], $values[$field_name])) ? $values[$field_name] : LANGUAGE_NONE;
--
Kamran Zafar
Cognitive Axis
http://www.cognitiveaxis.com/
Comment #6
ferrum CreditAttribution: ferrum commented@kamranzafar: your snippet is not correct, change it to:
$language = (array_key_exists($values['language'], $values[$field_name])) ? $values['language'] : LANGUAGE_NONE;
Comment #7
beto_beto CreditAttribution: beto_beto commentedthis error appear for me to
i am still searching for that
but how can i restrict or limit the number of user to register on some event as example i want only 5 people ?