When attempting to update an existing user's profile information (a category called 'Personal Information'), I receive this error:

call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'user_profile_form' was given in /Users/aaron/Projects/cdi_drupal/6/includes/form.inc on line 372.

I believe this is because user.pages.inc is not loaded when this function runs. I've attached a patch (probably in a horribly mangled format from my Git repository) that solves the issue for me. The code is similar to the code inside node.save.

CommentFileSizeAuthor
#3 702006.patch869 bytesgdd
user.pages_.patch472 bytesADLongwell

Comments

ADLongwell’s picture

Title: user.save can't find user.pages.inc » User services failure: user.save can't find user_profile_form

Status: Needs review » Needs work

The last submitted patch, user.pages_.patch, failed testing.

gdd’s picture

Status: Needs work » Needs review
StatusFileSize
new869 bytes

Here's a new cvs patch, lets see what the bot thinks.

gdd’s picture

Status: Needs review » Fixed

Commited, thanks

Status: Fixed » Closed (fixed)
Issue tags: -user_service, -user.pages.inc, -user_profile_form

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