-
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
With table prefix enabled in app/etc/env.php visit Product/Category pages and you would receive error with raw sql with incorrect table names for store & eav_attribute causing the page to go into 500 error #36478
Conversation
The prefix for store and eav_attribute table was not considered and caused a breaking change in the product and category page.
Hi @realadityayadav. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Run only required test builds during development. Run all test builds before sending your pull request for review. For more details, review the Magento Contributor Guide documentation. 🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket. ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
Signed-off-by: Denis Kopylov <[email protected]>
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento run Functional Tests EE |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Approved
@magento create issue |
Hi @realadityayadav , Thanks for your contribution and collaboration. I havd tried to reproduce the issue in latest Steps followed:
If something I am missing in steps to reproduce , kindly provide me the information. Also, try to test it in latest Thanks |
@engcom-Lima: if you use prefix |
@engcom-Lima could you share database structure. I'm agree with @hostep, looks like you have eav table in database. Anyway direct usage of table names in queries is potentially problematic code |
Ok good, that means you are not triggering the code that gets modified in this PR, so try to figure out how to trigger that code or maybe @realadityayadav can give you more accurate steps? |
Hi @realadityayadav , Thanks for your contribution and collaboration. Please provide us more information inorder to reproduce the issue. Thanks |
@hostep @engcom-Lima @Den4ik I am not able to exactly find out why this could be an issue in our env though and not in your testing coz the error is straightforward. |
Hi @realadityayadav , Thanks for your contribution and collaboration. I have tried to reproduce it on Thanks |
@engcom-Lima I tried to find more into the code and came across that and it has data as follows ` [0]=> | object(Magento\Framework\Api\Search\Document)#2410 (1) { prepared from Elasticsearch Query response in Line https://github.com/magento/magento2/blob/2.4-develop/app/code/Magento/CatalogSearch/Model/ResourceModel/Fulltext/Collection.php#L464 I think in your case elasticsearch doesn't have enough data which causes no score index to return or somewhat? |
Hi @realadityayadav, We have tried to reproduce the issue using steps mentioned in comment but we are not able to reproduce it. Also we have checked the data mention in comment Can you please check once on 2.4-develop if issue exists? |
There was recently a big refactor that happened in the area of the code that was affected by this PR. This refactor happened in scope of "ACP2E-748: Layered navigation filters don't work when show out of stock is enabled". @realadityayadav: can you confirm this? That the problem is no longer there on the current |
Yes @hostep @engcom-Echo, The issue isn't reproducible on 2.4-develop so it seems to be fixed. |
The prefix for store and eav_attribute table was not considered & caused a breaking change in the product and category page.
Description (*)
With table prefix enabled in app/etc/env.php visit Product/Category pages and you would receive error with raw sql with incorrect table names for store & eav_attribute causing the page to go into 500 error
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)
Resolved issues: