Magento Core Bugs and Patchs

Categories are not appearing when editing products

Apply to Magento 1.5 CE

File path app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Categories.php

Function public function getSelectedCategoriesPathIds($rootId = false)

Related problem : categories do not expand in admin,  categories suddenly disappear,  categories do not show when edit product


public function getSelectedCategoriesPathIds($rootId = false)
= array();
$collection = Mage::getModel('catalog/category')->getCollection()
addFieldToFilter('entity_id', array('in'=>$this->getCategoryIds()));
foreach (
$collection as $item) {
if ($rootId && !in_array($rootId, $item->getPathIds())) {
foreach ($item->getPathIds() as $id) {
if (!in_array($id, $ids)) {
= $id;
return $ids;

Flash uploader is not working on Products images

Apply to Magento 1.6 CE

File path js/prototype/prototype.js

Related problem : flash upload is not working, image is not uploaded but no error, can not upload product image, flash uploader problem

Patch : Replace the file js/prototype/prototype.js (is prototype 1.7) with a previous version from magento 1.5 (prototype 1.6)

Magento Checkout Problem on IE9

Apply to Magento 1.5 and older

Overview : IE9 have errors itself with old prototype library

The Magento ecommerce system uses and older version of the Prototype Javascript framework for ajax and DOM manipulation, and some users have reported problems with their stores and systems.

Whatever you may think of Microsoft Inc., their strategy, and the software it creates, there’s still a focus on providing some mechanism for backwards compatibility within their corporate culture. This includes the Internet Explorer team, which provides a custom <meta> tag that will tell Internet Explorer to render things as though it was an older version of itself

Path :
Getting this tag into your document’s <head> element is the quickest way to solve any problems you have with IE9