Skip to content
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

404 Error while Crawling Images #875

Open
LakhanGandhi opened this issue Jul 31, 2022 · 2 comments
Open

404 Error while Crawling Images #875

LakhanGandhi opened this issue Jul 31, 2022 · 2 comments
Labels

Comments

@LakhanGandhi
Copy link

Issue :
While generating static site, in crawling, images are getting 404 error for favicon and uploaded images.

Initial Finding :

  • Plugin is searching for wrong URL and resulting in 404 error.
  • For windows OS backslash should replace with frontslash in Favicon and Uploaded images path.
    e.g :
    404 for URL /wp-content/uploads\2022\07\bg1.jpg

In above example, "/wp-content/uploads" is default upload folder path and "\2022\07\bg1.jpg" is image path.

In Image path \ should be replaced with / like its In "C:\Bitnami\wordpress-6.0-0\apps\wordpress\htdocs\wp-content\plugins\wp2static\src" , DetectWPIncludesAssets.php is replacing \ with / for Assets url for windows.

System and Setup Details :

  • Windows 10
  • Bitnami - 6.0
  • WordPress 6.0.0
  • Php - 8.0.20

Theme Details :

  • Default Theme
  • Astra Theme
  • Twenty Twenty Theme

Error Screenshot :
Logs

@leonstafford
Copy link
Contributor

Many thanks for reporting this, @LakhanGandhi!

@iammudassar
Copy link

Facing the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants