[wp-trac] [WordPress Trac] #36506: Duplicate directives in web.config after WordPress 4.5 installation on Windows

WordPress Trac noreply at wordpress.org
Wed Apr 13 08:55:36 UTC 2016


#36506: Duplicate directives in web.config after WordPress 4.5 installation on
Windows
---------------------------+------------------------------
 Reporter:  oneumyvakin    |       Owner:
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Rewrite Rules  |     Version:  4.5
 Severity:  normal         |  Resolution:
 Keywords:                 |     Focuses:
---------------------------+------------------------------
Changes (by ocean90):

 * component:  General => Rewrite Rules


Old description:

> *DESCRIPTION*
> Duplicate directives in web.config after WordPress 4.5 installation on
> Windows
>
> *ENVIRONMENT*
> - WordPress 4.5
> - Windows 2012 R2
> - PHP 5.4.45
>
> *IMPACT*
> - WordPress can't be used
>
> *STEPS*
> # Extract wordpress-4.5.zip archive into domain's root or sub-folder
> # Start installation procedure
> # Installation wizard finished without any error
> # Try to open login page or home page
>
> *ACTUAL RESULT*
> Error 500
>
> *EXPECTED RESULT*
> - No such error
>
> *ROOT CAUSE*
>
> IIS error:
> {{{
> \\?\<path>\httpdocs\wordpress\web.config ( 6) :Cannot add duplicate
> collection entry of type 'rule' with unique key attribute 'name' set to
> 'WordPress: http://test.plesk.ru/wordpress'
> }}}
>
> Content of web.config:
>
> {{{
>
> <?xml version="1.0" encoding="UTF-8"?>
> <configuration>
>   <system.webServer>
>     <rewrite>
>       <rules><rule name="WordPress:
> http://test3.a10-52-58-17.qa.plesk.ru" 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>
>
>                         <rule name="WordPress:
> http://test3.a10-52-58-17.qa.plesk.ru" 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>
>
> }}}

New description:

 '''DESCRIPTION'''
 Duplicate directives in web.config after WordPress 4.5 installation on
 Windows

 '''ENVIRONMENT'''
 - WordPress 4.5
 - Windows 2012 R2
 - PHP 5.4.45

 '''IMPACT'''
 - WordPress can't be used

 '''STEPS'''
 # Extract wordpress-4.5.zip archive into domain's root or sub-folder
 # Start installation procedure
 # Installation wizard finished without any error
 # Try to open login page or home page

 '''ACTUAL RESULT'''
 Error 500

 '''EXPECTED RESULT'''
 - No such error

 '''ROOT CAUSE'''

 IIS error:
 {{{
 \\?\<path>\httpdocs\wordpress\web.config ( 6) :Cannot add duplicate
 collection entry of type 'rule' with unique key attribute 'name' set to
 'WordPress: http://test.plesk.ru/wordpress'
 }}}

 Content of web.config:

 {{{

 <?xml version="1.0" encoding="UTF-8"?>
 <configuration>
   <system.webServer>
     <rewrite>
       <rules><rule name="WordPress: http://test3.a10-52-58-17.qa.plesk.ru"
 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>

                         <rule name="WordPress:
 http://test3.a10-52-58-17.qa.plesk.ru" 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>

 }}}

--

Comment:

 Hello @oneumyvakin, welcome to Trac!

 Thanks fro

 Could this be caused by [36953] somehow?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36506#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list