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 fileSetEnv MAGE_IS_DEVELOPER_MODE "true"