0
Welcome Guest! Login
0 items Join Now

Help - Errors in template

  • Help - Errors in template

    Posted 13 years 2 months ago
    • We are using the Affinity - style 2 template and are getting the below errors.
      Can anyone help in fixing these problems please would be much appreciated.

      Thanks


      1. System>Permissions is giving the below error
      Wrong tab configuration.

      #0 /var/www/shop/production/htdocs/app/code/core/Mage/Adminhtml/Block/Permissions/Editroles.php(42): Mage_Adminhtml_Block_Widget_Tabs->addTab('account', false)
      #1 /var/www/shop/production/htdocs/app/code/core/Mage/Core/Block/Abstract.php(223): Mage_Adminhtml_Block_Permissions_Editroles->_prepareLayout()
      #2 /var/www/shop/production/htdocs/app/code/core/Mage/Core/Model/Layout.php(430): Mage_Core_Block_Abstract->setLayout(Object(Mage_Core_Model_Layout))
      #3 /var/www/shop/production/htdocs/app/code/core/Mage/Core/Model/Layout.php(446): Mage_Core_Model_Layout->createBlock('adminhtml/permi...', 'adminhtml.permi...')
      #4 /var/www/shop/production/htdocs/app/code/core/Mage/Core/Model/Layout.php(238): Mage_Core_Model_Layout->addBlock('adminhtml/permi...', 'adminhtml.permi...')
      #5 /var/www/shop/production/htdocs/app/code/core/Mage/Core/Model/Layout.php(204): Mage_Core_Model_Layout->_generateBlock(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element))
      #6 /var/www/shop/production/htdocs/app/code/core/Mage/Core/Model/Layout.php(209): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
      #7 /var/www/shop/production/htdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(345): Mage_Core_Model_Layout->generateBlocks()
      #8 /var/www/shop/production/htdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(270): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
      #9 /var/www/shop/production/htdocs/app/code/core/Mage/Adminhtml/Controller/Action.php(263): Mage_Core_Controller_Varien_Action->loadLayout(NULL, true, true)
      #10 /var/www/shop/production/htdocs/app/code/core/Mage/Adminhtml/controllers/Permissions/RoleController.php(44): Mage_Adminhtml_Controller_Action->loadLayout()
      #11 /var/www/shop/production/htdocs/app/code/core/Mage/Adminhtml/controllers/Permissions/RoleController.php(105): Mage_Adminhtml_Permissions_RoleController->_initAction()
      #12 /var/www/shop/production/htdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(420): Mage_Adminhtml_Permissions_RoleController->editRoleAction()
      #13 /var/www/shop/production/htdocs/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(253): Mage_Core_Controller_Varien_Action->dispatch('editrole')
      #14 /var/www/shop/production/htdocs/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
      #15 /var/www/shop/production/htdocs/app/code/local/Mage/Core/Model/App.php(348): Mage_Core_Controller_Varien_Front->dispatch()
      #16 /var/www/shop/production/htdocs/app/Mage.php(627): Mage_Core_Model_App->run(Array)
      #17 /var/www/shop/production/htdocs/index.php(82): Mage::run('', 'store')
      #18 {main}


      2. HomepageGrid is giving the below error
      Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 89 bytes) in /var/www/shop/production/htdocs/lib/Varien/Data/Collection.php on line 550

      3. The content slider is giving the below message
      Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 88 bytes) in /var/www/shop/production/htdocs/lib/Varien/Data/Collection.php on line 550

      4. Orders are giving the below error and this was working just a min ago as I was in the middle of processing the order.
      Notice: Undefined index: percent in /var/www/shop/production/htdocs/app/design/adminhtml/default/default/template/sales/order/totals/tax.phtml on line 40

      #0 /var/www/shop/production/htdocs/app/design/adminhtml/default/default/template/sales/order/totals/tax.phtml(40): mageCoreErrorHandler(8, 'Undefined index...', '/var/www/shop/p...', 40, Array)
      #1 /var/www/shop/production/htdocs/app/code/core/Mage/Core/Block/Template.php(235): include('/var/www/shop/p...')
      #2 /var/www/shop/production/htdocs/app/code/core/Mage/Core/Block/Template.php(266): Mage_Core_Block_Template->fetchView('adminhtml/defau...')
      #3 /var/www/shop/production/htdocs/app/code/core/Mage/Core/Block/Template.php(280): Mage_Core_Block_Template->renderView()
      #4 /var/www/shop/production/htdocs/app/code/core/Mage/Core/Block/Abstract.php(758): Mage_Core_Block_Template->_toHtml()
      #5 /var/www/shop/production/htdocs/app/code/core/Mage/Core/Block/Abstract.php(525): Mage_Core_Block_Abstract->toHtml()
      #6 /var/www/shop/production/htdocs/app/code/core/Mage/Core/Block/Abstract.php(476): Mage_Core_Block_Abstract->_getChildHtml('tax', false)
      #7 /var/www/shop/production/htdocs/app/design/adminhtml/default/default/template/sales/order/totals.phtml(43): Mage_Core_Block_Abstract->getChildHtml('tax', false)
      #8 /var/www/shop/production/htdocs/app/code/core/Mage/Core/Block/Template.php(235): include('/var/www/shop/p...')
      #9 /var/www/shop/production/htdocs/app/code/core/Mage/Core/Block/Template.php(266): Mage_Core_Block_Template->fetchView('adminhtml/defau...')
      #10 /var/www/shop/production/htdocs/app/code/core/Mage/Core/Block/Template.php(280): Mage_Core_Block_Template->renderView()
      #11 /var/www/shop/production/htdocs/app/code/core/Mage/Core/Block/Abstract.php(758): Mage_Core_Block_Template->_toHtml()
      #12 /var/www/shop/production/htdocs/app/code/core/Mage/Core/Block/Abstract.php(525): Mage_Core_Block_Abstract->toHtml()
      #13 /var/www/shop/production/htdocs/app/code/core/Mage/Core/Block/Abstract.php(476): Mage_Core_Block_Abstract->_getChildHtml('order_totals', true)
      #14 /var/www/shop/production/htdocs/app/design/adminhtml/default/default/template/sales/order/view/tab/info.phtml(104): Mage_Core_Block_Abstract->getChildHtml('order_totals')
      #15 /var/www/shop/production/htdocs/app/code/core/Mage/Core/Block/Template.php(235): include('/var/www/shop/p...')
      #16 /var/www/shop/production/htdocs/app/code/core/Mage/Core/Block/Template.php(266): Mage_Core_Block_Template->fetchView('adminhtml/defau...')
      #17 /var/www/shop/production/htdocs/app/code/core/Mage/Core/Block/Template.php(280): Mage_Core_Block_Template->renderView()
      #18 /var/www/shop/production/htdocs/app/code/core/Mage/Adminhtml/Block/Template.php(81): Mage_Core_Block_Template->_toHtml()
      #19 /var/www/shop/production/htdocs/app/code/core/Mage/Core/Block/Abstract.php(758): Mage_Adminhtml_Block_Template->_toHtml()
      #20 /var/www/shop/production/htdocs/app/code/core/Mage/Adminhtml/Block/Widget/Tabs.php(289): Mage_Core_Block_Abstract->toHtml()
      #21 /var/www/shop/production/htdocs/app/design/adminhtml/default/default/template/widget/tabs.phtml(38): Mage_Adminhtml_Block_Widget_Tabs->getTabContent(Object(Mage_Adminhtml_Block_Sales_Order_View_Tab_Info))
      #22 /var/www/shop/production/htdocs/app/code/core/Mage/Core/Block/Template.php(235): include('/var/www/shop/p...')
      #23 /var/www/shop/production/htdocs/app/code/core/Mage/Core/Block/Template.php(266): Mage_Core_Block_Template->fetchView('adminhtml/defau...')
      #24 /var/www/shop/production/htdocs/app/code/core/Mage/Core/Block/Template.php(280): Mage_Core_Block_Template->renderView()
      #25 /var/www/shop/production/htdocs/app/code/core/Mage/Adminhtml/Block/Template.php(81): Mage_Core_Block_Template->_toHtml()
      #26 /var/www/shop/production/htdocs/app/code/core/Mage/Core/Block/Abstract.php(758): Mage_Adminhtml_Block_Template->_toHtml()
      #27 /var/www/shop/production/htdocs/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml()
      #28 /var/www/shop/production/htdocs/app/code/core/Mage/Core/Block/Abstract.php(758): Mage_Core_Block_Text_List->_toHtml()
      #29 /var/www/shop/production/htdocs/app/code/core/Mage/Core/Block/Abstract.php(525): Mage_Core_Block_Abstract->toHtml()
      #30 /var/www/shop/production/htdocs/app/code/core/Mage/Core/Block/Abstract.php(476): Mage_Core_Block_Abstract->_getChildHtml('left', true)
      #31 /var/www/shop/production/htdocs/app/design/adminhtml/default/default/template/page.phtml(58): Mage_Core_Block_Abstract->getChildHtml('left')
      #32 /var/www/shop/production/htdocs/app/code/core/Mage/Core/Block/Template.php(235): include('/var/www/shop/p...')
      #33 /var/www/shop/production/htdocs/app/code/core/Mage/Core/Block/Template.php(266): Mage_Core_Block_Template->fetchView('adminhtml/defau...')
      #34 /var/www/shop/production/htdocs/app/code/core/Mage/Core/Block/Template.php(280): Mage_Core_Block_Template->renderView()
      #35 /var/www/shop/production/htdocs/app/code/core/Mage/Adminhtml/Block/Template.php(81): Mage_Core_Block_Template->_toHtml()
      #36 /var/www/shop/production/htdocs/app/code/core/Mage/Core/Block/Abstract.php(758): Mage_Adminhtml_Block_Template->_toHtml()
      #37 /var/www/shop/production/htdocs/app/code/core/Mage/Core/Model/Layout.php(529): Mage_Core_Block_Abstract->toHtml()
      #38 /var/www/shop/production/htdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(391): Mage_Core_Model_Layout->getOutput()
      #39 /var/www/shop/production/htdocs/app/code/core/Mage/Adminhtml/controllers/Sales/OrderController.php(119): Mage_Core_Controller_Varien_Action->renderLayout()
      #40 /var/www/shop/production/htdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(420): Mage_Adminhtml_Sales_OrderController->viewAction()
      #41 /var/www/shop/production/htdocs/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(253): Mage_Core_Controller_Varien_Action->dispatch('view')
      #42 /var/www/shop/production/htdocs/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
      #43 /var/www/shop/production/htdocs/app/code/local/Mage/Core/Model/App.php(348): Mage_Core_Controller_Varien_Front->dispatch()
      #44 /var/www/shop/production/htdocs/app/Mage.php(627): Mage_Core_Model_App->run(Array)
      #45 /var/www/shop/production/htdocs/index.php(82): Mage::run('', 'store')
      #46 {main}
    • Sam Mahoney's Avatar
    • Sam Mahoney
    • Preeminent Rocketeer
    • Posts: 7420
    • Thanks: 222

    Re: Help - Errors in template

    Posted 13 years 2 months ago
    • I'm afraid that none of this is theme related, it's all hosting related. We don't touch anything in the admin regarding user permissions or orders - the only part of the admin we touch is the config pages for our extensions.

      Regarding the frontend errors, they're all caused by the same thing - php memory limit. Again, this is related to your server - you'll need to increase that limit - 512MB is the recommended amount.

      If you are using shared hosting, and it was all running fine til now, it's most likely that another site that you are "sharing" the server with has started to use more resources, and is thus affecting yours.
    • STEP 1 IN MAGENTO DEVELOPMENT - DISABLE YOUR CACHE OR YOU WON'T SEE ANY CHANGES.
      Use the new "secure" tab when replying for privately sharing links.
      Check the "Useful Snippets" post for tips.
  • Re: Help - Errors in template

    Posted 13 years 2 months ago
    • Hi Sam

      Thanks for your reply, so if I understand you correctly this is to do with the way the server was configuration and nothing to do with the theme?

      We did increase the php memory to max but those extensions still dont work and there is only this site on the server.

      if we were to pay you to look and fix issues that we are having are you able to do that?

      many thanks

      Amer
    • Sam Mahoney's Avatar
    • Sam Mahoney
    • Preeminent Rocketeer
    • Posts: 7420
    • Thanks: 222

    Re: Help - Errors in template

    Posted 13 years 2 months ago
    • As I said, it's server related, not theme related, so there's nothing I can do to help with that. You'll need to talk to your hosting company. Be sure that you can increase your memory limit, as some hosts don't allow this to be done. If you have a dedicated server you shouldn't be having any problems. Which hosting company are you using?
    • STEP 1 IN MAGENTO DEVELOPMENT - DISABLE YOUR CACHE OR YOU WON'T SEE ANY CHANGES.
      Use the new "secure" tab when replying for privately sharing links.
      Check the "Useful Snippets" post for tips.
  • Re: Help - Errors in template

    Posted 13 years 2 months ago
    • Hi Sam

      we are using www.hetzner.de/en

      we have the Hetzner dedicated root server EX 8 impresses with its state-of-the-art Intel® Quad-Core Xeon® E3-1275 processor and 16 GB DDR 3 RAM with error-correcting code ECC for more stability. The offer includes a KVM over IP remote management console for permanent access. What´s more, two power supply units guarantee a high level of reliability.

      Thanks

      Amer
    • Sam Mahoney's Avatar
    • Sam Mahoney
    • Preeminent Rocketeer
    • Posts: 7420
    • Thanks: 222

    Re: Help - Errors in template

    Posted 13 years 2 months ago
    • All sounds very impressive, but seems something's wrong somewhere. So you'll need to ask them for assistance, there's really nothing I can do.

      Be sure to clean your logs also, as they can really build up and start causing problems.
    • STEP 1 IN MAGENTO DEVELOPMENT - DISABLE YOUR CACHE OR YOU WON'T SEE ANY CHANGES.
      Use the new "secure" tab when replying for privately sharing links.
      Check the "Useful Snippets" post for tips.
  • Re: Help - Errors in template

    Posted 13 years 2 months ago
    • Thanks Sam when you say clear your logs you mean server logs right?

      Thanks

      Amer
    • Sam Mahoney's Avatar
    • Sam Mahoney
    • Preeminent Rocketeer
    • Posts: 7420
    • Thanks: 222

    Re: Help - Errors in template

    Posted 13 years 2 months ago
    • No, Magento:

      System > Configuration > Advanced > System > Log Cleaning

      You need to set a cron job to do it. You can google that.
    • STEP 1 IN MAGENTO DEVELOPMENT - DISABLE YOUR CACHE OR YOU WON'T SEE ANY CHANGES.
      Use the new "secure" tab when replying for privately sharing links.
      Check the "Useful Snippets" post for tips.
  • Re: Help - Errors in template

    Posted 13 years 2 months ago
    • Thanks Sam

      Can you also let me know how to move the Community Poll & Compare Products to the right side bar.

      thanks

      Amer
    • Sam Mahoney's Avatar
    • Sam Mahoney
    • Preeminent Rocketeer
    • Posts: 7420
    • Thanks: 222

    Re: Help - Errors in template

    Posted 13 years 2 months ago
    • They should be both in the right sidebar by default.

      But anyways, to move a block from one sidebar to the other, you need to find the xml that adds it and change left to right or vice-versa - see here: nothingtopost.wordpress.com/2010/11/25/m...-from-left-to-right/
    • STEP 1 IN MAGENTO DEVELOPMENT - DISABLE YOUR CACHE OR YOU WON'T SEE ANY CHANGES.
      Use the new "secure" tab when replying for privately sharing links.
      Check the "Useful Snippets" post for tips.

Time to create page: 0.073 seconds