ProjectNami / projectnami

WordPress powered by Microsoft SQL Server
http://projectnami.org
Other
267 stars 139 forks source link

New install - posts have broken images and crop errors #290

Open PHuhn opened 6 years ago

PHuhn commented 6 years ago

Hi Patrick:

I have a new local install of Project-Nami. No active plugins. If I use my web.config to turn on URL rewrite, I get a broken image and a Crop image error:

Crop Image


Image crop area preview. Requires mouse interaction.

Phil

patrickebates commented 6 years ago

Are you setting up the default WP rewrite rules or applying some custom rules of your own?

PHuhn commented 6 years ago

Hi Patrick:

The web.config is here https://github.com/PHuhn/ProjectNami-Windows-Install-Utils/blob/master/web.config. I am not familiar with default WP rewrite rules. The rewrite section is as follows:

    <rewrite>
      <rules>
        <rule name="Main WordPress Rule" stopProcessing="true">
          <match url=".*" />
          <conditions logicalGrouping="MatchAll">
            <!-- add input="{REQUEST_URI}" matchType="Pattern" pattern="^/wp-admin/" negate="true" /-->
            <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>

I pulled this together in September 2017, at that time this worked fine.

Phil

PHuhn commented 6 years ago

Hi Patrick:

I failed to assign the URL rewrite in the IIS Manager, that solved part of the problem. But, I am still getting the crop image problem.

Phil

patrickebates commented 6 years ago

Try using this ruleset instead. There are some slight differences.

    <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>
andrewnyr commented 5 years ago

@patrickebates I inserted your code but I still got the same error.

patrickebates commented 5 years ago

@andrewnyr what can you tell me about your server environment? Also, are you configured as a single WP site or a multisite? If multisite, subdir or domains?

andrewnyr commented 5 years ago

Windows Server 2008 R2 x64 Single site one domain

On Thu, Jan 24, 2019 at 9:43 PM Patrick Bates notifications@github.com wrote:

@andrewnyr https://github.com/andrewnyr what can you tell me about your server environment? Also, are you configured as a single WP site or a multisite? If multisite, subdir or domains?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ProjectNami/projectnami/issues/290#issuecomment-457435604, or mute the thread https://github.com/notifications/unsubscribe-auth/As1Dw3vRAZS4zJuZ5KtpnVlUa44lBb_Iks5vGm9UgaJpZM4VLtOh .

patrickebates commented 5 years ago

URL Rewrite 2.0 is installed and operating?

andrewnyr commented 5 years ago

Yep

patrickebates commented 5 years ago

Version of PHP and .Net running on the site? I assume the site is running Integrated Pipeline.

andrewnyr commented 5 years ago

Php 7.2 net up to date

patrickebates commented 5 years ago

Can you provide an example of an image src which is failing?

PHuhn commented 5 years ago

Note: I never got it working with URL rewrite.