WordPress.org

Ready to get started?Download WordPress

Forums

500 Internal Server Error when following link in email invite (9 posts)

  1. kwgagel
    Member
    Posted 2 years ago #

    Setup - WordPress 3.3 on Windows 2008 R2 server using IIS 7.5
    WordPress is setup as a multiuser site with BuddyPress 1.5 installed.

    When user A invites user B to be a "user" on/in user A's blog site, WordPress sends an email to user B with details including a link to user A's blog site with an auto generated code appended on the URL path.

    When user B clicks the confirmation message they receive a "500 - Internal server error." message in their browser.

    WordPress however does accept the code and it does register the new user B into user A's site in the role they configured.

    This issue may or may not have something to do with another issue I'm having, here are links to that:
    http://wordpress.org/support/topic/recuring-404-file-or-directory-not-found-error
    http://core.trac.wordpress.org/ticket/19686
    http://buddypress.trac.wordpress.org/ticket/3892

    Any suggestions?

  2. Jonas Grumby
    Member
    Posted 2 years ago #

    500 - Internal server error is usually a configuration error on the server. Common causes are things in the .htaccess file, redirects, or file/folder permissions being incorrect on the server. You can usually get your hosting tech support to track it down and fix it for free.

  3. kwgagel
    Member
    Posted 2 years ago #

    As noted above this is a IIS/Windows site not an apache site.
    I am the host and have full access to the server.

  4. kmessinger
    Volunteer Moderator
    Posted 2 years ago #

    Does the confirmation url look like this, http://Asblogsite.com/wp-login.php

  5. kwgagel
    Member
    Posted 2 years ago #

    No. I've found the code that generates the link, it contains this code section it:
    site_url("/newbloguser/$newuser_key/")
    While the $newuser_key variable does work (in that user B does get the access configured by user A) - user B also gets that internal server error.

    I also noticed in testing that the "key" code is not uniquely generated each time. If I add a user, delete the user then add them again they get the exact same link. I don't if that's an issue or not, I just expected to see a different key at the end of the url path.

    Anyway, here is a sample of what is sent on behalf of user A to user B for them to click:
    ---Paste---
    Hi,

    You've been invited to join 'Kevin Gagel's blog' at
    http://blogs.cnc.bc.ca/gagel with the role of contributor.

    Please click the following link to confirm the invite:
    http://blogs.cnc.bc.ca/gagel/newbloguser/9778d/
    ---End Paste---

  6. kmessinger
    Volunteer Moderator
    Posted 2 years ago #

    What is generating the invitation to join? WP sends a message like this

    Username: tester
    Password: 12345
    http://yoursite.com/wp-login.php

  7. kwgagel
    Member
    Posted 2 years ago #

    WordPress is generating the email using /wp-admin/user-new.php file. The specific code is located within the else statement of line 72 which concludes at line 84.
    Here is the specific code:
    [Code moderated as per the Forum Rules. Please use the pastebin]

  8. webmom
    Member
    Posted 2 years ago #

    Was this ever resolved? I'm experiencing the same problem.

  9. esmi
    Forum Moderator
    Posted 2 years ago #

    @webmom: Please post a new topic.

Topic Closed

This topic has been closed to new replies.

About this Topic