Whenever a user tries to edit their profile a long list of errors in the form "This required field is missing: " is displayed, giving no indication as to what the field in question is, even when all fields are set to be 'not required' from the admin section.

Comments

marky’s picture

typo on (or around) line 51:

  $profile_required_fields = variable_get("profile_require_fields", array());

should be:

  $profile_required_fields = variable_get("profile_required_fields", array());
                                                          ^

this allows the required fields thing to work

drupal/4.1.0 Apache/1.3.26 (Win32) PHP/4.2.2

Dries’s picture

Assigned: Unassigned » Dries

Fixed in CVS. Thanks Marky. (The profile module is surely in need of a rewrite.)

moshe weitzman’s picture

Priority: Major » Normal

could you elaborate on what is needed for this module?

torgeirb’s picture

I now get this problem in cvs from 18-04. If I enable profile.module, I get 'required field missing' when saving account info.

jellybob@blogger.com’s picture

I may be wrong, since this is my first time diving into the Drupal code (and I'm just evaluating it now anyway) but it seems that the profile_$mode_fields variable contains chunk, since several of the array entries have a value of 0.

Jon

bbcity’s picture

When I turn this module on, it conks out in the same way. Very annoying for new users particularly... (I've got it turned off at the moment.)

Dries’s picture

Priority: Normal » Critical
Dries’s picture

al’s picture

Hmmm... this doesn't seem to be fixed - I'm still getting these errors on my production box, although the patch seemed to fix things on my development box. Does anyone who understands the workings of this module better than I do have any idea what's going on?

al’s picture

Think this is fixed now. Please reopen if you can reproduce on latest CVS (post 3rd May, at least).

al’s picture

No one's whinged for a long time and I'm fairly sure this one's now been nailed. CLOSING.