The MU forums have moved to WordPress.org

next page link error (8 posts)

  1. cvera
    Member
    Posted 18 years ago #

    i notice a problem on my homepage:
    The "Next Page" link is pointing to:
    http://www.incsub.org/wpmu/cvera/wpmu/wp-inst/index.php?paged=2
    and there is an extra "_wpmu/wp-inst/_"there, so this link don't
    work.

    I check up the code:

    <div class='STORYCONTENT' align='middle'>{posts_nav_link}</div>

    It seems like no problem here. I don't know how i can fix it.Any One can help me here?
    Thanks,

  2. tkreucher
    Member
    Posted 16 years ago #

    *bump*

    Is this a common problem? I have been searching all day to try and find a solution for this. We have a WPMU installation on our intranet, everything is working fantastically except for the "Next Page >" link at the bottom of the Home page. The link SHOULD be:

    http://ourvirtualhostURL/wpmu/adc-promo/page/2

    But instead it is linking to:

    http://ourvirtualhostURL/wpmu/adc-promo/wpmu/adc-promo/page/2/

    Which triggers a 404 error. I can manually remove the extra /wpmu/adc-promo, and that will bring up the next page of posts properly, AND when I click on the Previous Page link and return to the original Home page, the Next Page link at the bottom is now linked properly without the extra /wpmu/adc-promo.

    I'm trying to figure out where I need to change this so it works properly.

    Our installation is subdirectory based, and we are using the Spotlight theme. We have date and name based Permalinks.

    I'm thinking I must need to do something with The Loop, but I can't figure out which file to edit? I'm still relatively new to WordPress.

    Any ideas? Let me know if I need to provide further details about our installation.

    Thanks to anyone who can shed some light on this.

  3. SteveAtty
    Member
    Posted 16 years ago #

  4. tkreucher
    Member
    Posted 16 years ago #

    SteveAtty,

    You rock! :) That was just where the problem was, in the link-template.php. I was actually digging through the file, so I was kind of in the right place, but just hadn't been able to figure out the exact line. Commenting out line 437 did the trick!

    Thanks again! You made my day!

  5. SteveAtty
    Member
    Posted 16 years ago #

    Glad I could help...

  6. dsader
    Member
    Posted 16 years ago #

    In .htaccess instead of hacking core file:

    # force a trailing slash for dirs fixes /demo/demo/page/2/ error for non-vhost
    RewriteRule !\..{2,4}$ - [C]
    RewriteCond %{REQUEST_URI} !^.*/$
    RewriteRule ^(.+)$ /$1/ [R=301,L]

    I have a 1.2.4 install with this, haven't tried on a 1.3 install.

  7. SteveAtty
    Member
    Posted 16 years ago #

    But surely it is better from a performance point of view to remove the line rather than add another Rewrite Rule.

    Actually if it only affects no v-host installs then I guess it needs wrapping in a if statement and rolling up into the code base

  8. dsader
    Member
    Posted 16 years ago #

    Revive the trac ticket:
    http://trac.mu.wordpress.org/ticket/331

    Donncha's says this is the fix.

About this Topic