Closed (fixed)
Project:
Content Profile
Version:
6.x-1.x-dev
Component:
User registration module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 May 2009 at 16:47 UTC
Updated:
25 Jun 2009 at 15:30 UTC
warning: array_shift() [function.array-shift]: The argument should be an array in /home/site/public_html/includes/form.inc on line 1326.
This warning pop up on the registration page when the module is set up to Use on Registration
Comments
Comment #1
fagoPlease try again with the latest dev-snapshot, there were quite some changes.
Comment #2
sabyrodrigues commentedHi,
Thanks for the suggestion, I tried the same using the latest dev-snapshot but still no success the same error on the
Create content >> Profiles form
* warning: array_shift() [function.array-shift]: The argument should be an array in /home/public_html/includes/form.inc on line 1326.
* warning: array_shift() [function.array-shift]: The argument should be an array in /home/public_html/includes/form.inc on line 1326.
So any update by anyone who have solved this issue ....
Thanking in advance...
Comment #3
GrahamThomson commentedHi,
I am getting the same warning.
It only occurs for me when I am trying to exclude some of the fields from the registration form.
I have 2 field groups which I would like to hide, and an Integer field that renders are a checkbox that I would like to include.
Hiding both field groups and all their fields gives the warning, hiding just one of the field groups does not give the warning.
Also, I cannot hide individual fields within the field groups, the checkboxs to hide them seem to be overruled by the field group's checkbox.
I am using drupal 6.12, CCK 6.x-23 and Content Profile 6.x-1.0-beta3
Best wishes,
Graham Thomson
Comment #4
sabyrodrigues commentedhey
the error seemed disappeared all of a sudden. It appeared only for admin but when the Content exposed to authenticated role there was no error....
Comment #5
GrahamThomson commentedI am also getting validation errors for hidden fields.
The field in question is a CCK text field, displayed as a drop-down list. If I don't hide the field or the fieldgroup it is in, then the registration will work, but if I hide it I get an "Illegal value" message.
This is preventing new users from registering.
Any help would be very greatly appreciated!
Thanks,
Comment #6
darrellhq commentedI've commented out the line in my tpl file for the warning dialog on that page. It has seemed to get rid of the error message without any visible trauma. I know it is not the best method but it's worked for me.
Comment #7
darrellhq commentedJust tried the dev release and it clean up the issue for me. Thanks!
Comment #8
fagoSo it looks this is fixed in the dev version.. :)