Note that there are some explanatory texts on larger screens.

plurals
  1. POMagento Layered Navigation "You cannot define a correlation name 'mycustomattribute' more than once "
    text
    copied!<p>I'm using Magento's layered navigation with my custom attributes and price. If I filter by price it works; but when filtering by my custom attributes it shows:</p> <blockquote> <p>You cannot define a correlation name 'mycustomattribute' more than once</p> </blockquote> <p>trace:</p> <pre><code>#0 /home/coloresh/public_html/ColoreSG.com/lib/Varien/Db/Select.php(281): Zend_Db_Select-&gt;_join('inner join', Array, 'metal_idx.entit...', Array, NULL) #1 /home/coloresh/public_html/ColoreSG.com/lib/Zend/Db/Select.php(336): Varien_Db_Select-&gt;_join('inner join', Array, 'metal_idx.entit...', Array, NULL) #2 /home/coloresh/public_html/ColoreSG.com/lib/Zend/Db/Select.php(315): Zend_Db_Select-&gt;joinInner(Array, 'metal_idx.entit...', Array, NULL) #3 /home/coloresh/public_html/ColoreSG.com/app/code/core/Mage/Catalog/Model/Resource/Layer/Filter/Attribute.php(70): Zend_Db_Select-&gt;join(Array, 'metal_idx.entit...', Array) #4 /home/coloresh/public_html/ColoreSG.com/app/code/core/Mage/Catalog/Model/Layer/Filter/Attribute.php(94): Mage_Catalog_Model_Resource_Layer_Filter_Attribute-&gt;applyFilterToCollection(Object(Mage_Catalog_Model_Layer_Filter_Attribute), '49') #5 /home/coloresh/public_html/ColoreSG.com/app/code/core/Mage/Catalog/Block/Layer/Filter/Abstract.php(91): Mage_Catalog_Model_Layer_Filter_Attribute-&gt;apply(Object(Mage_Core_Controller_Request_Http), Object(Mage_Catalog_Block_Layer_Filter_Attribute)) #6 /home/coloresh/public_html/ColoreSG.com/app/code/core/Mage/Catalog/Block/Layer/Filter/Abstract.php(73): Mage_Catalog_Block_Layer_Filter_Abstract-&gt;_initFilter() #7 /home/coloresh/public_html/ColoreSG.com/app/code/core/Mage/Catalog/Block/Layer/View.php(136): Mage_Catalog_Block_Layer_Filter_Abstract-&gt;init() #8 /home/coloresh/public_html/ColoreSG.com/app/code/core/Mage/Core/Block/Abstract.php(238): Mage_Catalog_Block_Layer_View-&gt;_prepareLayout() #9 /home/coloresh/public_html/ColoreSG.com/app/code/core/Mage/Core/Model/Layout.php(456): Mage_Core_Block_Abstract-&gt;setLayout(Object(Mage_Core_Model_Layout)) #10 /home/coloresh/public_html/ColoreSG.com/app/code/core/Mage/Core/Model/Layout.php(472): Mage_Core_Model_Layout-&gt;createBlock('catalog/layer_v...', 'catalog.leftnav') #11 /home/coloresh/public_html/ColoreSG.com/app/code/core/Mage/Core/Model/Layout.php(239): Mage_Core_Model_Layout-&gt;addBlock('catalog/layer_v...', 'catalog.leftnav') #12 /home/coloresh/public_html/ColoreSG.com/app/code/core/Mage/Core/Model/Layout.php(205): Mage_Core_Model_Layout-&gt;_generateBlock(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element)) #13 /home/coloresh/public_html/ColoreSG.com/app/code/core/Mage/Core/Model/Layout.php(210): Mage_Core_Model_Layout-&gt;generateBlocks(Object(Mage_Core_Model_Layout_Element)) #14 /home/coloresh/public_html/ColoreSG.com/app/code/core/Mage/Core/Controller/Varien/Action.php(344): Mage_Core_Model_Layout-&gt;generateBlocks() #15 /home/coloresh/public_html/ColoreSG.com/app/code/core/Mage/Catalog/controllers/CategoryController.php(146): Mage_Core_Controller_Varien_Action-&gt;generateLayoutBlocks() #16 /home/coloresh/public_html/ColoreSG.com/app/code/core/Mage/Core/Controller/Varien/Action.php(419): Mage_Catalog_CategoryController-&gt;viewAction() #17 /home/coloresh/public_html/ColoreSG.com/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action-&gt;dispatch('view') #18 /home/coloresh/public_html/ColoreSG.com/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard-&gt;match(Object(Mage_Core_Controller_Request_Http)) #19 /home/coloresh/public_html/ColoreSG.com/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front-&gt;dispatch() #20 /home/coloresh/public_html/ColoreSG.com/app/Mage.php(683): Mage_Core_Model_App- &gt;run(Array) #21 /home/coloresh/public_html/ColoreSG.com/index.php(87): Mage::run('', 'store') #22 {main} </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload