-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
If name attribute scope is changed to global, sitemap crashes #5941
Comments
@AirmanAJK Thanks for reporting this issue. |
Where Can I see the fix? I have the same issue in my project. Thanks! |
Any update to this? It's a quick fix and I reported it over 4 months ago. CE 2.1.3 came out and it hasn't changed. If I wasn't a developer, Magento would be unusable due to these small but site-breaking bugs.
|
I've changed the function 'getCollection' inside this Product.php to: (and this fixed the problem for me)
|
I made a workaround module based on the fix above. May save someone some time. |
Internal ticket to track issue progress: MAGETWO-70707 |
Hi @AirmanAJK Please see the PR and commits, referenced in this ticket to see the fix. |
Occurring in CE 2.1.0
If the scope of the name attribute is set to global, the sitemap will crash, showing the message "We can't generate the sitemap right now."
This is because the _joinAttribute function inside \Magento\Sitemap\Model\ResourceModel\Catalog\Product only adds a 't2_name' alias if the attribute provided is not global. However, the getCollection function assumes name will never be global as it has hardcoded references to 't2_name.value'.
The text was updated successfully, but these errors were encountered: