WordPress.org

Ready to get started?Download WordPress

Forums

IIS7 / Permalinks / (3 posts)

  1. Vodor
    Member
    Posted 2 years ago #

    Hi Guys,

    I've had to restore a wordpress site that was running on IIS6, windows 2003 x64 and using http://www.isapirewrite.com on to a IIS7 windows 2008 r2 with microsofts urlrewrite http://www.iis.net/download/urlrewrite

    However with permalinks off, the pages work - Great but not great, there are tonnes of direct links and search engines looking for a the permalinks.
    When I turn the permalinks on, using /%postname%/ only I get the following error, this error only shows on the permalinks page in /wp-admin/

    Warning: domdocument() expects at least 1 parameter, 0 given in C:\Inetpub\vhosts\domain.com\httpdocs\wp-admin\includes\misc.php on line 483
    Fatal error: Call to undefined method: domdocument->load() in C:\Inetpub\vhosts\domain.com\httpdocs\wp-admin\includes\misc.php on line 486

    I do have the file in the root of the wordpress folder called web.config with the text in it that it told me too, and even after reverting it and setting the permissions so it could create this file itself I get the same issues.

    I'm using wordpress 3.0.1 / PHP 4.4.9 and I can't update it easily, long story, please don't say this is the only answer :( and under real time constraints to get this working.

    I can't find anything specific about the issue, loads about IIS7 and urlrewrite that all say the same thing. I've restored and tried this a number of times and always get shoved back at this same brick wall.

    Begging for help :)

    Cheers
    Ian

  2. Sage Brownell
    Member
    Posted 2 years ago #

    Does this help?
    http://codex.wordpress.org/Using_Permalinks
    "Make sure to end your structure with either %post_id% or %postname% (e.g. /%year%/%monthnum%/%day%/%postname%/) so that each permalink points to an individual post.
    For performance reasons, it is not a good idea to start your permalink structure with the category, tag, author, or postname fields. The reason is that these are text fields, and using them at the beginning of your permalink structure it takes more time for WordPress to distinguish your Post URLs from Page URLs (which always use the text "page slug" as the URL), and to compensate, WordPress stores a lot of extra information in its database (so much that sites with lots of Pages have experienced difficulties). So, it is best for the first structure tag to be a numeric one, such as /%year%/%postname%/. (Some people recommend /%post_id%/%postname%/ which works for performance reasons but others recommend against it because it is unfriendly to users in the many contexts in which users interact with URLs.) See Otto's technical writeup on the topic as well as this wp-testers discussion."

  3. Vodor
    Member
    Posted 2 years ago #

    Hi,

    Many thanks though I did read through the document the issue is that the moment I specify a permalink format (%postname%) in this instance, I get the php errors on the original post. I have to manually remove the permalink field in the wp_options table in the database just to be able to get back into the wp-admin/permalinks configuration page.

    Cheers
    Ian

Topic Closed

This topic has been closed to new replies.

About this Topic