The MU forums have moved to WordPress.org

Strange Issues (12 posts)

  1. ironicsky
    Member
    Posted 14 years ago #

    I recently upgraded to 2.8.6 and have some strange issues.

    My main blog, http://www.domain.com/blogs/ loads fine.
    As does the admin panel at http://www.domain.com/blogs/wp-admin

    My other blogs, do not seem to work properly.

    If someone visits http://www.domain.com/blogs/blogname they get a 404 not found, but when I visit http://www.domain.com/blogs/blogname/wp-admin I get brought to the login screen.

    The next weird thing is, I cannot login to my sub-blogs. I get told "You do not have permission to access this blog".

    When I check my main wp-admin control panel it shows that the user I am trying to login with is an admin on the secondary blog.

    If I create a new blog, the same thing happens..

    My .htaccess file is below

    RewriteEngine On
    RewriteBase /blogs/
    
    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]
    
    # add a trailing slash to /wp-admin
    RewriteCond %{REQUEST_URI} ^.*/wp-admin$
    RewriteRule ^(.+)$ $1/ [R=301,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]
  2. SteveAtty
    Member
    Posted 14 years ago #

    So did you make the changes to allow you to use www in the urls?

  3. ironicsky
    Member
    Posted 14 years ago #

    Yes. Because of how our corporate firewall and domain controls are setup we must type www. in front of our own domain, otherwise we cannot access it.

    the database correctly has the www in front of everything

    table: wp_site
    id: 1
    site: http://www.domain.com
    path: /blogs/
    table: wp_blogs
    id:5
    site_id:1
    domain: http://www.domain.com
    path: /blogs/blogname/
    public: 1
    table: wp_5_options
    siteurl: http://www.domain.com/blogs/blogname/
    home: http://www.domain.com/blogs/blogname/
    file: wp-config.php
    define('DOMAIN_CURRENT_SITE', 'www.domain.com' );

    During the original install we forced the www, but now it doesn't seem to work as intended.

  4. ironicsky
    Member
    Posted 14 years ago #

    upon more fiddling, I found if I change the permalink to use ugly query strings, the blog loads fine.
    When I go back to using a mod_rewrite solution, it dies again.

  5. andrea_r
    Moderator
    Posted 14 years ago #

    You have to hack the core to allow the www.

    Also, are you on a windows server?

  6. ironicsky
    Member
    Posted 14 years ago #

    The software was hacked to do the www.

    As I mentioned, I can access http://www.domain.com/blogs/ and http://www.domain.com/blogs/blogname/wp-admin without a problem, I just cannot access the blog itself or log in to the blog.

    It also works when I do not use perma-links.

    I really don't want to have to go code-hacking again because 2.8.6 put stuff back in. :-(

    I love Word Press, but this would be so much easier if the developers didn't try to force their beliefs of domain name structure on everyone.

  7. SteveAtty
    Member
    Posted 14 years ago #

    So when you try to use rewrite rules it doesn't work.

    So is mod_rewrite enabled?

  8. andrea_r
    Moderator
    Posted 14 years ago #

    "I just cannot access the blog itself or log in to the blog."

    Then that's a separate issue.

    The subfolder blogs are create thru the rewrite rules. To check if they work, try going to http://www.domain.com/blogs/about/. Does that work?

  9. ironicsky
    Member
    Posted 14 years ago #

    SteveAtty: Mod-rewrite is enabled.

    andrea_r yes, the about page works, as does http://www.domain.com/blogs/blog/test/

    Which is a post named test on the main blog and works fine.

  10. ironicsky
    Member
    Posted 14 years ago #

    I've done some more reasearch on the login issue (Also upgraded to 2.9.1).
    It appears that the only way the sub-user is able to login is to be setup on the main blog as a user. When they login, the error message is gone but they get redirected to the main blog and cannot post on the sub blogs.

  11. ironicsky
    Member
    Posted 14 years ago #

    This is now resolved.

    I decided the simplist resolution may involve reinstalled WPMU 2.9.1 from scratch, so I backed up the themes and db, blasted out the scripts, re-extracted and problem solved.

    Everything seems to be working now. It looks like it may have been a broken upgrade to 2.8.x from whatever I was running before.

    Lesson learned on my part... Don't trust in-place upgrades, always delete and reinstall.

  12. ironicsky
    Member
    Posted 14 years ago #

    Thanks for all your help!

About this Topic

  • Started 14 years ago by ironicsky
  • Latest reply from ironicsky