WordPress.org

Ready to get started?Download WordPress

Forums

Root Site doesn't show Pretty Permalinks, but subdomains do (22 posts)

  1. toddneufeld
    Member
    Posted 1 year ago #

    Hi all-

    I've been happily running a multisite installation since just before 3.0, and it's working nicely except that my root site ignores pretty permalinks. My subdomains all have it working nicely.

    Until now it was just a minor annoyance, but I would really like to use permalinks on my main site as well.

    Does anyone know how I should troubleshoot this?

    -Todd

    p.s. toddneufeld.com is the root site, and permalinks are NOT currently enabled because they don't work

  2. toddneufeld
    Member
    Posted 1 year ago #

    I enabled pretty permalinks, in case anyone wants to check.

  3. Wow they all redirect to your main page...

    What's in your .htaccess?

  4. toddneufeld
    Member
    Posted 1 year ago #

    This is all of it:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule . index.php [L]
  5. Well that's correct. Wow.

    I'd start with switching themes and turning off any plugins that are only on the main site.

  6. toddneufeld
    Member
    Posted 1 year ago #

    I now know that I'm not crazy. This really is weird.

    And done. I activated twenty-eleven, and disabled any plugins that only run on the root site. There are a bunch of site-wide ones, like gravity forms, which are still active.

    All of my subdomains have perfectly pretty permalinks.

    For some reason, http://toddneufeld.com does not.

    What else can I do to trouble-shoot this?

  7. toddneufeld
    Member
    Posted 1 year ago #

    I tried using the domain mapping plugin, but it won't let me map the root site to itself. Any other ideas?

  8. Yeah, you can't domain map the main site.

    Did pretty permalinks work before you turned on Multisite?

  9. toddneufeld
    Member
    Posted 1 year ago #

    Yes, they worked before I turned on Multisite.

  10. What are the sitewide plugins? And do you have any mu-plugins?

  11. toddneufeld
    Member
    Posted 1 year ago #

    I have a bunch of network plugins, but note that most of these were installed AFTER permalinks didn't work:
    - Backupbuddy
    - Gravity Forms (and some of the plugins that extend it, like Gravity Forms CSS Ready Class Selector)
    - Easy Theme and Plugin Upgrades (this should be part of WP already)
    - Google XML Sitemaps
    - Google Analytics
    - Hide Welcome Panel for Multisite
    - Multisite Dashboard Switcher
    - Nav Menu Roles (love this!)
    - Network Plugin Auditor (ditto)
    - Redirection
    - Widget Logic
    - WordPress MU Domain Mapping

  12. note that most of these were installed AFTER permalinks didn't work:

    Yeah... that's ... Um. Bad :D It's hella hard to debug now.

    Are there any enlightening errors in your error log?

  13. toddneufeld
    Member
    Posted 1 year ago #

    I'm back online!

    I pulled up my error log, and it's really big. What sorts of things should I look for?

    At the top are a slew of errors from events-calendar-pro (which I'll move away from now) and random MySQL and PHP errors.

  14. Enable permalinks, click on one, see what errors pop up.

  15. toddneufeld
    Member
    Posted 1 year ago #

    After some trial and error I finally got an error log working. I used the instructions in the codex:
    http://codex.wordpress.org/Editing_wp-config.php#Configure_Error_Log

    I have MANY errors like this one:
    PHP Notice: Use of undefined constant WIDGETS_RELOADED_DIR - assumed 'WIDGETS_RELOADED_DIR' in /home/todd/public_html/wp-content/plugins/widgets-reloaded/widgets-reloaded.php on line 39

    This error seems to show up on every second or third line:
    [10-Dec-2012 21:41:31 UTC] PHP Notice: Undefined property: stdClass::$site_name in /home/todd/public_html/wp-login.php on line 76

    What should I be looking for?

  16. Turn off that plugin (widgets-reloaded)

  17. toddneufeld
    Member
    Posted 1 year ago #

    The offending plugin is off. And I there are no glaring errors in the logs. Permalinks on the root site are still ignored.

    Here's something that might be important: I just realized that my category links work. So you can go to:

    http://toddneufeld.com/managersal/ and see the posts. You just can't click on a specific post.

  18. Go back in and edit permalinks. Make no changes, but press save.

  19. toddneufeld
    Member
    Posted 1 year ago #

    Here's the error log afterwards. I disabled the 'Awesome Flickr Gallery' and it didn't do anything:

    [13-Dec-2012 21:58:58 UTC] PHP Notice: Use of undefined constant SHORTCODE_PRIORITY - assumed 'SHORTCODE_PRIORITY' in /home/todd/public_html/wp-content/plugins/awesome-flickr-gallery-plugin/index.php on line 125
    [13-Dec-2012 21:58:58 UTC] PHP Notice: Undefined index: slideshow_option in /home/todd/public_html/wp-content/plugins/awesome-flickr-gallery-plugin/index.php on line 131
    [13-Dec-2012 21:58:58 UTC] PHP Notice: Undefined index: slideshow_option in /home/todd/public_html/wp-content/plugins/awesome-flickr-gallery-plugin/index.php on line 163
    [13-Dec-2012 21:58:59 UTC] PHP Notice: Use of undefined constant SHORTCODE_PRIORITY - assumed 'SHORTCODE_PRIORITY' in /home/todd/public_html/wp-content/plugins/awesome-flickr-gallery-plugin/index.php on line 125
    [13-Dec-2012 21:58:59 UTC] PHP Notice: Undefined index: slideshow_option in /home/todd/public_html/wp-content/plugins/awesome-flickr-gallery-plugin/index.php on line 131
    [13-Dec-2012 21:58:59 UTC] PHP Notice: Undefined index: slideshow_option in /home/todd/public_html/wp-content/plugins/awesome-flickr-gallery-plugin/index.php on line 163

  20. There's something in one of your plugins, or you theme, man. It's gotta be. That -some- aren't working is just bizzare.

  21. toddneufeld
    Member
    Posted 1 year ago #

    Sorry to resurrect an old thread, but it keeps nagging at me. I had an idea today:

    Can I change which site WordPress considers to be my primary/root domain and move my current root to be a child site? And then I can see if I still have the same permalink problem.

    Does this make sense? Or will I mess something up?

  22. Yes you can do that.

    I detailed how in http://halfelf.org/ebooks/wordpress-multisite-110/ (page 81 or so)

Topic Closed

This topic has been closed to new replies.

About this Topic