-
Notifications
You must be signed in to change notification settings - Fork 9.4k
sitemap image URLs has wrong cache path #24484
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
Hi @bst2002git. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. @bst2002git do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
Hi @engcom-Charlie. Thank you for working on this issue.
|
@magento give me 2.3-develop instance - upcoming 2.3.x release |
Hi @bst2002git. Thank you for your request. I'm working on Magento 2.3-develop instance for you |
Hi @bst2002git, here is your Magento instance. |
✅ Confirmed by @engcom-Charlie Issue Available: @engcom-Charlie, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself. |
@magento i am working on it. |
Hi @prabhatrawat-webkul! 👋 |
Hi @prabhatrawat-webkul. Thank you for working on this issue.
|
#mm19pl |
Hi @krisdante. Thank you for working on this issue.
|
Hi @bst2002git. Thank you for your report.
The fix will be available with the upcoming 2.3.4 release. |
@krisdante Do we need to do anything else other than implementing the above 3 commits as I have applied all 3 commits and the image issue with sitemap is still there for me. It is still taking the Magento placeholder image. Also, my Magento version is 2.3.2 and the above patch is not working for me. |
How do you create a sitemap ? With cron on manually in admin pannel? |
It is strange that it takes placeholder image. It was generating wrong checksum - so the file was de-facto not existing (404) not placeholder. |
@krisdante we are generating the sitemap.xml from the Magento Admin and yes you are right that it is generating the wrong checksum, as I had removed the cache path from the image URL to see the product image exist on the path then it is showing me the correct product image. For eg- this is the image URL in the sitemap.xml (http://abc.com/media/catalog/product/cache/8b5174bff07af2e5e6c6a9fb70572a9b/3/-/3-30-521-2_c.jpg) which is giving me placeholder image and if I am trying this (http://abc.com/media/catalog/product/3/-/3-30-521-2_c.jpg) then it is showing me the correct image. So do you have any idea how to fix this issue? |
@krisdante We have debugged it further and found out that only for Sitemap, we have |
If they are blank it means that you do not have patch (emulation is not worked). It is the situation that was before the patch |
@krisdante But my magento version is 2.3.2 which is the latest version so why the patch is required? |
Because it is merged to 2.3.4 |
@krisdante ok so can you please provide me the commit id on which the fix is implemented? |
It's like 4 messages up. |
@krisdante But I have already tried the above but still having issues with checksum on the cached URL of the image on the sitemap xml |
If the checksum did not change - seems that you have not applied the patch correctly. |
product_page_image_large this image type needs to be defined. |
@krisdante Thanks for the help, the above hint fix the issue for me as I have only created view.xml for frontend theme and I was specifying product_page_image_large param there but there was no view.xml for backend and thats why setting was coming as blank for sitemap.xml as I was generating it from backend. |
You miss-understood me, and that also confirms that you did not apply patch properly. |
The patch solving a similar issue is available in Magento Quality Patches package (MQP) Patch Compatible versions Applying a patch - Magento OpenSource/Commerce
See MQP Magento Commerce documentation Applying a patch - Magento Commerce Cloud Patch Details |
Uh oh!
There was an error while loading. Please reload this page.
I've search into the database for the cache (ID) path and onto the filesystem,
but ID 3e7668b51c2d31ea41d3695bfbe7fa89 is not found
Preconditions (*)
Magento ver. 2.3.2 & 2.3-develop
Steps to reproduce (*)
Create sitemap.xml File
Expected result (*)
https://shop.local/pub/media/catalog/product/cache/394c582e6ac26a409e94a110e9356eac/1/1/1125.main_1.jpg
Actual result (*)
https://shop.local/de_at/product-test.html 2019-04-12T09:07:15+02:00 daily 1.0 https://shop.local/pub/media/catalog/product/cache/3e7668b51c2d31ea41d3695bfbe7fa89/1/1/1125.main_1.jpg Product Test https://shop.local/pub/media/catalog/product/cache/3e7668b51c2d31ea41d3695bfbe7fa89/1/1/1125.aw06.jpg Product TestThe text was updated successfully, but these errors were encountered: