-
Notifications
You must be signed in to change notification settings - Fork 94
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
Comments
Hello @seansan Please add more information in order to allow us to try to replicate this. Regards. |
You cant just close issues
…On Mon, 4 Jun 2018 at 19:05, Santiagoebizmarts ***@***.***> wrote:
Closed #725 <#725>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#725 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAn0awCBvBDNOJTE7C1qVjZ74VjOpD9cks5t5WjQgaJpZM4UZHJ2>
.
|
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. |
no I am reporting the error
(could also not do that)
If I knew the solution I would fix it myself
If you leave the issue open then the community can *contribute*
Maybe someone has seen the issue before: but if you close it nobody will
every see it
And it makes it look like there is no issue
…On Mon, Jun 4, 2018 at 7:43 PM Santiagoebizmarts ***@***.***> wrote:
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.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#725 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAn0axs-O1LgepPuh6DmEz7v6RfeIq0Aks5t5XHJgaJpZM4UZHJ2>
.
|
The error is here
changing mc to mchimp does not solve the issue (and rules out most other
extensions, unless the both use MC and MCHIMP)
public function
addColumnToSalesOrderGridCollection(Varien_Event_Observer $observer)
{
$helper = $this->makeHelper();
$addColumnConfig = $helper->getMonkeyInGrid(0);
$ecommEnabledAnyScope = $helper->isEcomSyncDataEnabledInAnyScope();
if ($ecommEnabledAnyScope && $addColumnConfig && false) {
$collection = $observer->getOrderGridCollection();
$collection->addFilterToMap('store_id', 'main_table.store_id');
$select = $collection->getSelect();
$adapter =
$this->getCoreResource()->getConnection('core_write');
$select->joinLeft(array('mchimp' =>
$collection->getTable('mailchimp/ecommercesyncdata')),
$adapter->quoteInto('mchimp.related_id=main_table.entity_id AND type = ?',
Ebizmarts_MailChimp_Model_Config::IS_ORDER),
array('mchimp.mailchimp_synced_flag', 'mchimp.id'));
$select->group("main_table.entity_id");
$direction = $this->getRegistry();
if ($direction) {
$collection->addOrder('mchimp.id', $direction);
$this->removeRegistry();
}
}
}
…On Mon, Jun 4, 2018 at 7:43 PM Santiagoebizmarts ***@***.***> wrote:
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.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#725 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAn0axs-O1LgepPuh6DmEz7v6RfeIq0Aks5t5XHJgaJpZM4UZHJ2>
.
|
@seansan Looking at the code you pasted above I see there false condition in the if causing it to never really access that if. Regards. |
We added false to circumvent the error and at least use it
And how it was triggered. That was written on line 1
We upgraded
I think it is very clear
You should not just close issues
…On Mon, 4 Jun 2018 at 20:41, Santiagoebizmarts ***@***.***> wrote:
@seansan <https://github.com/seansan>
For these kind of contributions we have our forums
<https://ebizmarts.com/forums/view/6>
The idea of 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
<https://github.com/mailchimp/mc-magento/blob/1.1.12/app/code/community/Ebizmarts/MailChimp/Model/Observer.php#L501>
there is no if at the end of the conditions.
Regards.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#725 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAn0a2_JhA1uP3u4TQsV0RgCeNA2xqyAks5t5X9JgaJpZM4UZHJ2>
.
|
@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. Regards. |
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. |
Thx I needed to share as long as tickets get closed so fast here .... |
Hello @seansan @view6com Regards. |
Avoid creating mc alias if already exists. resolves #725
For the time being, disable the 'Show in product grid' option in the Mailchimp config to get around the exception. |
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')
The text was updated successfully, but these errors were encountered: