magento 2 Element 'referenceContainer', attribute 'after': The attribute 'after' is not allowed - magento

I'm getting this error in magento 2. I didn't do any updates, this error just suddenly appeared.
I see that I have to remove the "after" attribute, but where can I find where?
1 exception(s):
Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'referenceContainer', attribute 'after': The attribute 'after' is not allowed.
Line: 1251
Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'referenceContainer', attribute 'after': The attribute 'after' is not allowed.
Line: 1251
#0 /www/htdocs/domain/vendor/magento/framework/Config/Dom.php(115): Magento\Framework\Config\Dom->_initDom('<layout xmlns:x...')
#1 /www/htdocs/domain/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(111): Magento\Framework\Config\Dom->__construct('<layout xmlns:x...', Object(Magento\Framework\App\Arguments\ValidationState), Array, NULL, '/www/htdocs/w00...', '%message%\nLine:...')
#2 /www/htdocs/domain/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(66): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\\Framewo...', Array)
#3 /www/htdocs/domain/vendor/magento/framework/ObjectManager/ObjectManager.php(56): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\\Framewo...', Array)
#4 /www/htdocs/domain/vendor/magento/framework/Config/DomFactory.php(42): Magento\Framework\ObjectManager\ObjectManager->create('Magento\\Framewo...', Array)
#5 /www/htdocs/domain/vendor/magento/framework/View/Model/Layout/Update/Validator.php(125): Magento\Framework\Config\DomFactory->createDom(Array)
#6 /www/htdocs/domain/vendor/magento/framework/View/Model/Layout/Merge.php(461): Magento\Framework\View\Model\Layout\Update\Validator->isValid('<layout xmlns:x...', 'layout_merged', false)
#7 /www/htdocs/domain/vendor/magento/framework/View/Model/Layout/Merge.php(442): Magento\Framework\View\Model\Layout\Merge->_validateMergedLayout('LAYOUT_frontend...', '<body>\n <refe...')
#8 /www/htdocs/domain/generated/code/Magento/Framework/View/Model/Layout/Merge/Interceptor.php(193): Magento\Framework\View\Model\Layout\Merge->load(Array)
#9 /www/htdocs/domain/vendor/magento/framework/View/Layout/Builder.php(86): Magento\Framework\View\Model\Layout\Merge\Interceptor->load()
#10 /www/htdocs/domain/vendor/magento/framework/View/Layout/Builder.php(63): Magento\Framework\View\Layout\Builder->loadLayoutUpdates()
#11 /www/htdocs/domain/vendor/magento/framework/View/Layout.php(254): Magento\Framework\View\Layout\Builder->build()
#12 /www/htdocs/domain/vendor/magento/framework/View/Layout.php(875): Magento\Framework\View\Layout->build()
#13 /www/htdocs/domain/generated/code/Magento/Framework/View/Layout/Interceptor.php(414): Magento\Framework\View\Layout->getBlock('page_content_he...')
#14 /www/htdocs/domain/vendor/magento/module-cms/Helper/Page.php(171): Magento\Framework\View\Layout\Interceptor->getBlock('page_content_he...')
#15 /www/htdocs/domain/vendor/magento/module-cms/Controller/Noroute/Index.php(44): Magento\Cms\Helper\Page->prepareResultPage(Object(Magento\Cms\Controller\Noroute\Index\Interceptor), 'no-route')
#16 /www/htdocs/domain/generated/code/Magento/Cms/Controller/Noroute/Index/Interceptor.php(24): Magento\Cms\Controller\Noroute\Index->execute()
#17 /www/htdocs/domain/vendor/magento/framework/App/Action/Action.php(107): Magento\Cms\Controller\Noroute\Index\Interceptor->execute()
#18 /www/htdocs/domain/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http))
#19 /www/htdocs/domain/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Cms\Controller\Noroute\Index\Interceptor->___callParent('dispatch', Array)
#20 /www/htdocs/domain/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Cms\Controller\Noroute\Index\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#21 /www/htdocs/domain/generated/code/Magento/Cms/Controller/Noroute/Index/Interceptor.php(39): Magento\Cms\Controller\Noroute\Index\Interceptor->___callPlugins('dispatch', Array, Array)
#22 /www/htdocs/domain/vendor/magento/framework/App/FrontController.php(55): Magento\Cms\Controller\Noroute\Index\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#23 /www/htdocs/domain/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http))
#24 /www/htdocs/domain/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array)
#25 /www/htdocs/domain/vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php(94): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#26 /www/htdocs/domain/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#27 /www/htdocs/domain/vendor/mirasvit/module-search-autocomplete/src/SearchAutocomplete/Plugin/ResponsePlugin.php(157): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#28 /www/htdocs/domain/vendor/magento/framework/Interception/Interceptor.php(135): Mirasvit\SearchAutocomplete\Plugin\ResponsePlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#29 /www/htdocs/domain/vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php(73): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#30 /www/htdocs/domain/vendor/magento/framework/Interception/Interceptor.php(135): Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#31 /www/htdocs/domain/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#32 /www/htdocs/domain/generated/code/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, Array)
#33 /www/htdocs/domain/vendor/magento/framework/App/Http.php(135): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#34 /www/htdocs/domain/vendor/magento/framework/App/Bootstrap.php(256): Magento\Framework\App\Http->launch()
#35 /www/htdocs/domain/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))
#36 {main}
I see that I have to remove the "after" attribute, but where can I find where?
thanks

You can not add after attribute in referenceContainer. If you want to move Container then use it.
<move element="element name" destination="where you want to move" after="">

I think, You are using magento2.2 version. In this version, There is some modification in layout xml. You can not use after and before attribute in referenceContainer tag.
To solve this issue, You have to remove after and before attribute from referenceContainer.
you can use move tag for rearranging layout

You will have to add a new ticket to extension support because this is extension problem. You can check all the xml file in path app/code/vendor_name/module_name/view/frontend/layout/

As zed stated, this looks more like an upgrade issue to v2.2.x as they made the layout formatting stricter and some things which were allowed before are no longer.
The before and after attributes in referenceContainer tags are no longer valid.
Also we found that a move tag was also no longer allowed inside a referenceBlock tag either.
To find where these issues were at, I went into the vendor/magento/framework/Config/Dom.php file and in the _initDom() method output the $xml variable to find the actual xml code at line xxx per an exception like the one OP has above.

Related

Magento (Item (Mage_Catalog_Model_Product) with the same id "nnnnnn" already exist)

While trying to change the status of an attribute from out of stock to pre order we caused the error below. This happend after using the data profiler to import a CSV containing SKU's with updated attribute data, we expected the import to update the the products for those SKU's but it seems to have created duplicate items.
When looking at one of the products in the admin the status had been changed to the correct value but the product was no longer displaying in the site, there was an error message for all the products updated.
We fixed this by adding a groupby clause in the view but obviously this is just a temporary fix to get the site working again. I need to find and remove the duplcate items but not being an expert with Magento and EVA I thought I'd ask if anyone had done this and what was the correct approach.
Error:
Item (Mage_Catalog_Model_Product) with the same id "nnnnnn" already exist
Trace:
#0
/var/www/vhosts/magento/htdocs/app/code/core/Mage/Eav/Model/Entity/Collect
ion/Abstract.php(267):
Varien_Data_Collection->addItem(Object(Mage_Catalog_Model_Product))
#1
/var/www/vhosts/magento/htdocs/app/code/core/Mage/Eav/Model/Entity/Collect
ion/Abstract.php(1057):
Mage_Eav_Model_Entity_Collection_Abstract->addItem(Object(Mage_Catalog_Mod
el_Product))
#2
/var/www/vhosts/magento/htdocs/app/code/core/Mage/Eav/Model/Entity/Collect
ion/Abstract.php(871):
Mage_Eav_Model_Entity_Collection_Abstract->_loadEntities(false, false)
#3
/var/www/vhosts/magento/htdocs/app/code/core/Mage/Review/Model/Observer.ph
p(78): Mage_Eav_Model_Entity_Collection_Abstract->load()
#4
/var/www/vhosts/magento/htdocs/app/code/core/Mage/Core/Model/App.php(1303)
:
Mage_Review_Model_Observer->catalogBlockProductCollectionBeforeToHtml(Obje
ct(Varien_Event_Observer))
#5
/var/www/vhosts/magento/htdocs/app/code/core/Mage/Core/Model/App.php(1278)
:
Mage_Core_Model_App->_callObserverMethod(Object(Mage_Review_Model_Observer
), 'catalogBlockPro...', Object(Varien_Event_Observer))
#6 /var/www/vhosts/magento/htdocs/app/Mage.php(416):
Mage_Core_Model_App->dispatchEvent('catalog_block_p...', Array)
#7
/var/www/vhosts/magento/htdocs/app/code/local/Mage/Catalog/Block/Product/L
ist.php(190): Mage::dispatchEvent('catalog_block_p...', Array)
#8
/var/www/vhosts/magento/htdocs/app/code/core/Mage/Core/Block/Abstract.php(
862): Mage_Catalog_Block_Product_List->_beforeToHtml()
#9
/var/www/vhosts/magento/htdocs/app/code/core/Mage/Core/Block/Abstract.php(
582): Mage_Core_Block_Abstract->toHtml()
#10
/var/www/vhosts/magento/htdocs/app/code/core/Mage/Core/Block/Abstract.php(
526): Mage_Core_Block_Abstract->_getChildHtml('product_list', true)
#11
/var/www/vhosts/magento/htdocs/app/code/local/Mage/Catalog/Block/Category/
View.php(85): Mage_Core_Block_Abstract->getChildHtml('product_list')
#12
/var/www/vhosts/magento/htdocs/app/design/frontend/horticulture/default/te
mplate/catalog/category/view.phtml(295):
Mage_Catalog_Block_Category_View->getProductListHtml()
#13
/var/www/vhosts/magento/htdocs/app/code/core/Mage/Core/Block/Template.php(
241): include('/var/www/vhosts...')
#14
/var/www/vhosts/magento/htdocs/app/code/core/Mage/Core/Block/Template.php(
272): Mage_Core_Block_Template->fetchView('frontend/hortic...')
#15
/var/www/vhosts/magento/htdocs/app/code/core/Mage/Core/Block/Template.php(
286): Mage_Core_Block_Template->renderView()
#16
/var/www/vhosts/magento/htdocs/app/code/core/Mage/Core/Block/Abstract.php(
863): Mage_Core_Block_Template->_toHtml()
#17
/var/www/vhosts/magento/htdocs/app/code/core/Mage/Core/Block/Text/List.php
(43): Mage_Core_Block_Abstract->toHtml()
#18
/var/www/vhosts/magento/htdocs/app/code/core/Mage/Core/Block/Abstract.php(
863): Mage_Core_Block_Text_List->_toHtml()
#19
/var/www/vhosts/magento/htdocs/app/code/core/Mage/Core/Block/Abstract.php(
582): Mage_Core_Block_Abstract->toHtml()
#20
/var/www/vhosts/magento/htdocs/app/code/core/Mage/Core/Block/Abstract.php(
526): Mage_Core_Block_Abstract->_getChildHtml('content', true)
#21
/var/www/vhosts/magento/htdocs/app/design/frontend/horticulture/default/te
mplate/page/3columns.phtml(59):
Mage_Core_Block_Abstract->getChildHtml('content')
#22
/var/www/vhosts/magento/htdocs/app/code/core/Mage/Core/Block/Template.php(
241): include('/var/www/vhosts...')
#23
/var/www/vhosts/magento/htdocs/app/code/core/Mage/Core/Block/Template.php(
272): Mage_Core_Block_Template->fetchView('frontend/hortic...')
#24
/var/www/vhosts/magento/htdocs/app/code/core/Mage/Core/Block/Template.php(
286): Mage_Core_Block_Template->renderView()
#25
/var/www/vhosts/magento/htdocs/app/code/core/Mage/Core/Block/Abstract.php(
863): Mage_Core_Block_Template->_toHtml()
#26
/var/www/vhosts/magento/htdocs/app/code/core/Mage/Core/Model/Layout.php(52
9): Mage_Core_Block_Abstract->toHtml()
#27
/var/www/vhosts/magento/htdocs/app/code/core/Mage/Core/Controller/Varien/A
ction.php(392): Mage_Core_Model_Layout->getOutput()
#28
/var/www/vhosts/magento/htdocs/app/code/core/Mage/Catalog/controllers/Cate
goryController.php(159):
Mage_Core_Controller_Varien_Action->renderLayout()
#29
/var/www/vhosts/magento/htdocs/app/code/core/Mage/Core/Controller/Varien/A
ction.php(421): Mage_Catalog_CategoryController->viewAction()
#30
/var/www/vhosts/magento/htdocs/app/code/local/Mage/Core/Controller/Varien/
Router/Standard.php(250):
Mage_Core_Controller_Varien_Action->dispatch('view')
#31
/var/www/vhosts/magento/htdocs/app/code/core/Mage/Core/Controller/Varien/F
ront.php(176):
Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Contro
ller_Request_Http))
#32
/var/www/vhosts/magento/htdocs/app/code/core/Mage/Core/Model/App.php(349):
Mage_Core_Controller_Varien_Front->dispatch()
#33 /var/www/vhosts/magento/htdocs/app/Mage.php(640):
Mage_Core_Model_App->run(Array)
#34 /var/www/vhosts/magento/htdocs/index.php(84):
Mage::run('hedgenursery', 'website')
#35 {main}
Thanks in advance :)
I was facing the same problem. I have tried below solution its worked for me.
Solution:
Edit: /www/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php
Line: 256
Replace: return parent::addItem($object);
With: try { return parent::addItem($object); } catch (Exception $ex) { }

Magento - Page error after altering code slightly

So I was editing a page for magento, simply adding a product brands slider, but it unfortunately somehow crashed the page. I reindexed everything and flushed cache to no avail. So I just reverted back to the old code, reflushed, but still the page is broken. The error report it has given me is;
a:5:{i:0;s:127:"Invalid method Mage_Page_Block_Html_Topmenu::renderCategoriesMenuHtml(Array
(
[0] =>
[1] => 0
[2] => level-top
)
)";i:1;s:4574:"#0 /home4/johnsoja/public_html/magento1/app/design/frontend/ultimo/default/template/page/html/topmenu.phtml(43): Varien_Object->__call('renderCategorie...', Array)
#1 /home4/johnsoja/public_html/magento1/app/design/frontend/ultimo/default/template/page/html/topmenu.phtml(43): Mage_Page_Block_Html_Topmenu->renderCategoriesMenuHtml(false, 0, 'level-top')
#2 /home4/johnsoja/public_html/magento1/app/code/core/Mage/Core/Block/Template.php(241): include('/home4/johnsoja...')
#3 /home4/johnsoja/public_html/magento1/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/ultimo...')
#4 /home4/johnsoja/public_html/magento1/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#5 /home4/johnsoja/public_html/magento1/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Template->_toHtml()
#6 /home4/johnsoja/public_html/magento1/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml()
#7 /home4/johnsoja/public_html/magento1/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Text_List->_toHtml()
#8 /home4/johnsoja/public_html/magento1/app/code/core/Mage/Core/Block/Abstract.php(637): Mage_Core_Block_Abstract->toHtml()
#9 /home4/johnsoja/public_html/magento1/app/code/core/Mage/Core/Block/Abstract.php(581): Mage_Core_Block_Abstract->_getChildHtml('topMenu', true)
#10 /home4/johnsoja/public_html/magento1/app/design/frontend/ultimo/default/template/page/html/header.phtml(108): Mage_Core_Block_Abstract->getChildHtml('topMenu')
#11 /home4/johnsoja/public_html/magento1/app/code/core/Mage/Core/Block/Template.php(241): include('/home4/johnsoja...')
#12 /home4/johnsoja/public_html/magento1/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/ultimo...')
#13 /home4/johnsoja/public_html/magento1/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#14 /home4/johnsoja/public_html/magento1/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Template->_toHtml()
#15 /home4/johnsoja/public_html/magento1/app/code/core/Mage/Core/Block/Abstract.php(637): Mage_Core_Block_Abstract->toHtml()
#16 /home4/johnsoja/public_html/magento1/app/code/core/Mage/Core/Block/Abstract.php(581): Mage_Core_Block_Abstract->_getChildHtml('header', true)
#17 /home4/johnsoja/public_html/magento1/app/design/frontend/ultimo/default/template/page/1column.phtml(42): Mage_Core_Block_Abstract->getChildHtml('header')
#18 /home4/johnsoja/public_html/magento1/app/code/core/Mage/Core/Block/Template.php(241): include('/home4/johnsoja...')
#19 /home4/johnsoja/public_html/magento1/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/ultimo...')
#20 /home4/johnsoja/public_html/magento1/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#21 /home4/johnsoja/public_html/magento1/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Template->_toHtml()
#22 /home4/johnsoja/public_html/magento1/app/code/core/Mage/Core/Model/Layout.php(555): Mage_Core_Block_Abstract->toHtml()
#23 /home4/johnsoja/public_html/magento1/app/code/core/Mage/Core/Controller/Varien/Action.php(390): Mage_Core_Model_Layout->getOutput()
#24 /home4/johnsoja/public_html/magento1/app/code/core/Mage/Cms/Helper/Page.php(137): Mage_Core_Controller_Varien_Action->renderLayout()
#25 /home4/johnsoja/public_html/magento1/app/code/core/Mage/Cms/Helper/Page.php(52): Mage_Cms_Helper_Page->_renderPage(Object(Mage_Cms_IndexController), 'home')
#26 /home4/johnsoja/public_html/magento1/app/code/core/Mage/Cms/controllers/IndexController.php(45): Mage_Cms_Helper_Page->renderPage(Object(Mage_Cms_IndexController), 'home')
#27 /home4/johnsoja/public_html/magento1/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Cms_IndexController->indexAction()
#28 /home4/johnsoja/public_html/magento1/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('index')
#29 /home4/johnsoja/public_html/magento1/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#30 /home4/johnsoja/public_html/magento1/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#31 /home4/johnsoja/public_html/magento1/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#32 /home4/johnsoja/public_html/magento1/index.php(87): Mage::run('', 'store')
#33 {main}";s:3:"url";s:10:"/magento1/";s:11:"script_name";s:19:"/magento1/index.php";s:4:"skin";s:7:"default";}
I am still very new to Magento, so all this really doesn't tell me much. I also would figure stripping the code post crash and reindexing should work, because I really didn't add much, but I may be completely mistaken on how it all works. Can anyone point me in a direction?! Thanks!
So it looks like the file app/design/frontend/ultimo/default/template/page/html/topmenu.phtml at line 43 is calling
$this->renderCategoriesMenuHtml();
But actually that function renderCategoriesMenuHtml() is in the class Mage_Catalog_Block_Navigation (whereas topMenu.phtml is running in class Mage_Page_Block_Html_Topmenu)
I suspect the root cause is an issue with an XML file, for example app/design/frontend/ultimo/default/layout/local.xml search for the block with the name 'topMenu' and look at its type="page/html_topmenu"
Now it gets a bit tricky for me. The block type should either be a theme specific block like type="ultimo_page/html_topmenu" assuming the file app/code/local/ultimo/page/block/tml/topMenu.php exists or else this 'topMenu' block needs to contain a nested block of type="catalog/navigation".
To begin with it might be best to comment out that line 43 $this->renderCategoriesMenuHtml(); to recover your Magento Store and then investigate how to render the category menu.

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'customgrid_grid_role' doesn't exist

I've been successfully using the Enhanced Admin Grids for magento extension for a quite a while so when I found out that editing the quantity is now supported in the latest version I automatically tried upgrading to 0.8.9 However I keep getting this error when attempting to go into the catalog:
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'buyahood_shopithoodies.customgrid_grid_role' doesn't exist
Trace:
#0 /home/buyahood/public_html/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#1 /home/buyahood/public_html/lib/Zend/Db/Statement.php(300): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#2 /home/buyahood/public_html/lib/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#3 /home/buyahood/public_html/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT customg...', Array)
#4 /home/buyahood/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(389): Zend_Db_Adapter_Pdo_Abstract->query('SELECTcustomg...', Array)
#5 /home/buyahood/public_html/lib/Zend/Db/Adapter/Abstract.php(734): Varien_Db_Adapter_Pdo_Mysql->query(Object(Varien_Db_Select), Array)
#6 /home/buyahood/public_html/app/code/community/BL/CustomGrid/Model/Mysql4/Grid.php(153): Zend_Db_Adapter_Abstract->fetchAll(Object(Varien_Db_Select))
#7 /home/buyahood/public_html/app/code/community/BL/CustomGrid/Model/Grid.php(2254): BL_CustomGrid_Model_Mysql4_Grid->getGridRoles('1')
#8 /home/buyahood/public_html/app/code/community/BL/CustomGrid/Model/Grid.php(217): BL_CustomGrid_Model_Grid->loadRolesConfig()
#9 /home/buyahood/public_html/app/code/community/BL/CustomGrid/Model/Grid.php(223): BL_CustomGrid_Model_Grid->_refreshConfig()
#10 /home/buyahood/public_html/app/code/core/Mage/Core/Model/Abstract.php(281): BL_CustomGrid_Model_Grid->_afterLoad()
#11 /home/buyahood/public_html/lib/Varien/Data/Collection.php(454): Mage_Core_Model_Abstract->afterLoad()
#12 /home/buyahood/public_html/app/code/community/BL/CustomGrid/Model/Mysql4/Grid/Collection.php(27): Varien_Data_Collection->walk(Array, Array)
#13 /home/buyahood/public_html/lib/Varien/Data/Collection/Db.php(536): BL_CustomGrid_Model_Mysql4_Grid_Collection->_afterLoad('afterLoad')
#14 /home/buyahood/public_html/app/code/community/BL/CustomGrid/Model/Observer.php(734): Varien_Data_Collection_Db->load()
#15 /home/buyahood/public_html/app/code/core/Mage/Core/Model/App.php(1303): BL_CustomGrid_Model_Observer->onControllerActionPreDispatch()
#16 /home/buyahood/public_html/app/code/core/Mage/Core/Model/App.php(1284): Mage_Core_Model_App->_callObserverMethod(Object(Varien_Event_Observer))
#17 /home/buyahood/public_html/app/Mage.php(416): Mage_Core_Model_App->dispatchEvent(Object(BL_CustomGrid_Model_Observer), 'onControllerAct...', Object(Varien_Event_Observer))
#18 /home/buyahood/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(505): Mage::dispatchEvent('controller_acti...', Array)
#19 /home/buyahood/public_html/app/code/core/Mage/Adminhtml/Controller/Action.php(152): Mage_Core_Controller_Varien_Action->preDispatch('controller_acti...', Array)
#20 /home/buyahood/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(409): Mage_Adminhtml_Controller_Action->preDispatch()
#21 /home/buyahood/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch()
#22 /home/buyahood/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match('index')
#23 /home/buyahood/public_html/app/code/core/Mage/Core/Model/App.php(349): Mage_Core_Controller_Varien_Front->dispatch(Object(Mage_Core_Controller_Request_Http))
#24 /home/buyahood/public_html/app/Mage.php(640): Mage_Core_Model_App->run()
#25 /home/buyahood/public_html/index.php(82): Mage::run(Array)
#26 {main}
Please Advise.
This table should have been created during upgrade. Looks like the upgrade script didn't run. To trigger it again, edit the core_resource table. Search for a row with customgrid_setup and reset the version number to your version before your upgrade. After that, flush magento cache in backend. On the next page call the installer will be rerun.

Upgrading Magento EE1.10.to 1.12 shows up issue add to cart button disappear after customer login

While upgrading magento EE1.10 to 1.12 everything seems to work fine but during testing , when a customer log in from front-end the add to cart button and the price Div disappear.
Then I change the design package and template to the "enterprise" I found the similar issues, I guess that This issue is not related to the design but somewhere else,
I am not able to find out what is the exact problem,
Does any body have any idea what maybe the issue?
After enabling log i found this
2013-03-02T10:53:27+00:00 ERR (3):
SoapFault exception: [Client] SOAP-ERROR: Encoding: string '\xad...' is not a valid utf-8 string in /www/sites/xxxx/files/html/app/code/core/Mage/Usa/Model/Shipping/Carrier/Fedex.php:410
Stack trace:
#0 [internal function]: SoapClient->__call('getRates', Array)
#1 /www/sites/xxxxx/files/html/app/code/core/Mage/Usa/Model/Shipping/Carrier/Fedex.php(410): SoapClient->getRates(Array)
#2 /www/sites/xxxxx/files/html/app/code/core/Mage/Usa/Model/Shipping/Carrier/Fedex.php(443): Mage_Usa_Model_Shipping_Carrier_Fedex->_doRatesRequest('general')
#3 /www/sites/xxxxx/files/html/app/code/core/Mage/Usa/Model/Shipping/Carrier/Fedex.php(186): Mage_Usa_Model_Shipping_Carrier_Fedex->_getQuotes()
#4 /www/sites/xxxxx/files/html/app/code/core/Mage/Shipping/Model/Shipping.php(207): Mage_Usa_Model_Shipping_Carrier_Fedex->collectRates(Object(Mage_Shipping_Model_Rate_Request))
#5 /www/sites/xxxxx/files/html/app/code/core/Mage/Shipping/Model/Shipping.php(129): Mage_Shipping_Model_Shipping->collectCarrierRates('fedex', Object(Mage_Shipping_Model_Rate_Request))
#6 /www/sites/xxxxx/files/html/app/code/core/Mage/Sales/Model/Quote/Address.php(888): Mage_Shipping_Model_Shipping->collectRates(Object(Mage_Shipping_Model_Rate_Request))
#7 /www/sites/xxxxx/files/html/app/code/core/Mage/Sales/Model/Quote/Address.php(819): Mage_Sales_Model_Quote_Address->requestShippingRates()
#8 /www/sites/xxxxx/files/html/app/code/core/Mage/Sales/Model/Quote/Address/Total/Shipping.php(155): Mage_Sales_Model_Quote_Address->collectShippingRates()
#9 /www/sites/xxxxx/files/html/app/code/core/Mage/Sales/Model/Quote/Address.php(957): Mage_Sales_Model_Quote_Address_Total_Shipping->collect(Object(Mage_Sales_Model_Quote_Address))
#10 /www/sites/xxxxx/files/html/app/code/core/Mage/Sales/Model/Quote.php(1263): Mage_Sales_Model_Quote_Address->collectTotals()
#11 /www/sites/xxxxx/files/html/app/code/local/Idev/OneStepCheckout/Model/Sales/Quote.php(27): Mage_Sales_Model_Quote->collectTotals()
#12 /www/sites/xxxxx/files/html/app/code/core/Mage/Checkout/Model/Session.php(210): Idev_OneStepCheckout_Model_Sales_Quote->collectTotals()
#13 /www/sites/xxxxx/files/html/app/code/core/Mage/Checkout/Model/Observer.php(44): Mage_Checkout_Model_Session->loadCustomerQuote()
#14 /www/sites/xxxxx/files/html/app/code/core/Mage/Core/Model/App.php(1338): Mage_Checkout_Model_Observer->loadCustomerQuote(Object(Varien_Event_Observer))
#15 /www/sites/xxxxx/files/html/app/code/core/Mage/Core/Model/App.php(1317): Mage_Core_Model_App->_callObserverMethod(Object(Mage_Checkout_Model_Observer), 'loadCustomerQuo...', Object(Varien_Event_Observer))
#16 /www/sites/xxxxx/files/html/app/Mage.php(447): Mage_Core_Model_App->dispatchEvent('customer_login', Array)
#17 /www/sites/xxxxx/files/html/app/code/local/Mage/Customer/Model/Session.php(195): Mage::dispatchEvent('customer_login', Array)
#18 /www/sites/xxxxx/files/html/app/code/local/Mage/Customer/Model/Session.php(183): Mage_Customer_Model_Session->setCustomerAsLoggedIn(Object(Mage_Customer_Model_Customer))
#19 /www/sites/xxxxx/files/html/app/code/core/Mage/Customer/controllers/AccountController.php(149): Mage_Customer_Model_Session->login('IL876510#farrla...', 'abcd.1234')
#20 /www/sites/xxxxx/files/html/app/code/core/Mage/Core/Controller/Varien/Action.php(419): Mage_Customer_AccountController->loginPostAction()
#21 /www/sites/xxxxx/files/html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('loginPost')
#22 /www/sites/xxxxx/files/html/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#23 /www/sites/xxxxx/files/html/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#24 /www/sites/xxxxx/files/html/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#25 /www/sites/xxxxx/files/html/index.php(87): Mage::run('', 'store')
#26 {main}

Magento error with layered navigation

I am using a custom theme from themeforest, I have added all my attributes and attribute sets and a few products so I could test the layerd navigation however when I try to filter down by anything except price or category I get the "There has been an error processing your request" error.
I have noticed that when I filter down by price or category it is adding the option that was choose twice in the "Currently Shopping By" instead of just once and if you click the cross to remove it it will remove both.
But back to the main error maybe that has somehting to do with it not sure, I have pasted the error here:
a:5:{i:0;s:62:"You cannot define a correlation name 'type_idx' more than once";i:1;s:3295:"#0 /home/towelsjt/public_html/lib/Varien/Db/Select.php(281): Zend_Db_Select->_join('inner join', Array, 'type_idx.entity...', Array, NULL)
#1 /home/towelsjt/public_html/lib/Zend/Db/Select.php(336): Varien_Db_Select->_join('inner join', Array, 'type_idx.entity...', Array, NULL)
#2 /home/towelsjt/public_html/lib/Zend/Db/Select.php(315): Zend_Db_Select->joinInner(Array, 'type_idx.entity...', Array, NULL)
#3 /home/towelsjt/public_html/app/code/core/Mage/Catalog/Model/Resource/Layer/Filter/Attribute.php(70): Zend_Db_Select->join(Array, 'type_idx.entity...', Array)
#4 /home/towelsjt/public_html/app/code/core/Mage/Catalog/Model/Layer/Filter/Attribute.php(94): Mage_Catalog_Model_Resource_Layer_Filter_Attribute->applyFilterToCollection(Object(Mage_Catalog_Model_Layer_Filter_Attribute), '35')
#5 /home/towelsjt/public_html/app/code/core/Mage/Catalog/Block/Layer/Filter/Abstract.php(91): Mage_Catalog_Model_Layer_Filter_Attribute->apply(Object(Mage_Core_Controller_Request_Http), Object(Mage_Catalog_Block_Layer_Filter_Attribute))
#6 /home/towelsjt/public_html/app/code/core/Mage/Catalog/Block/Layer/Filter/Abstract.php(73): Mage_Catalog_Block_Layer_Filter_Abstract->_initFilter()
#7 /home/towelsjt/public_html/app/code/core/Mage/Catalog/Block/Layer/View.php(136): Mage_Catalog_Block_Layer_Filter_Abstract->init()
#8 /home/towelsjt/public_html/app/code/core/Mage/Core/Block/Abstract.php(238): Mage_Catalog_Block_Layer_View->_prepareLayout()
#9 /home/towelsjt/public_html/app/code/core/Mage/Core/Model/Layout.php(456): Mage_Core_Block_Abstract->setLayout(Object(Mage_Core_Model_Layout))
#10 /home/towelsjt/public_html/app/code/core/Mage/Core/Model/Layout.php(472): Mage_Core_Model_Layout->createBlock('catalog/layer_v...', 'catalog.rightna...')
#11 /home/towelsjt/public_html/app/code/core/Mage/Core/Model/Layout.php(239): Mage_Core_Model_Layout->addBlock('catalog/layer_v...', 'catalog.rightna...')
#12 /home/towelsjt/public_html/app/code/core/Mage/Core/Model/Layout.php(205): Mage_Core_Model_Layout->_generateBlock(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element))
#13 /home/towelsjt/public_html/app/code/core/Mage/Core/Model/Layout.php(210): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#14 /home/towelsjt/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(344): Mage_Core_Model_Layout->generateBlocks()
#15 /home/towelsjt/public_html/app/code/core/Mage/Catalog/controllers/CategoryController.php(146): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
#16 /home/towelsjt/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(419): Mage_Catalog_CategoryController->viewAction()
#17 /home/towelsjt/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('view')
#18 /home/towelsjt/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#19 /home/towelsjt/public_html/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#20 /home/towelsjt/public_html/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#21 /home/towelsjt/public_html/index.php(87): Mage::run('', 'store')
#22 {main}";s:3:"url";s:32:"/index.php/products.html?type=35";s:11:"script_name";s:10:"/index.php";s:4:"skin";s:7:"default";}
I had almost exactly the same problem and it was indeed a duplication issue causing the error.
I've been using a local.xml file for some layout changes and had duplicated a block somehow
/app/design/frontend/default/mytheme/layout.xml
I think you'd have to look in here or catalog.xml
I had the same error. The solution in my case was that I made a layered navigation invisble with "unsetChild" first and then added it again. Removing the first one instead of unsetting it was the solution.

Resources