Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The profile has the following settings:
a:9:{s:9:"path_type";s:8:"separate";s:8:"tab_text";s:19:"Register as teacher";s:13:"fieldset_wrap";i:1;s:13:"custom_titles";i:1;s:11:"login_title";s:13:"Teacher Login";s:14:"register_title";s:16:"Teacher Register";s:14:"password_title";s:16:"Teacher Password";s:20:"confirmation_display";i:0;s:20:"confirmation_message";s:0:"";}
See screen grab.
Any ideas?
Comment | File | Size | Author |
---|---|---|---|
#2 | 2068385-fix-docroot-path-parse-2.patch | 693 bytes | RobKoberg |
Screen Shot 2013-08-18 at 11.44.36 AM.png | 313.97 KB | RobKoberg |
Comments
Comment #1
RobKoberg CreditAttribution: RobKoberg commentedI see the problem now. Something must have changed recently where the code now relies on parsing the the path from the docroot incorrectly. For example, I have a path to my docroot in dev like: http://localhost/~rkoberg/mash-tmp/docroot/, and one of my profile type's registration page is http://localhost/~rkoberg/mash-tmp/docroot/teacher/register
In profile2_regpath_form_alter, the following code incorrectly determines the profile name:
In my case, the $path_key will be ~rkoberg.
To fix it, the following code could be used to get the path from the document root:
Comment #2
RobKoberg CreditAttribution: RobKoberg commentedHere is a patch against dev.