If a node form is loaded and displayed using drupal_get_form, then profile crop fields fail.

The solution is to include module_load_include('inc', 'node', 'node.pages'); around line 497 (in the imagefield_crop_widget_process function).

There's probably a better way to do this that detects the type of form the field is embedded in, and loads the needed includes.

Comments

citricguy’s picture

I can confirm. It effects more than just the Profile fields though, it includes any form that needs module_load_include('inc', 'node', 'node.pages') to load

This extends into the 2.x series as well.

citricguy’s picture

I can also confirm that aiquandol's solution does work. I agree though that there must be a better way to fix this. Fix also works in 2.x

citricguy’s picture

joetsuihk’s picture

Status: Active » Closed (duplicate)