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 callSolution: Create a new file
./template/catalog/product/list/pager.phtmland 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.xmland 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.phtmland 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"
Last 5 posts in Knowledge Base
Even better Wordpress and Magento integration
FAQs
Magento/Wordpress injection vulnerability
IMAP/POP3/SMTP Details
Quick script to batch create Magento categories


Chris
24 Feb. 2010
To enable printing of errors
Change:
/errors/local.xml.sample
To this:
/errors/local.xml
Daniel Nordstrom
25 Feb. 2010
Great resource, thanks for gathering and posting these issues.
S.k. shukla
22 Mar. 2010
Henk Janssen
22 Mar. 2010
Point 3 is incomplete.
It ends with “then remove”
Remove WHAT?
And ADD it WHERE?
Wich line?
ben@sonassi.com
22 Mar. 2010
Sorry Henk! I have completed the remaining steps for you.
Jana
23 Mar. 2010
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:
Can you help me? Thanks, Jana
ben@sonassi.com
23 Mar. 2010
Hi Jana,
I would be inclined to check
./lib/Zend/Cache/Backend/File.phpAnd replace
With:
Then create a tmp directory in your Magento root folder with 755 permissions with the correct owner/group.
Jana
23 Mar. 2010
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}
Jana
23 Mar. 2010
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
ben@sonassi.com
23 Mar. 2010
I’m afraid we would have to debug it manually to help you identify the error.
Get in touch if you need further assistance
Ian Yates
11 May. 2010
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
ben@sonassi.com
11 May. 2010
Very true! I just used nano and copied the contents without line wrapping! I’ll update the text now!
Adam
25 May. 2010
Thanks, that resolved the issue of of my client
tuba
16 Jul. 2010
Nice helped me a lot! thanks!
Bui Phong
19 Jul. 2010
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
ben@sonassi.com
26 Jul. 2010
Hi Bui,
Have a look at the guide, specifically step 3.
charismeki
10 Aug. 2010
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 –