By kmartindale on
We are using Drupal Auto Assign role "paths" on our site: http://drupal.org/project/autoassignrole
(and Content Profile http://drupal.org/project/content_profile if needed information)
It works fine with the main role we assign. I added a second path, and the registration form is printing without many fields and the submit button is missing. I removed a custom "user-register.tpl" and now it works. I am confused because this user-register.tpl doesn't target specific roles, so I am not sure why the fields and submit button are only missing for one role. Does that make any sense? Thank you for all your help.
Comments
help with this--
anyone have any thoughts on this?
I provide free Drupal support on Thursdays: booking calendar coming soon.
Update
So i put in this first part of code into user-register.tpl that checks to see if the variable for $form['submit'] is set.
when i go to the second registration page it outputs "noArray" (meaning its not set), but in the working original registration page it says "Array" (meaning the variable was set). I think this shows its not being rendered because for some reason its not being set.
oddly works for the original page, but for the second registration page that uses the exact same user-register.tpl file it wont set the variables?
For the second page, the fields from ['account'] are all showing up, only submit and captcha are not showing.
just tried
I just tried: (someone suggested these)
<div class="field"><?php print drupal_render($form['actions']['submit']); ?></div><div class="field"><?php print ($form['actions']['submit']); ?></div>and
<div class="field"><?php print drupal_render($form['submit']); ?></div>still nothing
tried $form code
I just tried adding
<?php print drupal_render($form); ?>to user-register.php.tpl. Which should render all the fields in $form. The "create an account" submit button shows! but the "captcha" field dose not. after I fill out the form and click "create account" it won't let me continue because the "captcha" was not done correctly (yet It's not even showing)"CAPTCHA validation error: unknown CAPTCHA session ID. Contact the site administrator if this problem persists."
This doesn't fix my problem, but I think it helps with another step towards finding the issue.