Skip to:
Content
Pages
Categories
Search
Top
Bottom

Login error

  • Avatar of Fall-apart
    fall-apart
    Member

    @fall-apart

    If this has been answered already, I apologise – I did look around, but I didn’t see anything addressing this. So I installed trunk-r590 on top of WPMU 2.6.5 in a subdirectory, and everything seems to be working fine – signups, widgets on the front page, etc, with the exception of logging in from the bar across the top – it throws a 404.

    The WPMU install is at http://www.wikischool.ca/blogs/

    The login is attempting to go to http://www.wikischool.ca/wp-login.php, which is obviously the wrong place. I looked at the BuddyPress theme header.php, and the script points to <?php get_option('home') ?>/wp-login.php, and when I checked the database, both the “home” and “siteurl” lines are pointed to http://wikischool.ca/blogs/. Is this a BP problem or a WPMU problem, and what can I do about it?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Avatar of Dudboi
    Dudboi
    Participant

    @dudboi

    I actually don’t see a home option in my DB, but there IS a siteurl option. Even though get_option(‘siteurl’) didn’t work for me either. I have a feeling it’s got something to do with how the databases in WP MU don’t match with those in WP and the get_option function is structured in a way that makes sense for the WP databased, but not those in WP MU.

    A quick fix would be to do an <?php echo site_url();?>

    Avatar of Fall-apart
    fall-apart
    Member

    @fall-apart

    So this is just a problem with the header, and not an issue with having BP/MU installed in a subdirectory?

    Thanks for the help!

    Avatar of Gogoplata
    gogoplata
    Participant

    @gogoplata

    Was the login working prior to installing BP?

    Avatar of Fall-apart
    fall-apart
    Member

    @fall-apart

    Yes, and the login at http://www.wikischool.ca/blogs/wp-login.php works fine, it’s just that one form action. It’s interesting, because the Signup button points at site_url, so it’s just the Login button that’s incorrect.

    Avatar of Blackvwgolf95
    blackvwgolf95
    Member

    @blackvwgolf95

    Line 37 of header.php in the home theme is missing an echo.

    Correct line should read:

    <form name=”login-form” id=”login-form” action=”<?php echo get_option(‘home’) ?>/wp-login.php” method=”post”>

    Brad

    http://www.GorgeousGamers.com/beta/

    Avatar of Fall-apart
    fall-apart
    Member

    @fall-apart

    Peachy! That did the trick – how does that change get incorporated into the official files?

    Avatar of Gogoplata
    gogoplata
    Participant

    @gogoplata

    This is fixed in the latest revision.

    Avatar of Fall-apart
    fall-apart
    Member

    @fall-apart

    Excellent!

Viewing 8 replies - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.