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

fago’s picture

Version: 6.x-1.0-beta3 » 6.x-1.x-dev
Status: Active » Postponed (maintainer needs more info)

Please try again with the latest dev-snapshot, there were quite some changes.

sabyrodrigues’s picture

Hi,

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...

GrahamThomson’s picture

Hi,

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

sabyrodrigues’s picture

hey

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....

GrahamThomson’s picture

I 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,

darrellhq’s picture

I'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.

darrellhq’s picture

Just tried the dev release and it clean up the issue for me. Thanks!

fago’s picture

Status: Postponed (maintainer needs more info) » Fixed

So it looks this is fixed in the dev version.. :)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.