• After installing the plugin I get a “This page isn’t working” error. For example, for user named Ralphie it redirects to a mysite.com/members/ralphieprofile/edit/ and I get the error. If I manually insert a slash into the url between ralphie and profile so it is mysite.com/members/ralphie/profile/edit/ then it works. Any ideas?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter dansayswithwords

    (@dansayswithwords)

    I edited line 238 of buddypress-profile-completion/src/core/class-bp-profile-completion-helper.php to:

    $redirect_url = bp_core_get_user_domain( $user_id ) . “/” . bp_get_profile_slug();

    It now works but I am not a coder and that is probably a sloppy way to fix it.

    Plugin Author raviousprime

    (@raviousprime)

    Hello,

    Sorry for the inconvenience. You do not need to add a slash at the end of the redirect URL as it already adds ‘/’ at the URL’s end of URL. Please let me know which version of BuddyPress you are using.

    PS: Direct modification of the plugin code is not a good way as it will vanish on plugin updates.

    Regards

    Thread Starter dansayswithwords

    (@dansayswithwords)

    To be clear, I did not add a slash to the end of the redirect url but rather in between the username (ralphie) and profile. The redirect url leaves out that slash so I get the error. I realize my “fix” is a rather clumsy way to do it but it works. I updated to 12.1.1 but that made no difference.

    Plugin Author raviousprime

    (@raviousprime)

    Hello,

    Thank you for the acknowledgement. I have checked it on my local server and found that the permalink structure causing this issue. Please try with a different permalink structure that ends with ‘/’ and let me know if the issue persists or not.

    Regards

    Thread Starter dansayswithwords

    (@dansayswithwords)

    Yes! Putting a / at the end of the Permalink seems to have solved the problem. Thank you for your prompt reply and resolution. It is much appreciated!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Missing slash in url’ is closed to new replies.