rss
twitter
    Find out what I'm doing, Follow Me :)

Thursday, April 15, 2010

Pin It

Widgets

Upgrading To Magento 1.4

With the recent release of Magento version 1.4, many people are having trouble upgrading their current Magento installation, or installing their template on a fresh Magento 1.4 installation. A quick search online and you’ll find countless entries and posts stating that Magento 1.4 is buggy, not working, horrible, etc. Particularly when you browse through the Magento forums.

In fact Magento 1.4 is different than the last previous stable version (1.3.2.4) but you should definitely be able to upgrade your installation, or install your custom template on a Magento 1.4 installation! Here are the most common issues and how to fix them!

Magento modern theme 1.4

This relates to the following issues:

    * Can’t install Modern Theme through Magento Connect
          o Get error “magento-core/Interface_Frontend_Default_Modern requires package “magento-core/Mage_Core_Modules” (version >= 1.3.2.2, version <= 1.3.3, excluded versions: 1.3.3), installed version is 1.4.0.0
            Install Errors
            No valid packages found
            PEAR ERROR: install failed
    * Can’t upgrade Modern Theme through Magento Connect
          o Get similar error as above
    * etc

As of now, there is no good way to install or upgrade the Modern Theme via Magento Connect. BUT you should definitely be able to get it by installing a fresh Magento 1.4 installation.

Magento 1.4 comes by default with the default theme, the modern theme, and the iphone optimized theme. However, you’d have to install Magento manually and NOT use the downloader (as this will include the default theme only). Here is one way to install Magento 1.4 manually:

   1. Download all the files on your computer and upload them on your server
   2. Create a database and a database user and grant that user all permissions to the database. Make sure to write down your database name, database user name, and database user password.
   3. Go to the URL that points to your server and follow the instructions to complete Magento installation

Can’t access admin, blank page, products won’t load, error, etc

Most issues will be resolved once you reindex Magento data and refresh all Magento cache. To reindex Magento data follow these quick steps:

   1. Go to System>Index Management
   2. Click on “select all” in the upper left corner
   3. Under “Action” select “Reindex Data” and click submit

To refresh all Magento cache following these quick steps:

   1. Go to System>Configuration and
   2. Click on “select all” in the upper left corner
   3. Under “action” click on “refresh” and click submit
   4. Then click on these buttons:
         1. Flush Magento Cache
         2. Flush Cache Storage
         3. Fluch Catalog Images Cache
         4. Flush JavaScript/CSS Cache

Upgrading your existing theme (modern or else)

Obviously I cannot cover here all the possible problems and issues that may arise when upgrading your particular template to be compatible with Magento 1.4. However, I found that the most common issue is “Categories not working after upgrading to 1.4″. This relates to the error people get when clicking on some categories: “Error processing your request” followed by a number.

To fix that, you’ll need to do 2 things:

1. First, edit your toolbar.phtml file located under app/design/frontend/default/yourthemename/template/catalog/product/list. Take the updated toolbar.phtml from the new 1.4 default theme (located under app/design/frontend/base/default/template/catalog/product/list) and use it in your theme. Then edit that file to apply any styling you had in your original toolbar.phtml file. Another way of doing it is editing your toolbar.phml file to use the right class names and code (you can compare with the default one and take it from there).

2. Second, open catalog.xml located under app/design/frontend/default/yourthemename/layout/ and find this line:

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

And underneath insert this code:

<block type=”page/html_pager” name=”product_list_toolbar_pager”/>

And that should do it!

2 comments:

  1. Hi,
    I can't access admin CMS>Page so I try to go to System>Index Management but I can't access too !
    I've got : "There has been an error processing your request"

    How can I fix it ?

    Thanks !

    ReplyDelete
  2. how i do 1.4 downgrade to 1.3 modern theme? I can't

    ReplyDelete