-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Table 'magento.catalog_product_index_price_temp' doesn't exist #39664
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 @defenseoftheancients. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
Hi @engcom-Hotel. Thank you for working on this issue.
|
Hello @defenseoftheancients, Thanks for the report and collaboration! We have tried to reproduce this issue in the latest development branch i.e. 2.4-develop with the following configuration:
But it seems the issue is not reproducible for us. Please refer to the below screencast for the reference: Table-magento-catalog_product_index_price_temp-doesn-t-exist-.-Issue-39664-.-magento-magento2.webmPlease let us know if we missed anything. Thanks |
Hello @defenseoftheancients, We are still waiting for your reply on this issue. Thanks |
Sorry for the late reply. |
The issue occurs only when using 'Update on Save' |
Hello @defenseoftheancients, Thanks for the update! We have tried further to reproduce the issue, but still the issue is not reproducible for us. Please refer to the below screenshot and screencast for the reference: 2-min.mp4Let us know if we missed anything. Thanks |
Thank you for checking again. I’ve recorded a video to demonstrate the issue I’m encountering. Please refer to the following timestamps in the video:
Video: https://vimeo.com/1082225746 Let me know if you need any additional details to help reproduce the issue. |
Hello @defenseoftheancients, I truly appreciate your effort here, and we have again tried to reproduce the issue in the latest development branch i.e. 2.4-develop but the issue is not reproducible for us. Please refer to the attached screencast for reference: 4-min.mp4It might be possible the issue has been resolved in the latest development branch hence we request you to please try to reproduce the issue in the latest stable release and let us know if you are still able to reproduce the issue. Thanks |
I’ve tested the issue again using the 2.4-develop branch and was still able to reproduce it. I’ve recorded a video demonstrating the steps and the issue in this version as well. Please refer to the following timestamps in the video:
Video link: https://vimeo.com/1082579063?share=copy To ensure it's not environment-specific, I also tried a fresh installation using a different Docker setup (markshust/docker-magento), but the error still persists. Please let me know if you need any additional information or environment details to help investigate further. |
Hello @defenseoftheancients, Thanks for the updates! But as the issue is not reproducible for us with the below environment:
Please let us know additional information if you have with the environment details. Thanks |
Thank you for the update. To match your testing environment, I set up a fresh Magento 2.4-develop installation using the following configuration:
Despite matching the environment, I was still able to reproduce the issue. I’ve recorded a new video showing the steps and the issue occurring under these conditions. Video link: https://vimeo.com/1083104008?share=copy#t=0 If this still isn’t considered a valid issue from your side, I’m okay with closing it. Just wanted to ensure I shared all possible details to help clarify the situation. Thanks again for your time and support. |
Preconditions and environment
Steps to reproduce
Execute the following CLI command:
Expected result
Actual result
Product Price Index: Fails due to a child process error.
Catalog Search Index: Fails due to a child process error.
Base table or view not found: 1146 Table catalog_product_index_price_temp' doesn't exist, query was: SELECT i.entity_id, o.option_id FROM catalog_product_index_price_temp AS i INNER JOIN catalog_product_entity AS e ON e.entity_id = i.entity_id INNER JOIN catalog_product_option AS o ON o.product_id = e.entity_id
Additional information
The issue originates in the CustomOptionPriceModifier::getConnection method:
(see \Magento\Catalog\Model\ResourceModel\Product\Indexer\Price\CustomOptionPriceModifier::getConnection)
Root Cause Analysis:
(see: Magento\Catalog\ResourceModel\Product\Indexer\Price\SimpleProductPrice)
I modify the getConnection method to always establish a new connection instead of reusing the previous one and and the issue was resolved:
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: