Javascript throws error for imagefield value when option for require for login is used
| Project: | Membership types and registration modification |
| Version: | 5.x-1.6 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
I am using imagefield module to add a picture to the profile. If I have the the option for required checked a JS error message is thrown when uploading the image. It gets uploaded but the user gets a full page of html and php code and the picture is not shown. Turning of the required option removes the error.
I've implemented the changes mentioned in #5 on http://drupal.org/node/25043 for the pageroute module and concluded that the error is due to this module. I am guessing that Ajax solution for the imagefield makes the required supervising tick. I am imagining that this will cause more issues as more Ajax solutions get implemented into forms.
The best solution would perhaps be to allow Ajax stuff to be called even though the required open is checked.
Fixable?

#1
I've run into this as well, and found a quick fix that works for me.
In nf_registration_mod.module at line 1052 (in function nf_registration_mod_user), comment out the following line:
$_SESSION['no_browse'] = 1;
This will prevent the same redirection logic from running again in the menu hook. There may be some rationale for attempting to do that, but I don't see it.
#2
Hello
don't solve the problem for me. It seems now to works well on firefox but IE8 still print an ugly js pop-up