WordPress.org

Ready to get started?Download WordPress

Forums

Links to pages goes to the main site's static page (29 posts)

  1. horrorshow
    Member
    Posted 3 years ago #

    I recently upgraded from WordPress MU 2.7 to WordPress 3.0.3, and the page links that are on the parent blog, (e.g. http://www.achillesblog.com/about/) on the splash page's navigation bar, now are just being redirected to the main url (http://www.achillesblog.com)

    On the child blogs, such as http://www.achillesblog.com/dennis, the page links on the navigation sidebars work correctly.

    I've followed the directions for upgrading closely from http://codex.wordpress.org/Upgrading_WPMU, but maybe there is something else that I am not aware of, or missed.

    Please let me know how I can fix this problem. Thanks in advance.

  2. Go resave the permalinks on the main blog.

  3. horrorshow
    Member
    Posted 3 years ago #

    Andrea, on the main blog, I tried saving permalinks from settings -> Permalinks -> [Save Changes]
    Changed it to default, [Save Changes], and then also tried changing it to: "Day and name" [Save Changes].

    That didn't work either. Any other suggestions? I am wondering if my .htaccess is misconfigured.

    Thanks,

  4. horrorshow
    Member
    Posted 3 years ago #

    I've also tried the following Permalink Settings: "Custom Structure /blog/%pstname%/"

    But I am seeing the same behavior.
    Any suggestions..? thanks

    This is what the .htaccess looks like:

    RewriteEngine On
    RewriteBase /
    
    # BEGIN ANTISPAMBLOG REGISTRATION
    RewriteEngine On
    RewriteCond %{REQUEST_METHOD} POST
    RewriteCond %{REQUEST_URI} .wp-signup\.php*
    RewriteCond %{HTTP_REFERER} !.*achillesblog.com.* [OR]
    RewriteCond %{HTTP_USER_AGENT} ^$
    RewriteRule (.*) http://die-spammers.com/ [R=301,L]
    # END ANTISPAMBLOG REGISTRATION
    
    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule . - [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
  5. horrorshow
    Member
    Posted 3 years ago #

    I've also tried editing and saving the permalinks on each of the pages. The new permalinks show up in the "Pages" plugin. (e.g. http://achillesblog.com/about/ to http://achillesblog.com/about2/) But when you click on the link, it just redirects to the main page. typing the URL directly as: http://achillesblog.com/about/ just gets redirected to http://achillesblog.com

    I am a little stumped here, as I don't think I've gotten this stuck during an upgrade. I may have to revert back to 2.7.

  6. When you upgraded, did you go to 2.9.2 first? And then 3.0.3? Because going straight from way back there to current is not recommended.

    Also, do some basic troubleshooting like turning off your plugins and checking the links.

    It's not wordpress - it's either whatever got funky during upgrading or your plugins.

  7. You're using SubFolders ... Try this .htaccess instead:

    # BEGIN ANTISPAMBLOG REGISTRATION
    RewriteEngine On
    RewriteCond %{REQUEST_METHOD} POST
    RewriteCond %{REQUEST_URI} .wp-signup\.php*
    RewriteCond %{HTTP_REFERER} !.*achillesblog.com.* [OR]
    RewriteCond %{HTTP_USER_AGENT} ^$
    RewriteRule (.*) http://die-spammers.com/ [R=301,L]
    # END ANTISPAMBLOG REGISTRATION
    
    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    # END WordPress
  8. horrorshow
    Member
    Posted 3 years ago #

    I've tried the new .htaccess, and I am still seeing the same problem.

    Andrea, yes, unfortunately, it was a straight upgrade from 2.7 to 3.0.3.
    I am wondering if I should revert back to 2.7 and upgrade to 2.9.2 first.
    Reverting back to the old files isn't too much of a hassle, but it's not going to be fun reverting back to the old database copy. sigh..

    Is there anything else that I can try, before going back to 2.7? thanks

  9. As Andrea said:

    Also, do some basic troubleshooting like turning off your plugins and checking the links.

    Turn 'em all off, see if it works. If not, try the revert.

  10. horrorshow
    Member
    Posted 3 years ago #

    Turning off plugins didn't work. Now, I am going to have to revert back to 2.7.

    Since the users have been using the site since the upgrade, (the user blogs are working fine..), there's going to be loss of user content since the upgrade. Yes, it's my fault for not being careful with the upgrade. :(

    What does the Super Admin -> Update -> "Update Network" do exactly?
    I want to see if I can just upgrade the files and leave the database alone.

    On second thought, my spider senses tell me that I should just go back exactly to the way it was and then carefully upgrade one step at a time..

  11. What does the Super Admin -> Update -> "Update Network" do exactly?
    I want to see if I can just upgrade the files and leave the database alone.

    It upgrades the site's db tables. It does *nothing* to the files.

    and then carefully upgrade one step at a time..

    That's the recommend way to upgrade.

  12. horrorshow
    Member
    Posted 3 years ago #

    It upgrades the site's db tables. It does *nothing* to the files.

    Thanks Andrea. The reason that I was asking about the "Update Network" is because I wanted to know if it's possible to revert the DB changes back to the way it was, without actually going back to my backups. Or leave the DB in 3.0.3 state and revert the files back to 2.7.

    Thinking about it some more, it's most likely that the upgrade procedure isn't robust enough (or designed) to be able to do that easily. And to understand the inner workings of the "Update Network" DB changes and undo those changes will probably take a considerable amount of time. So it's probably just best to do the 2.7 - 2.9.2 - 3.0.3 upgrade instead.

  13. Oddly, someone recently said they went from 2.1 to 3.0 on SingleSite without a hitch. The problem is 2.7 was MU, which was a fork of 'regular' WordPress. It wasn't till 2.9.2 that they specially got their ducks lined up to handle the MU -> WordPress jump.

  14. And to understand the inner workings of the "Update Network" DB changes and undo those changes will probably take a considerable amount of time. So it's probably just best to do the 2.7 - 2.9.2 - 3.0.3 upgrade instead.

    Actually, in some version, clicking that button did very little (we foudn this out later). The only db changes that I know of was for a comment meta table to be added.

    You *might* get away with just putting the files back and continuing. But it may or may not create new issues. Depends on how daring you feel.

  15. horrorshow
    Member
    Posted 3 years ago #

    You *might* get away with just putting the files back and continuing. But it may or may not create new issues. Depends on how daring you feel.

    Ah, that's a very tempting suggestion, but I am going to listen to my spider senses and re-do the upgrade, even if I have to manually add back 2 days of postings and comments by hand..

    Found archived wordpress-mu releases at: http://trac.mu.wordpress.org/browser/tags

  16. horrorshow
    Member
    Posted 3 years ago #

    It looks like upgrade from 2.7 to 2.9.2 is causing the exact same problems on the site. I am going to try to upgrade from 2.7 to 2.8.3

    I understand that http://trac.mu.wordpress.org/changeset/1937/tags/2.7.1?old_path=%2F&format=zip is the WordPress MU 2.7.1 Archive Link.

    What are the other direct links for 2.8.3 and 2.9.2 version archives?

    I've tried browsing the trac, and it looks like the release for 2.8.3 is 1930, which is lower than 2.7.1's release number.. and that doesn't seem to make sense. Are there links for .tgz files as well? thanks. I am not very familiar with trac.

    thanks for your help.

  17. 2.8.3 is here:
    http://trac.mu.wordpress.org/browser/tags/2.8.3

    You're in the right spot. If you look at the tags, you'll see that very quickly, 2.8.4 was tagged as well.

    2.9.2:
    http://trac.mu.wordpress.org/browser/tags/2.9.2

  18. asafche
    Member
    Posted 3 years ago #

    it's a bigger problem than you think.
    it is the same on a fresh install of 3.0.4.
    here: http://wordpress.org/support/topic/cant-get-to-main-blog-page-with-postname-permalink-on-sub-directory-install?replies=1

  19. horrorshow
    Member
    Posted 3 years ago #

    2.8.3 is here:
    http://trac.mu.wordpress.org/browser/tags/2.8.3

    You're in the right spot. If you look at the tags, you'll see that very quickly, 2.8.4 was tagged as well.

    This is very odd. I've upgraded to 2.8.3, and I am seeing the exact same problem. I've disabled ALL of plugins and mu-plugins. I am using the exact same .htaccess as the 2.7.3 installation too.

    Is there anything else that you recommend? I've been stuck on this for a month, and the site has been down for a month because of this.. not good. Thanks for your help so far.

  20. horrorshow
    Member
    Posted 3 years ago #

    Upgrade from 2.7 to 2.7.1 is producing the same error as well. I am starting to think there is something specific to my 2.7 installation that is not allowing the upgrade to happen gracefully.

  21. That would be my guess too ... Can you export the posts and import them to a clean 3.0.4 build?

  22. horrorshow
    Member
    Posted 3 years ago #

    Ipstenu, how do you export posts? I've done mysql database dumps and database loads from dumps, but I haven't exported posts or entire blogs before.
    There are close to 1500 blogs, and if I can export them, and import them back onto a clean WP 3.0.4, that would work.

  23. 1500 blogs!? o.O

    That ... You know, I wonder if the database SIZE has something to do with this.

    When's the last time you optimized the database?

  24. And how many of those 1500 are actually (or were) active used blogs?

  25. horrorshow
    Member
    Posted 3 years ago #

    Most of the blogs are not actively used any more. Maybe a 15% have a few images and a third a fair amount of postings. It's just the nature of the site.

    I don't think it's the database size as it's only 250 MB, and the blogs.dir has 236 directories. This means only 236 blogs had uploads, so it's really not that much.

    And the upgrades do take a long time, so I just leave it going overnight.

    However, the problem was with the site blog, not individual blogs. Individual blog's page links direct properly to the right pages.

    It's only the main site blog where none of the page links are redirected correctly.

    So how do I export them and load the blogs back into a fresh install of WP 3.0.4? thanks again

  26. We mean the Export button in the backend of each individual blog.

    Tho if it's only the main site witht he biggest issues, I'd do that one that way just to test.

  27. asafche
    Member
    Posted 3 years ago #

    got it!
    urgggh....

    a fresh install solved it.

    thank you very much for supporting me trough it!
    Cheers.

  28. horrorshow
    Member
    Posted 3 years ago #

    Andrea, revisiting an old thread here. I wasn't able to upgrade, and I am still stuck on 2.7. I'll try to import into a new wp installation under a different domain name, (as I want to keep the main site running while I test this installation.)

    This is a newbie WP admin question now..
    How do you keep the production site running, (for me, that would be AchillesBlog.com with WPMU 2.7), and also test a new installation with the same blog content with a different wpmu or wp 3.1.2 for AchillesBlog.com?

    It seems like WP installation is tied closely to the domain name, and I am trying to determine how to setup an development/test blog, yet have the content be the same as the production site.

    I hope my question is clear, and if not, please let me know.
    thanks.

  29. set up a local dev environment on my computer and to get around constantly changing stuff in the db, I change my hosts file to point locally.

    http://wpmututorials.com/how-to/using-a-hosts-file/

    Or, if I don;t want to do that, and this is a one-time test (I'm not going to constantly sync it with the live site) then I may just do the db replace on my copy one time and call it mydomain.loc, using the .loc extension so I know it's my local copy.

    then I can break it all I want. :D

Topic Closed

This topic has been closed to new replies.

About this Topic