-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Images added to sitemap are "404 Not Found" on Nginx [Magento 2.1.0] #5321
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
Comments
Is not exactly the same issue, but might be related to: #1146 |
@RG-1 Unfortunately I could not reproduce this issue. May you please advise if this problem is still relevant for latest release Magento 2? |
I haven't verified it it is still true on the latest version, but we definitely had the same problem with Magento 2.1.3 or 2.1.4 if I remember correctly. We could work around it by setting the configurations:
By default, these fields are empty and the 'pub' directory part was getting added to the image paths in the sitemap.xml files. Be aware that you should test this with the 'pub' directory being used as docroot. @IlnitskiyArtem: not sure if this helps? If you want I can test again using a plain vanilla Magento setup. |
@IlnitskiyArtem Ok, I was able to reproduce this again in Magento 2.1.7 So steps to reproduce:
Would be great if this could be fixed! The workaround mentioned above gets us around the issue, but not all Magento customers will discover this workaround, so a fix would be appreciated :) Thanks! |
@hostep |
@RG-1, thank you for your report. |
Why hasn't the issue been fixed in 2 years? |
Still a bug in 2.1.7
|
#distributed-cd |
@kamilszarmach thank you for joining. Please accept team invitation here and self-assign the issue. |
After founding the obscure setting |
My quick workaround in NGINX:
|
Still exist in 2.2.6 Workaround by hostep works for me. Set generation time some minutes past to current time and generate sitemap with "bin/magento cron:run" generates sitemap without /pup/ in image path. Then I set frequency to monthly to not overwrite by automation. |
Another workaround for those who still are looking for a solution for this is to create a dummy pub symlink in the pub directory, like so:
|
#mm19pl |
Hi @krisdante. Thank you for working on this issue.
|
This is now (2.3.2) duplicate of #24484 as the reason of 404 is different. See the sitemap below:
The 404 problem is fixed by #24605 |
Hi @RG-1. Thank you for your report.
The fix will be available with the upcoming 2.3.4 release. |
@magento-engcom-team You also need to release a patch for Magento 2.2.9 EE as this effects us enterprise customers also... |
Steps to reproduce
Expected result
Actual result
The text was updated successfully, but these errors were encountered: