When user_profile_form is embedded in a custom page, use of the image field results in ajax errors, even if user.pages.inc is included in the custom page.
Steps to reproduce:
- Fresh install of drupal 7.12.
- Install the attached module, filetest. This module creates a very simple page with an embedded user_profile_form.
- Go to the modules admin page and enable the filetest module.
- Go to admin/config/people/accounts/fields -- create a new image field.
- Go to ?q=myadmin/1 and attempt to upload an image using the field you added in step #3. You will see an error alert like the one posted below.
An AJAX HTTP request terminated abnormally.
Debugging information follows.
Path: /drupal7fresh/?q=file/ajax/field_image/und/0/form-5NgLMXllXPAD70TLL5In5XB49hPZI9jwBUdMsKozaB4
StatusText: n/a
ResponseText: user_profile_form
ReadyState: undefined
| Comment | File | Size | Author |
|---|---|---|---|
| filetest.tar_.gz | 680 bytes | arnoldbird |
Comments
Comment #1
arnoldbird commentedAt the moment it appears there is a workaround here: http://drupal.org/node/1336212#comment-5859652
Comment #2
arnoldbird commentedBetter solution: http://drupal.org/node/1526300#comment-5859594