I am using oauthconnector with connector, and have created connections to Facebook and Linkedin that grab some profile information (first name, last name, email address). When I clicked sync I got a fatal error:
Fatal error: Call to undefined function user_profile_form_validate() in /mnt/datavolume/oan_aws/aegir/platforms/worldchanging/includes/form.inc on line 1432
I solved it with the attached patch that creates a form _validate function that loads the necessary user.profile.inc file.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | connector-undefined-function-user_profile_form_validate-1664696-2.patch | 1.27 KB | gantenx |
| undefined-function-user_profile_form_validate.patch | 858 bytes | jlyon |
Comments
Comment #1
Topcheese commentedI had the same error and applied the patch and now there is no error.
Comment #2
gantenx commentedI'm thinking of different approach to solve this issue. It's not using form validate callback to load file 'user.pages.inc'. Instead, it modifies page callback in hook_menu(). The new page callback loads file 'user.pages.inc' then return the form.
Comment #3
ram4nd commented#2 worked for me.
Comment #4
dxx+1 for #2
Comment #5
hydra commentedStill working :)