Skip to content
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

Upgrade to 1.1.2 : You cannot define a correlation name 'mc' more than once #725

Closed
seansan opened this issue Jun 4, 2018 · 12 comments
Closed
Milestone

Comments

@seansan
Copy link
Contributor

seansan commented Jun 4, 2018

Upgrade to 1.1.2 from 1.1.11

You cannot define a correlation name 'mc' more than once

Trace:
#0 lib/Varien/Db/Select.php(281): Zend_Db_Select->_join('left join', Array, 'mc.related_id=m...', Array, NULL)
#1 app/code/core/Zend/Db/Select.php(373): Varien_Db_Select->_join('left join', Array, 'mc.related_id=m...', Array, NULL)
#2 app/code/community/Ebizmarts/MailChimp/Model/Observer.php(506): Zend_Db_Select->joinLeft(Array, 'mc.related_id=m...', Array)
#3 app/code/core/Mage/Core/Model/App.php(1360): Ebizmarts_MailChimp_Model_Observer->addColumnToSalesOrderGridCollection(Object(Varien_Event_Observer))
#4 app/code/core/Mage/Core/Model/App.php(1333): Mage_Core_Model_App->_callObserverMethod(Object(Ebizmarts_MailChimp_Model_Observer), 'addColumnToSale...', Object(Varien_Event_Observer))
#5 app/Mage.php(448): Mage_Core_Model_App->dispatchEvent('sales_order_gri...', Array)
#6 app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php(589): Mage::dispatchEvent('sales_order_gri...', Array)
#7 lib/Varien/Data/Collection/Db.php(565): Mage_Core_Model_Resource_Db_Collection_Abstract->_beforeLoad()
#8 lib/Varien/Data/Collection.php(741): Varien_Data_Collection_Db->load()
#9 app/design/adminhtml/default/default/template/bl/customgrid/widget/grid/16.phtml(194): Varien_Data_Collection->getIterator()
#10 app/code/core/Mage/Core/Block/Template.php(241): include('/var/www/html/s...')
#11 app/code/core/Mage/Core/Block/Template.php(273): Mage_Core_Block_Template->fetchView('adminhtml/defau...')
#12 app/code/core/Mage/Core/Block/Template.php(287): Mage_Core_Block_Template->renderView()
#13 app/code/core/Mage/Adminhtml/Block/Template.php(81): Mage_Core_Block_Template->_toHtml()
#14 app/code/core/Mage/Core/Block/Abstract.php(923): Mage_Adminhtml_Block_Template->_toHtml()
#15 app/code/core/Mage/Core/Block/Abstract.php(641): Mage_Core_Block_Abstract->toHtml()
#16 app/code/core/Mage/Core/Block/Abstract.php(585): Mage_Core_Block_Abstract->_getChildHtml('grid', true)
#17 app/code/core/Mage/Adminhtml/Block/Widget/Grid/Container.php(77): Mage_Core_Block_Abstract->getChildHtml('grid')
#18 app/design/adminhtml/default/default/template/widget/grid/container.phtml(36): Mage_Adminhtml_Block_Widget_Grid_Container->getGridHtml()
#19 app/code/core/Mage/Core/Block/Template.php(241): include('/var/www/html/s...')
#20 app/code/core/Mage/Core/Block/Template.php(273): Mage_Core_Block_Template->fetchView('adminhtml/defau...')
#21 app/code/core/Mage/Core/Block/Template.php(287): Mage_Core_Block_Template->renderView()
#22 app/code/core/Mage/Adminhtml/Block/Template.php(81): Mage_Core_Block_Template->_toHtml()
#23 app/code/core/Mage/Adminhtml/Block/Widget/Container.php(308): Mage_Adminhtml_Block_Template->_toHtml()
#24 app/code/core/Mage/Core/Block/Abstract.php(923): Mage_Adminhtml_Block_Widget_Container->_toHtml()
#25 app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml()
#26 app/code/core/Mage/Core/Block/Abstract.php(923): Mage_Core_Block_Text_List->_toHtml()
#27 app/code/core/Mage/Core/Block/Abstract.php(641): Mage_Core_Block_Abstract->toHtml()
#28 app/code/core/Mage/Core/Block/Abstract.php(585): Mage_Core_Block_Abstract->_getChildHtml('content', true)
#29 app/design/adminhtml/default/default/template/page.phtml(74): Mage_Core_Block_Abstract->getChildHtml('content')
#30 app/code/core/Mage/Core/Block/Template.php(241): include('/var/www/html/s...')
#31 app/code/core/Mage/Core/Block/Template.php(273): Mage_Core_Block_Template->fetchView('adminhtml/defau...')
#32 app/code/core/Mage/Core/Block/Template.php(287): Mage_Core_Block_Template->renderView()
#33 app/code/core/Mage/Adminhtml/Block/Template.php(81): Mage_Core_Block_Template->_toHtml()
#34 app/code/core/Mage/Core/Block/Abstract.php(923): Mage_Adminhtml_Block_Template->_toHtml()
#35 app/code/core/Mage/Core/Model/Layout.php(555): Mage_Core_Block_Abstract->toHtml()
#36 app/code/core/Mage/Core/Controller/Varien/Action.php(390): Mage_Core_Model_Layout->getOutput()
#37 app/code/core/Mage/Adminhtml/controllers/Sales/OrderController.php(95): Mage_Core_Controller_Varien_Action->renderLayout()
#38 app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Adminhtml_Sales_OrderController->indexAction()
#39 app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('index')
#40 app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#41 app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#42 app/Mage.php(683): Mage_Core_Model_App->run(Array)
#43 index.php(88): Mage::run('STORE', 'store')

@Santiagoebizmarts
Copy link
Contributor

Hello @seansan

Please add more information in order to allow us to try to replicate this.

Regards.

@seansan
Copy link
Contributor Author

seansan commented Jun 4, 2018 via email

@Santiagoebizmarts
Copy link
Contributor

I will re-open if we get to the cause of this and it is related to the extension. That is why we have the template suggesting the information that is required to replicate issues.
There is nothing there stating what is happening that triggers that error.

@seansan
Copy link
Contributor Author

seansan commented Jun 4, 2018 via email

@seansan
Copy link
Contributor Author

seansan commented Jun 4, 2018 via email

@Santiagoebizmarts
Copy link
Contributor

Santiagoebizmarts commented Jun 4, 2018

@seansan
For these kind of contributions we have our forums
The idea of gitHub issues is to report a particular problem and what triggered it.
We expect something like this: "When I go to the order grid and filter by xxxx value..."
I mean something to allow us to replicate the issue, not a solution. Of course solutions are welcome as well.

Looking at the code you pasted above I see there false condition in the if causing it to never really access that if.
You can see HERE there is no "false" at the end of the conditions.

Regards.

@seansan
Copy link
Contributor Author

seansan commented Jun 4, 2018 via email

@Santiagoebizmarts
Copy link
Contributor

@seansan We cannot keep every particular situation open just in case. We need to have the ability to replicate or solve the problem otherwise it will get very hard to keep track of the issues to solve.
This is a free extension with thousands of users.
You can post this same issue in the forum and it will not be closed. There people can help into finding the problem/solution and finally create an issue for it if there is something needed to be changed in the extension.

Regards.

@view6com
Copy link

view6com commented Jul 3, 2018

Thanks @seansan updating line 501 (app/code/community/Ebizmarts/MailChimp/Model/Observer.php) with && false got around this admin error for us, so it ends up like this:

if ($ecommEnabledAnyScope && $addColumnConfig && false) {

Thanks again.

@seansan
Copy link
Contributor Author

seansan commented Jul 3, 2018

Thx
TBH it is a stupid fix, but it works

I needed to share as long as tickets get closed so fast here ....

@Santiagoebizmarts
Copy link
Contributor

Hello @seansan @view6com
You can see a fix for this at #732 (comment)
It will be added soon and will be referenced to this issue as well as the #732
@sukiman was kind enough to help in this matter.

Regards.

Santiagoebizmarts added a commit that referenced this issue Jul 19, 2018
Avoid creating mc alias if already exists. resolves #725
@tomlankhorst
Copy link
Contributor

For the time being, disable the 'Show in product grid' option in the Mailchimp config to get around the exception.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants