Everything falls when I try a new magento theme - magento

I bought a magento theme (support 1.6.1 / 1.6.2). I have installed a new fresh magento with sample data and uploaded all theme files. When I create the configuration, everything falls.
Here is the error:
Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 105: parser error : Opening and ending tag mismatch: reference line 102 and block in /home/template/public_html/dev/gammadesign/magento/app/code/core/Mage/Core/Model/Layout/Update.php on line 431
#0 /home/template/public_html/dev/gammadesign/magento/app/code/core/Mage/Core/Model/Layout/Update.php(431): mageCoreErrorHandler(2, 'simplexml_load_...', '/home/template/...', 431, Array)
#1 /home/template/public_html/dev/gammadesign/magento/app/code/core/Mage/Core/Model/Layout/Update.php(273): Mage_Core_Model_Layout_Update->getFileLayoutUpdatesXml('fetchFileLayoutUpdates('frontend', 'default', 'e-shopping', '1')
#3 /home/template/public_html/dev/gammadesign/magento/app/code/core/Mage/Core/Model/Layout/Update.php(246): Mage_Core_Model_Layout_Update->fetchPackageLayoutUpdates()
#4 /home/template/public_html/dev/gammadesign/magento/app/code/core/Mage/Core/Model/Layout/Update.php(224): Mage_Core_Model_Layout_Update->merge('default')
#5 /home/template/public_html/dev/gammadesign/magento/app/code/core/Mage/Core/Controller/Varien/Action.php(307): Mage_Core_Model_Layout_Update->load('default')
#6 /home/template/public_html/dev/gammadesign/magento/app/code/core/Mage/Cms/Helper/Page.php(109): Mage_Core_Controller_Varien_Action->loadLayoutUpdates()
#7 /home/template/public_html/dev/gammadesign/magento/app/code/core/Mage/Cms/Helper/Page.php(52): Mage_Cms_Helper_Page->_renderPage()
#8 /home/template/public_html/dev/gammadesign/magento/app/code/core/Mage/Cms/controllers/IndexController.php(45): Mage_Cms_Helper_Page->renderPage(Object(Mage_Cms_IndexController), 'home')
#9 /home/template/public_html/dev/gammadesign/magento/app/code/core/Mage/Core/Controller/Varien/Action.php(420): Mage_Cms_IndexController->indexAction(Object(Mage_Cms_IndexController), 'home')
#10 /home/template/public_html/dev/gammadesign/magento/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch()
#11 /home/template/public_html/dev/gammadesign/magento/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match('index')
#12 /home/template/public_html/dev/gammadesign/magento/app/code/core/Mage/Core/Model/App.php(349): Mage_Core_Controller_Varien_Front->dispatch(Object(Mage_Core_Controller_Request_Http))
#13 /home/template/public_html/dev/gammadesign/magento/app/Mage.php(640): Mage_Core_Model_App->run()
#14 /home/template/public_html/dev/gammadesign/magento/index.php(80): Mage::run(Array)
#15 {main}
And this is the link: http://dev.template-tuners.com/gammadesign/magento/
How can I fix that?
Thanks

One of your new layouts file is invalid.
Check it one by one in your IDE, you should see a invalid tag closing.

Related

Magento empty blank product page

I got some problems with my magento store. The product page view is empty.
I've debugged it and in the exception log I got this message:
2014-02-18T21:45:34+00:00 ERR (3):
exception 'Mage_Core_Exception' with message 'Method "addJqueryLibrary" is not defined in "Magentothem_Upsellslider_Model_Layout_Generate_Observer"' in /home/mellimello/public_html/app/Mage.php:595
Stack trace:
#0 /home/mellimello/public_html/app/code/core/Mage/Core/Model/App.php(1340): Mage::throwException('Method "addJque...')
#1 /home/mellimello/public_html/app/code/core/Mage/Core/Model/App.php(1317): Mage_Core_Model_App->_callObserverMethod(Object(Magentothem_Upsellslider_Model_Layout_Generate_Observer), 'addJqueryLibrar...', Object(Varien_Event_Observer))
#2 /home/mellimello/public_html/app/Mage.php(448): Mage_Core_Model_App->dispatchEvent('controller_acti...', Array)
#3 /home/mellimello/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(351): Mage::dispatchEvent('controller_acti...', Array)
#4 /home/mellimello/public_html/app/code/core/Mage/Catalog/Helper/Product/View.php(73): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
#5 /home/mellimello/public_html/app/code/core/Mage/Catalog/Helper/Product/View.php(144): Mage_Catalog_Helper_Product_View->initProductLayout(Object(Mage_Catalog_Model_Product), Object(Mage_Catalog_ProductController))
#6 /home/mellimello/public_html/app/code/core/Mage/Catalog/controllers/ProductController.php(132): Mage_Catalog_Helper_Product_View->prepareAndRender(6, Object(Mage_Catalog_ProductController), Object(Varien_Object))
#7 /home/mellimello/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Catalog_ProductController->viewAction()
#8 /home/mellimello/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('view')
#9 /home/mellimello/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#10 /home/mellimello/public_html/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#11 /home/mellimello/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#12 /home/mellimello/public_html/index.php(87): Mage::run('', 'store')
#13 {main}
It looks like the module Magentothem Upsellslider is broken. If you installed the module from somewhere else, contact the creator and tell them it isn't working. In the meantime, uninstall it by removing the file app/code/etc/modules/Magentothem_Upsellslider.xml and clear your cache.
If this is your module, you seem to be trying to call a non-existent function addJqueryLibrary in your observer. Perhaps you have a typo... should it be addJQueryLibrary?

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.

Wrong store ID generates errors in Magento backend

When going to System>Config.>Developer I get this stack, which seems to have something to do with store id 4. I once had a store with Id 4, but it's deleted and I only have store id 1 now. I cannot figure out what is calling this store id4, only that it is called since " Mage_Core_Model_Url->setStore('4')" is in th stack. How can I tell, what extension, module or part of Magento that is calling this?
#0 /var/www/site.com/public_html/app/code/local/Mage/Core/Model/App.php(831): Mage_Core_Model_App->throwStoreException()
#1 /var/www/site.com/public_html/app/code/core/Mage/Core/Model/Url.php(342): Mage_Core_Model_App->getStore('4')
#2 /var/www/site.com/public_html/app/code/core/Mage/Core/Model/Url.php(616): Mage_Core_Model_Url->setStore('4')
#3 /var/www/site.com/public_html/app/code/core/Mage/Core/Model/Url.php(734): Mage_Core_Model_Url->setRouteParams(Array, false)
#4 /var/www/site.com/public_html/app/code/core/Mage/Core/Model/Url.php(977): Mage_Core_Model_Url->getRouteUrl('', Array)
#5 /var/www/site.com/public_html/app/Mage.php(362): Mage_Core_Model_Url->getUrl('', Array)
#6 /var/www/site.com/public_html/app/code/local/Magentohotel/Varnish/Model/Adminhtml/Renderer/Bans/Categories.php(31): Mage::getUrl('', Array)
#7 /var/www/site.com/public_html/app/code/core/Mage/Adminhtml/Block/System/Config/Form.php(421): Magentohotel_Varnish_Model_Adminhtml_Renderer_Bans_Categories->toOptionArray(true)
#8 /var/www/site.com/public_html/app/code/core/Mage/Adminhtml/Block/System/Config/Form.php(210): Mage_Adminhtml_Block_System_Config_Form->initFields(Object(Varien_Data_Form_Element_Fieldset), Object(Mage_Core_Model_Config_Element), Object(Mage_Core_Model_Config_Element))
#9 /var/www/site.com/public_html/app/code/core/Mage/Adminhtml/Block/System/Config/Edit.php(92): Mage_Adminhtml_Block_System_Config_Form->initForm()
#10 /var/www/site.com/public_html/app/code/core/Mage/Adminhtml/controllers/System/ConfigController.php(102): Mage_Adminhtml_Block_System_Config_Edit->initForm()
#11 /var/www/site.com/public_html/app/code/local/Mage/Core/Controller/Varien/Action.php(420): Mage_Adminhtml_System_ConfigController->editAction()
#12 /var/www/site.com/public_html/var/cache/extendware/ewcore/overrides/Mage/Core/Controller/Varien/Router/Standard/63563f9ebb198e3182fd11a84369b608.php(250): Mage_Core_Controller_Varien_Action->dispatch('edit')
#13 /var/www/site.com/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_StandardOverriddenClass->match(Object(Mage_Core_Controller_Request_Http))
#14 /var/www/site.com/public_html/app/code/local/Mage/Core/Model/App.php(348): Mage_Core_Controller_Varien_Front->dispatch()
#15 /var/www/site.com/public_html/app/Mage.php(640): Mage_Core_Model_App->run(Array)
#16 /var/www/site.com/public_html/index.php(83): Mage::run('', 'store') #17 {main}"
Old URL Rewrites fom another storefront was still in the database, this created errors with a varnish module that could see the URL rewrites but not the storefront with the same ID.

Magento front end only printing "local.xml"

I went to do a test customer registration and right after I submitted form, the page only loads what you see below. I deleted cookies and loaded the main page, and it has what you see below as well. My coworker was messing with permissions as well, but we think we have all the permissions correct now. There are no errors in magento logs. The only error on server that may be applicable "client denied by server configuration: /var/www/Staging/public_html/app/etc/local.xml" but I know this is a common error and it's been there. Any ideas about what the issue is?
Update: We added developer mode and now we get the following stack trace:
Warning: simplexml_load_string(): Entity: line 29: parser error : Premature end of data in tag layout line 29 in /var/www/Staging/public_html/app/code/core/Mage/Core/Model/Layout/Update.php on line 444
#0 [internal function]: mageCoreErrorHandler(2, 'simplexml_load_...', '/var/www/Stagin...', 444, Array)
#1 /var/www/Staging/public_html/app/code/core/Mage/Core/Model/Layout/Update.php(444): simplexml_load_string('getFileLayoutUpdatesXml('frontend', 'default', 'f001', '1')
#3 /var/www/Staging/public_html/app/code/core/Mage/Core/Model/Layout/Update.php(347): Mage_Core_Model_Layout_Update->fetchFileLayoutUpdates()
#4 /var/www/Staging/public_html/app/code/core/Mage/Core/Model/Layout/Update.php(246): Mage_Core_Model_Layout_Update->fetchPackageLayoutUpdates('default')
#5 /var/www/Staging/public_html/app/code/core/Mage/Core/Model/Layout/Update.php(224): Mage_Core_Model_Layout_Update->merge('default')
#6 /var/www/Staging/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(306): Mage_Core_Model_Layout_Update->load()
#7 /var/www/Staging/public_html/app/code/core/Mage/Cms/Helper/Page.php(109): Mage_Core_Controller_Varien_Action->loadLayoutUpdates()
#8 /var/www/Staging/public_html/app/code/core/Mage/Cms/Helper/Page.php(52): Mage_Cms_Helper_Page->_renderPage(Object(Mage_Cms_IndexController), 'home')
#9 /var/www/Staging/public_html/app/code/core/Mage/Cms/controllers/IndexController.php(45): Mage_Cms_Helper_Page->renderPage(Object(Mage_Cms_IndexController), 'home')
#10 /var/www/Staging/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(419): Mage_Cms_IndexController->indexAction()
#11 /var/www/Staging/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('index')
#12 /var/www/Staging/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))
#13 /var/www/Staging/public_html/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#14 /var/www/Staging/public_html/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#15 /var/www/Staging/public_html/index.php(87): Mage::run('', 'store')
#16 {main}
1)simplexml_load_string(): Entity is an common error if some xml section is not properly written
2)client denied by server : this error may come because of several reasons
i).htaccess missing
ii)File: /app/code/core/Mage/Adminhtml/Block/Notification/Security.php cooment
private function _isFileAccessible()
//$http->write(Zend_Http_Client::POST, $defaultUnsecureBaseURL . $this->_filePath);
iii)chmod 600 app/etc/local.xml
iv)http://www.yireo.com/tutorials/magento/magento-administration/1322-client-denied-by-server-configuration-appetclocalxml

Magento - Cannot run reindexing, missing column in database

I'm running with an extension for my layered navigation, which worked well till I tried to update it to a never version. I'm not able to reindex the extension again, this is what i get from it:
2012-11-29T21:35:30+01:00 DEBUG (7): Exception message: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'target.default_mask1' in 'field list'
Trace: #0 /var/www/site.com/public_html/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#1 /var/www/site.com/public_html/lib/Zend/Db/Statement.php(300): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#2 /var/www/site.com/public_html/lib/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#3 /var/www/site.com/public_html/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT DISTINCT...', Array)
#4 /var/www/site.com/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(389): Zend_Db_Adapter_Pdo_Abstract->query('SELECT DISTINCT...', Array)
#5 /var/www/site.com/public_html/lib/Zend/Db/Adapter/Abstract.php(734): Varien_Db_Adapter_Pdo_Mysql->query(Object(Varien_Db_Select), Array)
#6 /var/www/site.com/public_html/app/code/local/Mana/Db/Helper/Data.php(146): Zend_Db_Adapter_Abstract->fetchAll(Object(Varien_Db_Select))
#7 /var/www/site.com/public_html/app/code/local/Mana/Db/Model/Indexer.php(36): Mana_Db_Helper_Data->replicate()
#8 /var/www/site.com/public_html/app/code/core/Mage/Index/Model/Process.php(207): Mana_Db_Model_Indexer->reindexAll()
#9 /var/www/site.com/public_html/app/code/core/Mage/Index/Model/Process.php(253): Mage_Index_Model_Process->reindexAll()
#10 /var/www/site.com/public_html/app/code/core/Mage/Index/controllers/Adminhtml/ProcessController.php(124): Mage_Index_Model_Process->reindexEverything()
#11 /var/www/site.com/public_html/app/code/local/Mage/Core/Controller/Varien/Action.php(420): Mage_Index_Adminhtml_ProcessController->reindexProcessAction()
#12 /var/www/site.com/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('reindexProcess')
#13 /var/www/site.com/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))
#14 /var/www/site.com/public_html/app/code/local/Mage/Core/Model/App.php(348): Mage_Core_Controller_Varien_Front->dispatch()
#15 /var/www/site.com/public_html/app/Mage.php(640): Mage_Core_Model_App->run(Array)
#16 /var/www/site.com/public_html/index.php(82): Mage::run('', 'store')
And this is the replicate:
2012-11-29T21:49:20+01:00 DEBUG (7): UPDATE: SELECT DISTINCT 'target'.'id', 'target'.'code', 'target'.'type', 'target'.'default_mask0', 'target'.'default_mask1', 'eav_attribute_additional'.'is_filterable' AS 'is_enabled', 'eav_attribute'.'frontend_label' AS 'name', 'eav_attribute_additional'.'is_filterable_in_search' AS 'is_enabled_in_search', 'eav_attribute_additional'.'position' FROM 'eav_attribute'
INNER JOIN 'catalog_eav_attribute' AS 'eav_attribute_additional' ON eav_attribute.attribute_id = eav_attribute_additional.attribute_id
INNER JOIN 'eav_entity_type' ON eav_attribute.entity_type_id = eav_entity_type.entity_type_id
INNER JOIN 'm_filter2' AS 'target' ON target.code = eav_attribute.attribute_code WHERE (eav_entity_type.entity_type_code = 'catalog_product') AND (eav_attribute_additional.is_filterable <> 0)
If however, I remove the 'target','default_mask1' part, I'am able to find the attributes. I also found the default_mask in eav_attribute, but I'm not able to figure out what exactly the problem is unfortunatly. Any help would be appreciated!
(The extension is Manapro seo layered navigation)
The problem was that the "upgrade" was interrupted due to visitors on the site. I put down the site, removed the /includes/ folder, ran a script from the developer in the sql, re-cached, and all worked as a charm again! So a lesson to myself, always put down the site before upgrading extensions!

Resources