I recently installed WordPress on IIS 7 and wired it up to SQL Server 2008R2. The installation went fine, then after a short while of testing, new new posts could no longer be seen in any category (or any posts for that matter).
In the admin menu, under posts, I see that there are six published posts "Published (6)". However the list below this is empty. Also trying to view these on the site, by selecting the category returns
Nothing Found
Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.
I have re-installed the database, overwrote the PHP/SQL files and re-installed WP. Problem persists.
I tried the Settings/Permalinks suggestions here and. No change.
The suggestions here relate to not being able to write to the .htaccess file. Not an issue for me, and I am not seeing the error of not being able to save. (To verify, I saved, exited, navigated to the same Permalinks page and my settings were saved).
I even set the Permalinks to to default and removed the Web.config rewrite rules:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="wordpress" patternSyntax="Wildcard">
<match url="*"/>
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
</conditions>
<action type="Rewrite" url="index.php"/>
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
No change. (Added them back in).
I set SAVEQUERIES=TRUE in wp-config.php and I can see the contents of some of the posts in the log file.
ie. Hi there! I'm a bike messenger by day, aspiring actor by night, and this is my blog. I live in Los Angeles, have a great dog named Jack...
No change.
I have seen other posts that refer to changing some security settings as the system may be detecting a potential SQL injection attack. However those posts are related to an Apache-related installation, and cannot locate any references in my version.
Some assistance with this would be greatly appreciated.
Thanks.
-- UPDATE --
I retried this with WP 3.21 - same issue, and have been monitoring Windows/Temp/php53_errors.log. The only issue I see coming up is
[07-Mar-2012 21:00:51 UTC] WordPress database error 42000 : [Microsoft][SQL Server Native Client 10.0][SQL Server]Incorrect syntax near 'wp_users'. for query SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME LIKE ''wp_users'' made by display_setup_form, pdo_wpdb->query, pdo_wpdb->_post_query, pdo_wpdb->print_error