alexcheng1982 / docker-magento

Docker image for Magento 1.6 to 1.9
http://alexcheng1982.github.io/docker-magento
MIT License
142 stars 101 forks source link

Magento 1.7 looks broken #19

Closed bertonha closed 8 years ago

bertonha commented 8 years ago

On Magento 1.7 When I try to add a item to the cart I receive one error Cannot add the item to shopping cart.

or when I try to reindex the index I get an different Error:

root@bc63c5d0bb6c:/var/www/htdocs/var/log# cat exception.log
2016-11-17T15:25:49+00:00 DEBUG (7): Exception message: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'magento.catalog_product_index_group_price' doesn't exist
Trace: #0 /var/www/htdocs/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#1 /var/www/htdocs/lib/Zend/Db/Statement.php(300): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#2 /var/www/htdocs/lib/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#3 /var/www/htdocs/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('DELETE FROM `ca...', Array)
#4 /var/www/htdocs/lib/Varien/Db/Adapter/Pdo/Mysql.php(419): Zend_Db_Adapter_Pdo_Abstract->query('DELETE FROM `ca...', Array)
#5 /var/www/htdocs/lib/Zend/Db/Adapter/Abstract.php(661): Varien_Db_Adapter_Pdo_Mysql->query('DELETE FROM `ca...')
#6 /var/www/htdocs/app/code/core/Mage/Catalog/Model/Resource/Product/Indexer/Price.php(470): Zend_Db_Adapter_Abstract->delete('catalog_product...')
#7 /var/www/htdocs/app/code/core/Mage/Catalog/Model/Resource/Product/Indexer/Price.php(380): Mage_Catalog_Model_Resource_Product_Indexer_Price->_prepareGroupPriceIndex()
#8 /var/www/htdocs/app/code/core/Mage/Index/Model/Indexer/Abstract.php(143): Mage_Catalog_Model_Resource_Product_Indexer_Price->reindexAll()
#9 /var/www/htdocs/app/code/core/Mage/Index/Model/Process.php(209): Mage_Index_Model_Indexer_Abstract->reindexAll()
#10 /var/www/htdocs/app/code/core/Mage/Index/Model/Process.php(255): Mage_Index_Model_Process->reindexAll()
#11 /var/www/htdocs/app/code/core/Mage/Index/controllers/Adminhtml/ProcessController.php(124): Mage_Index_Model_Process->reindexEverything()
#12 /var/www/htdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(419): Mage_Index_Adminhtml_ProcessController->reindexProcessAction()
#13 /var/www/htdocs/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('reindexProcess')
#14 /var/www/htdocs/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#15 /var/www/htdocs/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#16 /var/www/htdocs/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#17 /var/www/htdocs/index.php(87): Mage::run('', 'store')
#18 {main}
alexcheng1982 commented 8 years ago

Thanks for the report. I may encounter this issue before, seems related to a patch. Will investigate.

alexcheng1982 commented 8 years ago

Just want to confirm with you. Have you used install-sampledata to install sample data? I figured out that the sample data from 1.6 was not working properly with 1.7 or 1.8 as it claimed in the website, so I removed the sample data support for both 1.7 and 1.8.

bertonha commented 8 years ago

Hello @alexcheng1982, Yes I executed install-sampledata before. try out. On your Magento 1.6 works perfect, Magento 1.8 I did not try.

alexcheng1982 commented 8 years ago

So the sample data is the culprit. The sample data is for 1.6 and the official website claims it also works for 1.7 and 1.8, but I think it doesn’t work any more due to incompatible database changes. You may not be able to use the sample data.

On 21/11/2016, at 22:54, Christofer Bertonha notifications@github.com wrote:

Hello @alexcheng1982 https://github.com/alexcheng1982, Yes I executed install-sampledata before. try out. On your Magento 1.6 works perfect, Magento 1.8 I did not try.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/alexcheng1982/docker-magento/issues/19#issuecomment-261892770, or mute the thread https://github.com/notifications/unsubscribe-auth/ABHgELoL7JJdFQm2jpuk3rvzYco_ALGIks5rAWpugaJpZM4K1hIi.

bertonha commented 8 years ago

That is sad :( really thanks @alexcheng1982

alexcheng1982 commented 8 years ago

I already removed the install-sampledata script from 1.7 and 1.8 branches. It seems that Magento doesn't maintain the sample data anymore.

On Tue, Nov 22, 2016 at 2:00 AM, Christofer Bertonha < notifications@github.com> wrote:

Closed #19 https://github.com/alexcheng1982/docker-magento/issues/19.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/alexcheng1982/docker-magento/issues/19#event-866458477, or mute the thread https://github.com/notifications/unsubscribe-auth/ABHgEFawfxVwpQJwbXLvIOhgxmppqQiMks5rAZXkgaJpZM4K1hIi .

Regards Alex Cheng