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"
    
  • Chris

    To enable printing of errors

    Change:

    /errors/local.xml.sample

    To this:

    /errors/local.xml

  • http://www.nintera.com Daniel Nordstrom

    Great resource, thanks for gathering and posting these issues.

  • Pingback: Moving Magento To A New Server

  • 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->_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->_clean('/home4/dfineweb...', 'matchingAnyTag', Array)
    #3 /home4/dfineweb/public_html/projects/kant/magento_work/lib/Zend/Cache/Core.php(452): Zend_Cache_Backend_File->clean('matchingAnyTag', Array)
    #4 /home4/dfineweb/public_html/projects/kant/magento_work/lib/Varien/Cache/Core.php(100): Zend_Cache_Core->clean('matchingAnyTag', Array)
    #5 /home4/dfineweb/public_html/projects/kant/magento_work/app/code/core/Mage/Core/Model/Cache.php(376): Varien_Cache_Core->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->clean(Array)
    #7 /home4/dfineweb/public_html/projects/kant/magento_work/app/code/core/Mage/Adminhtml/Model/Url.php(167): Mage_Core_Model_App->cleanCache(Array)
    #8 /home4/dfineweb/public_html/projects/kant/magento_work/app/code/core/Mage/Admin/Model/Session.php(95): Mage_Adminhtml_Model_Url->renewSecretUrls()
    #9 /home4/dfineweb/public_html/projects/kant/magento_work/app/code/core/Mage/Admin/Model/Observer.php(55): Mage_Admin_Model_Session->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->actionPreDispatchAdmin(Object(Varien_Event_Observer))
    #11 /home4/dfineweb/public_html/projects/kant/magento_work/app/Mage.php(416): Mage_Core_Model_App->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->preDispatch()
    #14 /home4/dfineweb/public_html/projects/kant/magento_work/app/code/core/Mage/Core/Controller/Varien/Action.php(407): Mage_Adminhtml_Controller_Action->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->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->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->dispatch()
    #18 /home4/dfineweb/public_html/projects/kant/magento_work/app/Mage.php(596): Mage_Core_Model_App->run(Array)
    #19 /home4/dfineweb/public_html/projects/kant/magento_work/index.php(78): Mage::run('', 'store')
    #20 {main}
    
  • Henk Janssen

    Point 3 is incomplete.

    It ends with “then remove”

    Remove WHAT?

    And ADD it WHERE?
    Wich line?

  • https://www.sonassi.com ben@sonassi.com

    Sorry Henk! I have completed the remaining steps for you.

  • http://test.aromantiko.de Jana

    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->getTmpDir()
    #2 /www/htdocs/w00b93b1/shopneu/lib/Zend/Cache.php(152): Zend_Cache_Backend_File->__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->_toHtml()
    #7 /www/htdocs/w00b93b1/shopneu/app/code/core/Mage/Core/Block/Abstract.php(516): Mage_Core_Block_Abstract->toHtml()
    #8 /www/htdocs/w00b93b1/shopneu/app/code/core/Mage/Core/Block/Abstract.php(467): Mage_Core_Block_Abstract->_getChildHtml('calendar', true)
    #9 /www/htdocs/w00b93b1/shopneu/app/design/adminhtml/default/default/template/page/head.phtml(34): Mage_Core_Block_Abstract->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->fetchView('adminhtml/defau...')
    #12 /www/htdocs/w00b93b1/shopneu/app/code/core/Mage/Core/Block/Template.php(242): Mage_Core_Block_Template->renderView()
    #13 /www/htdocs/w00b93b1/shopneu/app/code/core/Mage/Core/Block/Abstract.php(674): Mage_Core_Block_Template->_toHtml()
    #14 /www/htdocs/w00b93b1/shopneu/app/code/core/Mage/Core/Block/Abstract.php(516): Mage_Core_Block_Abstract->toHtml()
    #15 /www/htdocs/w00b93b1/shopneu/app/code/core/Mage/Core/Block/Abstract.php(467): Mage_Core_Block_Abstract->_getChildHtml('head', true)
    #16 /www/htdocs/w00b93b1/shopneu/app/design/adminhtml/default/default/template/page.phtml(43): Mage_Core_Block_Abstract->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->fetchView('adminhtml/defau...')
    #19 /www/htdocs/w00b93b1/shopneu/app/code/core/Mage/Core/Block/Template.php(242): Mage_Core_Block_Template->renderView()
    #20 /www/htdocs/w00b93b1/shopneu/app/code/core/Mage/Adminhtml/Block/Template.php(81): Mage_Core_Block_Template->_toHtml()
    #21 /www/htdocs/w00b93b1/shopneu/app/code/core/Mage/Core/Block/Abstract.php(674): Mage_Adminhtml_Block_Template->_toHtml()
    #22 /www/htdocs/w00b93b1/shopneu/app/code/core/Mage/Core/Model/Layout.php(536): Mage_Core_Block_Abstract->toHtml()
    #23 /www/htdocs/w00b93b1/shopneu/app/code/core/Mage/Core/Controller/Varien/Action.php(389): Mage_Core_Model_Layout->getOutput()
    #24 /www/htdocs/w00b93b1/shopneu/app/code/core/Mage/Index/controllers/Adminhtml/ProcessController.php(55): Mage_Core_Controller_Varien_Action->renderLayout()
    #25 /www/htdocs/w00b93b1/shopneu/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Index_Adminhtml_ProcessController->listAction()
    #26 /www/htdocs/w00b93b1/shopneu/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('list')
    #27 /www/htdocs/w00b93b1/shopneu/app/code/core/Mage/Core/Controller/Varien/Front.php(177): Mage_Core_Controller_Varien_Router_Standard->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->dispatch()
    #29 /www/htdocs/w00b93b1/shopneu/app/Mage.php(596): Mage_Core_Model_App->run(Array)
    #30 /www/htdocs/w00b93b1/shopneu/index.php(78): Mage::run('', 'store')
    #31 {main}
    

    Can you help me? Thanks, Jana

  • https://www.sonassi.com ben@sonassi.com

    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.

  • http://test.aromantiko.de Jana

    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}

  • http://test.aromantiko.de Jana

    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

  • https://www.sonassi.com ben@sonassi.com

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

    Get in touch if you need further assistance

  • http://www.snaptin.com Ian Yates

    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 :)

  • https://www.sonassi.com ben@sonassi.com

    Very true! I just used nano and copied the contents without line wrapping! I’ll update the text now!

  • Adam

    Thanks, that resolved the issue of of my client

  • tuba

    Nice helped me a lot! thanks!

  • http://www.662bodyboardshop.com Bui Phong

    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

  • https://www.sonassi.com ben@sonassi.com

    Hi Bui,

    Have a look at the guide, specifically step 3.

  • 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 –

  • 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?

  • http://abccorp william

    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.

  • Pingback: Magento upgrade 1.3 to 1.4 « enru tech