• Resolved mrcycling

    (@mrcycling)


    After a long hiatus without the need to create new blogs, the other day we fired one up and it refuses to show any posts or pages, even though they have been published. I created a second new blog afterwards just to see if maybe it was a fluke, but it has the same issue.

    The blog is visible online and there is no problem logging in the admin area. We can write new posts and pages and “publish” them, but when you view the website nothing shows and we get a page not found message.

    If you go into the admin area, it shows a count of the posts / pages on both the dashboard, as well as the post /page panels, but it won’t show the actual pages or posts.

    On the homepage it shows the new pages in the navigation bar, but clicking on that gets you a page not found message.

    All of our older blogs work just fine, we can post, edit, etc without any headaches.

    The url for the test blog created is: tommy-test.thebiergarten.com. One of the older blogs that works ok is: yai-cooking.thebiergarten.com

    Any ideas from the gurus on how to remedy this ? We started with WPMU 2.something back in Feb 2009 and have kept up it upgraded via the automatic upgrade function as new releases come out and yes, we use the update network function to bring all the old blogs up to date.

Viewing 15 replies - 1 through 15 (of 31 total)
  • Go to the Permalinks menu & resave, see if that helps.

    If not, start turning off plugins.

    Thread Starter mrcycling

    (@mrcycling)

    The Permalink idea didn’t change anything. And there are no plugins on the test blog that aren’t on every working blog, mostly things like anti-spam, category cloud widget, etc (and turning them off would effect all of the working blogs as they are network wide).

    I checked the database and the posts are recorded there, with their permalink url, post, title, etc. So it is recording them, just not displaying them.

    Checking my error log I see some 404 errors for a file called: ../wp-content/ms-files.php when I tried to view the pages. But I don’t see a ms-files.php file in my web directory nor in an install zip for wp.

    Check your htacess. Someone mucked up the new rewrite rule when they last upgraded.

    It’s wp-includes/ms-files.php

    Thread Starter mrcycling

    (@mrcycling)

    Thanks, that took care of the 404 errors, but didn’t seem to effect the original issue. Was anything else mucked up ?

    No, but I have seen that happen before. I’m just trying to remember what it was. (plugin related most likely – yes I know that doesn’t seem to make sense if all plugins are running fine on all blogs otherwise)

    What happens if you activate twentyten?

    Thread Starter mrcycling

    (@mrcycling)

    Same results with twentyten. Actually tried several different themes just in case.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    What’s the full .htaccess file?

    Thread Starter mrcycling

    (@mrcycling)

    Here it is …

    RewriteEngine On
    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /sd_(.+)\ HTTP/1.1
    RewriteRule ^sd_([^/]+)/(.*)$ https://$1.mydomain.com/$2 [R=301,L]
    
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^cpanel.mydomain.com$
    RewriteCond %{REQUEST_URI} !^/cpanel/
    RewriteRule (.*) /cpanel/$1 [L]
    
    RewriteEngine On
    RewriteBase /
    
    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.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]
    
    <IfModule mod_security.c>
    <Files async-upload.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    </IfModule>

    … and no mydomain.com is not in the file, it lists my actual domain name. I know it is probably silly to hide the name since I mentioned it previously … old habits I guess ??

    You;ve got 3 rewrite engine on sections. Try removing the first section there.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    The multiple ons shouldn’t matter … that said, you’ve got the subFOLDER .htaccess and your URLs indicate subDOMAINS.

    Try this…

    RewriteEngine On
    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /sd_(.+)\ HTTP/1.1
    RewriteRule ^sd_([^/]+)/(.*)$ https://$1.mydomain.com/$2 [R=301,L]
    
    RewriteCond %{HTTP_HOST} ^cpanel.mydomain.com$
    RewriteCond %{REQUEST_URI} !^/cpanel/
    RewriteRule (.*) /cpanel/$1 [L]
    
    # BEGIN WordPress
    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]
    # END WordPress
    
    <IfModule mod_security.c>
    <Files async-upload.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    </IfModule>
    Thread Starter mrcycling

    (@mrcycling)

    Thanks for the revised htaccess. Everything is functioning again, but as I was removing plugins at the same time, I am not sure which action resulted in success (or which combo). Guess I should have paid better attention, so someone else in the future might avoid the same.

    As I am not that well versed in htaccess coding, which aspect was pointing to subfolder in lieu of subdomain ? Other than the rewrite for the cpanel which I pasted in, everything else in the htaccess was generated automatically by WP

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    You can compare the one you had and the one I gave you and see the differences. I don’t know why they have to be that way, but a lot of people who upgraded from MU to multisite had weird htaccess files.

    Thread Starter mrcycling

    (@mrcycling)

    I had looked, but didn’t know which code indicated subfolder vs subdomain … guess I need to study up some more on htaccess ??

    Also didn’t know I had upgraded from WPMU to Multisite. I just did the noob move of punching the automatic upgrade button every time it appeared.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    These are the subfolder specific lines:

    RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]

    Which say ‘If someone goes to mydomain.com/whatever/wp-*, then I should pull up the mydomain.com/wp-* page on the QT.’

    Thread Starter mrcycling

    (@mrcycling)

    Thank you kindly for the explanation … I can see part of what you mean, but now I KNOW I need to study more about htaccess. Thanks again.

Viewing 15 replies - 1 through 15 (of 31 total)
  • The topic ‘Can't see posts in new blogs’ is closed to new replies.