Posted by Robert_W on November 8, 2011 at 3:52pm
2 followers
Jump to:
| Project: | CCK Signup |
| Version: | 7.x-1.0-alpha4 |
| Component: | CCK Signup core |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
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
#1
After doing some investigation (the issue annoyed me :P), I found out that this error is related to the language variable.
if (!$event = node_load($values[$field_name][$language][0]['nid'])) {return;
}
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':
if (!$event = node_load($values[$field_name]['und'][0]['nid'])) {
return;
}
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.
#2
This appears to be a duplicate of #1206458: Internal server error 500 after signup
#3
I 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.