• I’m running 3.3.1 on IIS7 and there are several problems:

    1) When I try to view a posting or a category (or tags, etc) I get a WordPress 404. Even when NOT using fancy permalinks, this still happens.

    also

    2) When I upload media, the media count updates and shows that there are x. files in the library, but the list where the media should appear is blank.

    3) When I add a new post, the post is neither accessible in on the website, NOR does it show up in the list in the admin area. However, like the media, the post count shows that there are items there!

    What could this possibly be?

Viewing 5 replies - 1 through 5 (of 5 total)
  • You need to include a web.config file in the site root

    Thread Starter abelafonte

    (@abelafonte)

    I have one and it includes the following:

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
      <system.webServer>
        <rewrite>
          <rules>
            <rule name="Main Rule" stopProcessing="true">
              <match url=".*"/>
              <conditions logicalGrouping="MatchAll">
                <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
                <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
              </conditions>
              <action type="Rewrite" url="index.php/{R:0}"/>
            </rule>
          </rules>
        </rewrite>
      </system.webServer>
    </configuration>

    Review this and discuss with your webhost. The URL Rewrite Module needs to be on.

    Thread Starter abelafonte

    (@abelafonte)

    I’m pretty sure it’s on because I’m running MODx on the same box and it works fine with pretty links.

    Also, I still get 404 errors when I am not using pretty links. (?p=123)
    So I don’t see how how would that impact what I’m seeing as well as the visibility of my posts in the admin area?

    Thread Starter abelafonte

    (@abelafonte)

    In case anyone runs across this error in the future, this thread has the answer. There is a slight change that needs to be made to the wp-db-abstraction “Must Use” plugin:

    https://sourceforge.net/projects/wp-sqlsrv/forums/forum/1124403/topic/5004241

    // Check for true offset if ( (count($limit_matches) == 5 ) && $limit_matches[1] != '0' ) { $true_offset = true; } elseif ( (count($limit_matches) == 5 ) && $limit_matches[1] == '0' ) { $limit_matches[1] = $limit_matches[4]; }

    Count Limit Match should be changed from == 5 to >= 5 like so.

    // Check for true offset if ( (count($limit_matches) == 5 ) && $limit_matches[1] != '0' ) { $true_offset = true; } elseif ( (count($limit_matches) >= 5 ) && $limit_matches[1] == '0' ) { $limit_matches[1] = $limit_matches[4]; }

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘IIS 404s and Missing Media Files and Posts’ is closed to new replies.