New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
PHuhn opened this Issue Jul 11, 2018 · 13 comments

Comments

Projects
None yet
3 participants
@PHuhn
Copy link

PHuhn commented Jul 11, 2018

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

@PHuhn PHuhn changed the title New install - post have broken image New install - posts have broken image Jul 11, 2018

@PHuhn PHuhn changed the title New install - posts have broken image New install - posts have broken images and crop errors Jul 11, 2018

@patrickebates

This comment has been minimized.

Copy link
Member

patrickebates commented Jul 11, 2018

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

@PHuhn

This comment has been minimized.

Copy link
Author

PHuhn commented Jul 12, 2018

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

This comment has been minimized.

Copy link
Author

PHuhn commented Jul 21, 2018

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

This comment has been minimized.

Copy link
Member

patrickebates commented Jul 21, 2018

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

This comment has been minimized.

Copy link

andrewnyr commented Jan 24, 2019

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

@patrickebates

This comment has been minimized.

Copy link
Member

patrickebates commented Jan 25, 2019

@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

This comment has been minimized.

Copy link

andrewnyr commented Jan 25, 2019

@patrickebates

This comment has been minimized.

Copy link
Member

patrickebates commented Jan 26, 2019

URL Rewrite 2.0 is installed and operating?

@andrewnyr

This comment has been minimized.

Copy link

andrewnyr commented Jan 26, 2019

Yep

@patrickebates

This comment has been minimized.

Copy link
Member

patrickebates commented Jan 26, 2019

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

@andrewnyr

This comment has been minimized.

Copy link

andrewnyr commented Jan 26, 2019

Php 7.2 net up to date

@patrickebates

This comment has been minimized.

Copy link
Member

patrickebates commented Jan 26, 2019

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

@PHuhn

This comment has been minimized.

Copy link
Author

PHuhn commented Jan 26, 2019

Note: I never got it working with URL rewrite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment