Can't seem to get anywhere with this module. When I go to node/add/story, an Internal Server Error is thrown for anonymous users.
Can't seem to get anywhere with this module. When I go to node/add/story, an Internal Server Error is thrown for anonymous users.
Comments
Comment #1
Steve Dondley commentedCommenting out line 19 fixed it (but the module doesn't work, of course):
Comment #2
matt@antinomia commentedSteve, are you using any other modules that alter the user registration form?
Comment #3
Steve Dondley commentedYes, in fact, I was just coming here to report that I'm using node profile. The problem comes time to merge the $extra variable with the $form variable in user_register(). Any ideas on the best way to fix?
Comment #4
Steve Dondley commentedThis is the output of the $extra variable. Looks like node profile is tacking on a subform:
Comment #5
matt@antinomia commentedI see... I honestly haven't looked at fago's subform element until just now. The project description says "This form element allows you to reuse existing forms inside your form" so I presume it allows nodeprofile to hijack the user registration page and then inserts the user_register form into the nodeprofile form... Inline_registration works by form_altering itself into the user_register form, so I guess this might be the source of the issue?
It may be possible to rewrite inline_registration as a subform element, which may allow nodeprofile and inline_registration to be friends...
Comment #6
Steve Dondley commentedYeah, it's definitely the source of the issue. If I comment out $form = array_merge($form, $extra); in user.module, I get no error. Of course, I get no nodeprofile fields either.
Comment #7
fagohm, I think this generates an endless loop of embeeded forms. You embeed the registration form in the node form, nodeprofile a node form in the registration form. Just don't integrate the registration form in nodeprofiles and it should work.
Comment #8
mavimo commentedwith node_profile i chage:
to:
bye
Mavimo
Comment #9
livido commented