Magento 1.4 Install Errors

We imagine there is going to be a few, but here are the ones we have come across so far:

  • 1

    Unsupported operand types … Hostname.php
    Solution: Comment out line +471 in ./lib/Zend/Validate/Hostname.php

    #$regexChars += include($this->_validIdns[strtoupper($this->_tld)]);
  • 2

    Invalid mode for clean
    Solution: Remove ./app/code/core/Zend/Cache/

  • 3

    Invalid argument supplied for foreach … toolbar.phtml
    This is due to a change of the way the pagination works, usually that the template is missing the relevant XML block to load and the subsquent PHP call

    Solution: Create a new file ./template/catalog/product/list/pager.phtml and enter

    <?php if($this->getCollection()->getSize()): ?>
            <?php if($this->getLastPageNum()>1): ?>
            <td class="pages">
                <strong><?php echo $this->__('Page:') ?></strong>
                <ol>
                <?php if (!$this->isFirstPage()): ?>
                    <li><a href="<?php echo $this->getPreviousPageUrl() ?>"><img src="<?php echo $this->getSkinUrl('images/pager_arrow_left.gif') ?>" alt="<?php echo $this->__('Previous Page'); ?>" /></a></li>
                <?php endif ?>
                <?php foreach ($this->getPages() as $_page): ?>
                    <?php if ($this->isPageCurrent($_page)): ?>
                        <li><span class="on"><?php echo $_page ?></span></li>
                    <?php else: ?>
                        <li><a href="<?php echo $this->getPageUrl($_page) ?>"><?php echo $_page ?></a></li>
                    <?php endif ?>
                <?php endforeach;; ?>
                <?php if (!$this->isLastPage()): ?>
                    <li><a href="<?php echo $this->getNextPageUrl() ?>"><img src="<?php echo $this->getSkinUrl('images/pager_arrow_right.gif') ?>" alt="<?php echo $this->__('Next Page'); ?>" /></a></li>
                <?php endif ?>
                </ol>
            </td>
            <?php endif; ?>
     
    <?php endif ?>

    Edit ./layout/catalog.xml and add:

    <block type="page/html_pager" name="product_list_toolbar_pager" template="catalog/product/list/pager.phtml" />

    Under

    <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">

    Then edit ./template/catalog/product/list/toolbar.phtml and replace code between (and including) [approx. line 44 to line 63]

    <?php if($this->getLastPageNum()>1 && is_array($this->getPages())): ?>
    .....
    <?php endif; ?>

    With:

    <?php echo $this->getPagerHtml(); ?>
  • 4

    During installation, blank page after database details
    Solution: Albeit not a solution, more of a hack.

    1) You get to the administrator stage and the page is blank
    2) Rename ./app/etc/local/xml to ./app/etc/local.xml.old
    3) Reload the page, and it the fields will appear.
    4) Restore ./app/etc/local.xml
    5) Fill in the fields as usual and click submit
    6) The next page will be blank, but the information will have saved correctly.

  • 5

    There has been an error processing your request #1424782433
    Errors are hidden by default in 1.4, so you will need to open the file using command line or FTP.
    Solution: Open./var/report/1424782433/ OR
    If you are developing, add this to your .htaccess file

    SetEnv MAGE_IS_DEVELOPER_MODE "true"
This entry was posted in Knowledge Base, Magento and tagged , , , , , , . Bookmark the permalink.

21 Responses to Magento 1.4 Install Errors


  1. Chris

    To enable printing of errors

    Change:

    /errors/local.xml.sample

    To this:

    /errors/local.xml

    Reply


  2. Great resource, thanks for gathering and posting these issues.

    Reply



    • S.k. shukla
      Trace:
      #0 /home4/dfineweb/public_html/projects/kant/magento_work/app/code/core/Zend/Cache/Backend/File.php(532): Zend_Cache::throwException('Invalid mode fo...')
      #1 /home4/dfineweb/public_html/projects/kant/magento_work/app/code/core/Zend/Cache/Backend/File.php(538): Zend_Cache_Backend_File-&gt;_clean('/home4/dfineweb...', 'matchingAnyTag', Array)
      #2 /home4/dfineweb/public_html/projects/kant/magento_work/app/code/core/Zend/Cache/Backend/File.php(279): Zend_Cache_Backend_File-&gt;_clean('/home4/dfineweb...', 'matchingAnyTag', Array)
      #3 /home4/dfineweb/public_html/projects/kant/magento_work/lib/Zend/Cache/Core.php(452): Zend_Cache_Backend_File-&gt;clean('matchingAnyTag', Array)
      #4 /home4/dfineweb/public_html/projects/kant/magento_work/lib/Varien/Cache/Core.php(100): Zend_Cache_Core-&gt;clean('matchingAnyTag', Array)
      #5 /home4/dfineweb/public_html/projects/kant/magento_work/app/code/core/Mage/Core/Model/Cache.php(376): Varien_Cache_Core-&gt;clean('matchingAnyTag', Array)
      #6 /home4/dfineweb/public_html/projects/kant/magento_work/app/code/core/Mage/Core/Model/App.php(1088): Mage_Core_Model_Cache-&gt;clean(Array)
      #7 /home4/dfineweb/public_html/projects/kant/magento_work/app/code/core/Mage/Adminhtml/Model/Url.php(167): Mage_Core_Model_App-&gt;cleanCache(Array)
      #8 /home4/dfineweb/public_html/projects/kant/magento_work/app/code/core/Mage/Admin/Model/Session.php(95): Mage_Adminhtml_Model_Url-&gt;renewSecretUrls()
      #9 /home4/dfineweb/public_html/projects/kant/magento_work/app/code/core/Mage/Admin/Model/Observer.php(55): Mage_Admin_Model_Session-&gt;login('admin', 'vishal1', Object(Mage_Core_Controller_Request_Http))
      #10 /home4/dfineweb/public_html/projects/kant/magento_work/app/code/core/Mage/Core/Model/App.php(1207): Mage_Admin_Model_Observer-&gt;actionPreDispatchAdmin(Object(Varien_Event_Observer))
      #11 /home4/dfineweb/public_html/projects/kant/magento_work/app/Mage.php(416): Mage_Core_Model_App-&gt;dispatchEvent('controller_acti...', Array)
      #12 /home4/dfineweb/public_html/projects/kant/magento_work/app/code/core/Mage/Core/Controller/Varien/Action.php(497): Mage::dispatchEvent('controller_acti...', Array)
      #13 /home4/dfineweb/public_html/projects/kant/magento_work/app/code/core/Mage/Adminhtml/Controller/Action.php(152): Mage_Core_Controller_Varien_Action-&gt;preDispatch()
      #14 /home4/dfineweb/public_html/projects/kant/magento_work/app/code/core/Mage/Core/Controller/Varien/Action.php(407): Mage_Adminhtml_Controller_Action-&gt;preDispatch()
      #15 /home4/dfineweb/public_html/projects/kant/magento_work/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action-&gt;dispatch('index')
      #16 /home4/dfineweb/public_html/projects/kant/magento_work/app/code/core/Mage/Core/Controller/Varien/Front.php(177): Mage_Core_Controller_Varien_Router_Standard-&gt;match(Object(Mage_Core_Controller_Request_Http))
      #17 /home4/dfineweb/public_html/projects/kant/magento_work/app/code/core/Mage/Core/Model/App.php(304): Mage_Core_Controller_Varien_Front-&gt;dispatch()
      #18 /home4/dfineweb/public_html/projects/kant/magento_work/app/Mage.php(596): Mage_Core_Model_App-&gt;run(Array)
      #19 /home4/dfineweb/public_html/projects/kant/magento_work/index.php(78): Mage::run('', 'store')
      #20 {main}

      Reply



  3. Henk Janssen

    Point 3 is incomplete.

    It ends with “then remove”

    Remove WHAT?

    And ADD it WHERE?
    Wich line?

    Reply


  4. I hope you can help me:
    I get the message in the dashboard after a perfekt 1.4.0.1. installation: “Latest Message: Magento CE Version 1.4.0.1 Stable is now available” – I dont understand…
    2. the following message: One or more of the Indexes are not up to date: Produkt Attribute, Product Prices, Catalog Url Rewrites, Product Flat Data, Category Flat Data, Kategorie Produkte, Catalog Search Index, Stock status. Click here to go to Index Management and rebuild required indexes.

    If I click to Index managememt the following failure will display:

    Trace:
    #0 /www/htdocs/w00b93b1/shopneu/lib/Zend/Cache/Backend.php(197): Zend_Cache::throwException('Could not deter...')
    #1 /www/htdocs/w00b93b1/shopneu/lib/Zend/Cache/Backend/File.php(123): Zend_Cache_Backend-&gt;getTmpDir()
    #2 /www/htdocs/w00b93b1/shopneu/lib/Zend/Cache.php(152): Zend_Cache_Backend_File-&gt;__construct(Array)
    #3 /www/htdocs/w00b93b1/shopneu/lib/Zend/Cache.php(93): Zend_Cache::_makeBackend('File', Array, false, false)
    #4 /www/htdocs/w00b93b1/shopneu/lib/Zend/Locale/Data.php(307): Zend_Cache::factory('Core', 'File', Array, Array)
    #5 /www/htdocs/w00b93b1/shopneu/app/code/core/Mage/Core/Block/Html/Calendar.php(42): Zend_Locale_Data::getList('de_DE', 'days')
    #6 /www/htdocs/w00b93b1/shopneu/app/code/core/Mage/Core/Block/Abstract.php(674): Mage_Core_Block_Html_Calendar-&gt;_toHtml()
    #7 /www/htdocs/w00b93b1/shopneu/app/code/core/Mage/Core/Block/Abstract.php(516): Mage_Core_Block_Abstract-&gt;toHtml()
    #8 /www/htdocs/w00b93b1/shopneu/app/code/core/Mage/Core/Block/Abstract.php(467): Mage_Core_Block_Abstract-&gt;_getChildHtml('calendar', true)
    #9 /www/htdocs/w00b93b1/shopneu/app/design/adminhtml/default/default/template/page/head.phtml(34): Mage_Core_Block_Abstract-&gt;getChildHtml('calendar')
    #10 /www/htdocs/w00b93b1/shopneu/app/code/core/Mage/Core/Block/Template.php(189): include('/www/htdocs/w00...')
    #11 /www/htdocs/w00b93b1/shopneu/app/code/core/Mage/Core/Block/Template.php(225): Mage_Core_Block_Template-&gt;fetchView('adminhtml/defau...')
    #12 /www/htdocs/w00b93b1/shopneu/app/code/core/Mage/Core/Block/Template.php(242): Mage_Core_Block_Template-&gt;renderView()
    #13 /www/htdocs/w00b93b1/shopneu/app/code/core/Mage/Core/Block/Abstract.php(674): Mage_Core_Block_Template-&gt;_toHtml()
    #14 /www/htdocs/w00b93b1/shopneu/app/code/core/Mage/Core/Block/Abstract.php(516): Mage_Core_Block_Abstract-&gt;toHtml()
    #15 /www/htdocs/w00b93b1/shopneu/app/code/core/Mage/Core/Block/Abstract.php(467): Mage_Core_Block_Abstract-&gt;_getChildHtml('head', true)
    #16 /www/htdocs/w00b93b1/shopneu/app/design/adminhtml/default/default/template/page.phtml(43): Mage_Core_Block_Abstract-&gt;getChildHtml('head')
    #17 /www/htdocs/w00b93b1/shopneu/app/code/core/Mage/Core/Block/Template.php(189): include('/www/htdocs/w00...')
    #18 /www/htdocs/w00b93b1/shopneu/app/code/core/Mage/Core/Block/Template.php(225): Mage_Core_Block_Template-&gt;fetchView('adminhtml/defau...')
    #19 /www/htdocs/w00b93b1/shopneu/app/code/core/Mage/Core/Block/Template.php(242): Mage_Core_Block_Template-&gt;renderView()
    #20 /www/htdocs/w00b93b1/shopneu/app/code/core/Mage/Adminhtml/Block/Template.php(81): Mage_Core_Block_Template-&gt;_toHtml()
    #21 /www/htdocs/w00b93b1/shopneu/app/code/core/Mage/Core/Block/Abstract.php(674): Mage_Adminhtml_Block_Template-&gt;_toHtml()
    #22 /www/htdocs/w00b93b1/shopneu/app/code/core/Mage/Core/Model/Layout.php(536): Mage_Core_Block_Abstract-&gt;toHtml()
    #23 /www/htdocs/w00b93b1/shopneu/app/code/core/Mage/Core/Controller/Varien/Action.php(389): Mage_Core_Model_Layout-&gt;getOutput()
    #24 /www/htdocs/w00b93b1/shopneu/app/code/core/Mage/Index/controllers/Adminhtml/ProcessController.php(55): Mage_Core_Controller_Varien_Action-&gt;renderLayout()
    #25 /www/htdocs/w00b93b1/shopneu/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Index_Adminhtml_ProcessController-&gt;listAction()
    #26 /www/htdocs/w00b93b1/shopneu/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action-&gt;dispatch('list')
    #27 /www/htdocs/w00b93b1/shopneu/app/code/core/Mage/Core/Controller/Varien/Front.php(177): Mage_Core_Controller_Varien_Router_Standard-&gt;match(Object(Mage_Core_Controller_Request_Http))
    #28 /www/htdocs/w00b93b1/shopneu/app/code/core/Mage/Core/Model/App.php(304): Mage_Core_Controller_Varien_Front-&gt;dispatch()
    #29 /www/htdocs/w00b93b1/shopneu/app/Mage.php(596): Mage_Core_Model_App-&gt;run(Array)
    #30 /www/htdocs/w00b93b1/shopneu/index.php(78): Mage::run('', 'store')
    #31 {main}

    Can you help me? Thanks, Jana

    Reply


    • Hi Jana,

      I would be inclined to check ./lib/Zend/Cache/Backend/File.php

      And replace

      protected $_options = array(
              'cache_dir' => 'null',

      With:

      protected $_options = array(
              'cache_dir' => 'tmp/',

      Then create a tmp directory in your Magento root folder with 755 permissions with the correct owner/group.

      Reply


  5. ok, I changed this, but I get a new error:

    Notice: Use of undefined constant tmp – assumed ‘tmp’ in /www/htdocs/w00b93b1/shopneu/lib/Zend/Cache.php on line 152

    Trace:
    #0 /www/htdocs/w00b93b1/shopneu/lib/Zend/Cache.php(152): mageCoreErrorHandler(8, ‘Use of undefine…’, ‘/www/htdocs/w00…’, 152, Array)
    #1 /www/htdocs/w00b93b1/shopneu/lib/Zend/Cache.php(93): Zend_Cache::_makeBackend(‘File’, Array, true, true)
    #2 /www/htdocs/w00b93b1/shopneu/app/code/core/Mage/Core/Model/Cache.php(117): Zend_Cache::factory(‘Varien_Cache_Co…’, ‘File’, Array, Array, true, true, true)
    #3 /www/htdocs/w00b93b1/shopneu/app/code/core/Mage/Core/Model/Config.php(1206): Mage_Core_Model_Cache->__construct(Array)
    #4 /www/htdocs/w00b93b1/shopneu/app/Mage.php(432): Mage_Core_Model_Config->getModelInstance(‘core/cache’, Array)
    #5 /www/htdocs/w00b93b1/shopneu/app/code/core/Mage/Core/Model/App.php(348): Mage::getModel(‘core/cache’, Array)
    #6 /www/htdocs/w00b93b1/shopneu/app/code/core/Mage/Core/Model/App.php(290): Mage_Core_Model_App->_initCache()
    #7 /www/htdocs/w00b93b1/shopneu/app/Mage.php(596): Mage_Core_Model_App->run(Array)
    #8 /www/htdocs/w00b93b1/shopneu/index.php(78): Mage::run(”, ‘store’)
    #9 {main}

    Reply


  6. PS. If I write ‘tmp/’ I get the failure: Parse error: syntax error, unexpected ‘/’, expecting ‘)’ in /www/htdocs/w00b93b1/shopneu/lib/Zend/Cache/Backend/File.php on line 91

    I change to `tmp’, than I get the other message with failure

    Reply


  7. I’m afraid we would have to debug it manually to help you identify the error.

    Get in touch if you need further assistance

    Reply


  8. The 3rd example shows a new page “pager.phtml” which contains incomplete code. This will throw out parsing errors (eg:

    <img src="<?php echo $this->getSkinUrl('images/pager_arrow_left.gif') ?>" alt="<?php echo $this->__('Previous P$

    )

    When all’s present and correct, the solution works a treat :)

    Reply


  9. Thanks, that resolved the issue of of my client

    Reply


  10. Nice helped me a lot! thanks!

    Reply


  11. Hello,
    I’m using Toolbar block outside magento, in a custom php file.
    In magento 1.3.2.4, the following code works great

    $toolbar = Mage::getSingleton(‘core/layout’)->createBlock(‘catalog/product_list_toolbar’,microtime());

    echo $toolbar->toHtml();

    However, in magento 1.4.1.0, the toolbar is rendered without pager.

    Could you please tell me what I need to do to get it work in magento 1.4?

    Thanks

    Reply



  12. charismeki

    hello,

    i am running into the same trouble as jana. what is the solution for getting it fixed?

    appreciate help and thanks in advance very much,

    c –

    Reply



  13. Vitro

    Im getting this when enabling the new version: Fatal error: Call to a member function getSize() on a non-object in /home/admin/public_html/app/design/frontend/base/default/template/page/html/pager.phtml on line 34

    and same error on toolbar.phtml too
    whats wrong?

    Reply


  14. I’m trying to get this uploader working for 1.4.2(stable) — this doesn’t seem to be working — it’s only uploading a single category. However, I’m not getting an error message.

    I’m unclear if the recommendations above are meant to resolve this general problem or if they are meant to address a specific error message.

    Reply


Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">