Top 3 Solutions when your Magento Categories are not displaying

Here are 3 quick solutions to try if you do not see your Magento store categories after a fresh install of Magento or an upgrade to the latest version. I wanted to post this because I just recently helped install Magento for someone (one of my 5 free Magento installations) and experienced this. The installation version was the latest Magento version, 1.2.1.2 and product categories did not show up on the frontend after they were added in the administration interface.

The top 3 solutions to this in my experience are:

  1. The categories not added as sub-categories of the Default, Root category.
  2. The Magento store configuration has no default category set.
  3. The category cache requires a refresh.

I’ll cover each of these points in more detail with screenshots, so that if you are having trouble with your categories not showing up you can hopefully solve the problem.

Categories must be sub-categories of the default (root) category

This one seems to catch most new Magento users, basically all new categories you add to your store should be children of your default category. If you accidentally delete your default root category, then you need to make a new default category that can be the root category of all your other store categories.

The screenshot below illustrates this configuration as it appears in the administration interface. Be sure to check the lines that connect you new categories with your original default category, they should show as sub-categories and be indented accordingly.

Ths screenshot shows the Default Root category as the parent of all new store categories.

Ths screenshot shows the Default Root category as the parent of all new store categories.

The reason for this notion of root categories is so that you can have entirely parallel category structures, made up of products from a shared inventory. These parallel category hierarchies can then be used for different store fronts. Each store has it’s own root category. What a pertinent segue into our next section…

Default (root) category must be specified for your Store

If you get a bit eager with your Magento store configuration and end up deleting the default root category, never fear, you can simply make a new Root category using the menu option. However you may also then need to re-associate that category with your default store (or any other store for which that category was the root). To do this you go the System > Manage Stores menu and drill-down to the Edit store screen as shown below.

This screenshot shows the Edit Store screen (accessed via the System -> Manage Stores menu). The Edit Store screen is where you configure your default root category.

This screenshot shows the Edit Store screen (accessed via the System -> Manage Stores menu). The Edit Store screen is where you configure your default root category.

If your root category is not set, then you simply select your root category from the drop down and save the configuration. You should now be able to see your categories on your Magento store front.

Category cache may require a refresh

If you are still reading, things are getting a little grim I’m afraid. This solution is seldom required, and in turn, is rarely the solution. However, it’s worth a try right, otherwise you’ll end up kissing goodbye the next 30 minutes while you trawl the internet and the Magento forums searching for some other obscure solution.

Access the Cache Management screen (System > Cache Management) and tick all the boxes (for good measure), yes even the one labelled ‘beta’. Then choose Refresh from the drop down and save. You can see this in the screenshot below.

Tick all the boxes and refresh the Magento cache.

Tick all the boxes and refresh the Magento cache.

Also one last thing, try refreshing the layered navigation too, this is a button further down the Cache Management screen, shown below.

One last thing to try: refresh the layered navigation cache.

One last thing to try: refresh the layered navigation cache.

If all of these options have failed you and you still cannot see your Magento store categories, the please post below and we can try and solve the problem together. Hopefully we can add any of the obscure reasons for failure and save others struggling with this frustrating initial hurdle to Magento installation and configuration.

You might also be interested in:

  1. 3 easy steps to add products to the Magento Home Page (or any CMS page)
  2. Magento Error: It is not safe to rely on the system’s timezone settings
  3. Magento 1.2.0.1 Fails when using Google Checkout Merchant Calculated Shipping Callbacks: An HTTPS URL is required.
  4. New feature for Magento Gmail or Google Apps Email Extension
  5. Installing a Magento Extension manually via FTP or SSH

92 Responses to “Top 3 Solutions when your Magento Categories are not displaying”

  1. Ashley July 27, 2010 at 1:20 pm #

    @Paul – Ask you hosting provider what the PHP execution limit is, and ask them to raise it for you. It sounds like it’s set too low for Magento.

  2. Matthew July 28, 2010 at 8:48 pm #

    You just saved me so much headache, I’d been fighting with this. Thank you so much :]

  3. Philip Kilner August 1, 2010 at 8:12 am #

    Ashley, you’re a star – had been banining my head on a wall with this one!

  4. Serge Souren August 12, 2010 at 6:16 am #

    Anyone encounter a totally blank MANAGE CATEGORIES screen? I don’t even have the buttons “ADD ROOT CATEGORY” or “ADD SUBCATEGORY”

  5. Omar August 19, 2010 at 7:08 pm #

    I am having same problems as Mark – No categories visible in backend/category management, but front end is ok, can’t create/save any new categories….I am using Magento ver. 1.4.0.1
    Any help would be much appreciated!!

  6. Omar August 19, 2010 at 7:43 pm #

    fyi!
    It may be a problem with your BROWSER – I was using IE, then changed to Mozilla Fire Fox and all my categories are there in the backend ans everything seems fine….makes sense cause my IE has been acting funny..ie my yahoo mail does not “show”…may be a virus/something or needs to be updated…or javascript thing?

  7. Paul Mitchell August 25, 2010 at 2:25 pm #

    OK, I have this problem too, and I know it’s my fault. I’ve inadvertantly deleted my root category(s?) through a SQL command. Now I have nothing appearing on the category screen; I can’t add a new category, there’s no list of categories, and on the Edit Store screen, there are no choices to select a root category.

    How can I re-create my root category? I can get access to the MySQL backend and input data directly into the tables, if I only knew what data to enter.

  8. Adam August 27, 2010 at 5:43 am #

    Thanks, this helped

  9. Kristof, Fooman September 4, 2010 at 3:35 am #

    @Paul
    Option 1) selectively restore from a database backup all tables that start with catalog_category_ Option 2a) assuming you don’t have a backup – try to change the root_category_id in core_store_group to an existing category – this should then hopefully give you back the possibility to edit categories from the back-end
    Option 2b) this is an export of a root category from a Magento sample store:
    INSERT INTO `catalog_category_entity` (`entity_id`, `entity_type_id`, `attribute_set_id`, `parent_id`, `created_at`, `updated_at`, `path`, `position`, `level`, `children_count`) VALUES
    (1, 9, 12, 0, ’2007-07-20 18:46:08′, ’2007-08-07 09:50:15′, ’1′, 1, 0, 26);

  10. John Difloure October 12, 2010 at 3:48 pm #

    Thanks for the post!

    Seems simple now – but “A” is what was causing me grief.

  11. Meagan November 6, 2010 at 12:25 pm #

    Thank you for the post, you quickly solved my category issue! It was the first solution.

  12. Vytis November 16, 2010 at 12:32 am #

    All i can say is Great post!
    I like how you structured information. Thanks.

  13. Prosper December 16, 2010 at 1:32 am #

    Great! This solved my problem. Thank you!
    My top navigation in Magento is back :-)

  14. Murtaza January 8, 2011 at 5:45 pm #

    Thank You soooooooooooooooooo much Ashley Schroder Your post is really helpfull for me. thank you so much man you are a Rock star…. :)

  15. Your Name January 26, 2011 at 7:13 am #

    EXECELLENT POST! Default category is used … arrrhhh ;)

  16. Kim Forbes January 26, 2011 at 5:40 pm #

    So our problem is that while building the Magento store we refreshed all the checked boxes and now we don’t see anything on the front end anymore. I have no idea what to do.

  17. Richard Kimber February 3, 2011 at 2:46 pm #

    I’m struggling with an odd one. I see the Layered Navigation headers Category, Price, etc… But no clickable sub options, even though I can see products that fall into each right in front of me.

    I have a category called Projectors with two sub categories called Red and Blue. Projectors is an anchor and has no products of its own. Red and Blue have products assigned to them and both categories appear in the drop down navigation at the top.

    When navigating to Projectors, you see all of the sub products and the layered navigation headers, but no sub categories or price brackets. What am I doing wrong?

    I’m using the very latest release version CE.

    Rich

  18. Edredones para Cunas February 23, 2011 at 2:27 pm #

    hi ashley! thanks for your help. not putting the categories under the Default Category, that was my problem. cheers.

  19. Your Name March 31, 2011 at 9:08 am #

    I installed magento 1.4.1 in my local, then I added 3 categories and a product, then I clear all in cache management.
    when I look at my front end still the category menu did not display there.
    Do you have any other solution to solve this issue?
    then main issue here is to make category menu visible in the front end.

  20. Erwin April 1, 2011 at 11:21 pm #

    If categories still aren’t showing, you may have forgot to configure ‘maximal depth’ in the admin panel:

    http://www.h-o.nl/blog/comic_magento_categories_not_showing/

  21. Your Name April 12, 2011 at 5:31 am #

    html file intigrate in to magento template

    i have use magento 1.4.0.1 categoies cannot show in to frontend

  22. hamza khan June 1, 2011 at 11:35 pm #

    thanks you so much you save my time.i was google from last 2 days about categy issue.

  23. Krish June 12, 2011 at 7:21 am #

    Worked!

    Thanks a lot :) Could you please recommend a book or some good tutorials about Magento which you might know?

    -Krish

  24. Ashley June 12, 2011 at 1:18 pm #

    Check out Alan Storm’s book :)

  25. Chris June 25, 2011 at 11:09 am #

    Hi Ashley,

    I can view my categories fine but now can not view the layered navigation bar. I changed the name of the root folder to Default Category and followed the steps above but no luck. Previously I could view Price and Size in the Navigation bar but now nothing. I’ve alsways been able to view the categories. Any help greatly appreciated.

    Thks
    Chris

  26. Casey Strouse July 7, 2011 at 10:48 am #

    Thanks so much for this post. I’ve been banging my head on the wall for days trying to figure this thing out.

  27. Bogdan Storm July 17, 2011 at 7:22 pm #

    Thaankssssss a lot.

  28. Naveed July 23, 2011 at 11:34 am #

    I am sorry but I tried everything and still cant see the products. created a new root category, indicated ‘manage store’ as my default category, have put a child category, activated and also activated the products, emptied all caches, tried everything but i m still unable to see the products.

    But the weird thing is that i could see the sample data, i have deleted all the sample products so that i can put my own…but just nothing is working…everytime i have to refresh block_html…

    i dont know what to…cna anyone help me ?

  29. Eric G August 11, 2011 at 7:40 am #

    Ashley, slightly different problem here. Products aren’t showing up in our install after importing. If we go in and re-save the product (w/o any changes) in the admin, they then show up.

    All the usual suspects are checked (in stock, visible, etc.) We added them via the import (FTPd, using Import profile) and matched all the column headers based on a Magento product export.

    Are we possibly missing a field that’s needed in our import CSV?

  30. Arnold September 1, 2011 at 2:59 pm #

    Try google-chrome browser. It helped for me. Now i can add my products to the category !!! Must be something in Java ?

  31. shayan September 5, 2011 at 2:38 am #

    Im sorry for bad documention of magento
    essential things is lose

  32. Raffael September 7, 2011 at 4:53 pm #

    Category must be in the root category, thanks!! =)

  33. Luke September 23, 2011 at 11:12 am #

    Thanks for these tips. New to Magento and the sub-categories of the default thing threw me off.

  34. Adam October 4, 2011 at 8:36 pm #

    By chance do you know how to customize the sort order (position) for a category that has subcategories? I have a Category of “Show All” with “Dozen” and “Monthly” as subcategories. The products in the subcategories seem to be sorting correctly based on my changing the position. The Show All top level category is not sorting properly (changed Position within Show All). I can’t quite tell how the positioning is being determined for Show All. Thanks!

  35. naeem October 7, 2011 at 1:09 pm #

    thanks – super helpful post!!

    step 2 worked for me. I somehow renamed my Root category and didnt update it in the Manage Stores area.

  36. Shahid October 12, 2011 at 5:34 am #

    Hi Ashley,

    Thanks for the posting. It work’s. Please let us know, how to display menus with hierarchy.

    Thanks

  37. Heloise October 23, 2011 at 9:42 pm #

    I have cant upload product imges.I am using magento 1.6.
    I am getting the error “Image information needs to be set for store view”
    As anyone faced this problem??

  38. alex October 26, 2011 at 7:01 pm #

    hi Ashley,
    i using Magento ver. 1.6.1.0. after install and login to admin page, i manage to add categories but it doesn’t show any out from the page. add root categories and add subcategories both also not function when i click on it. and also add product not function as well. which part when error ? it didnt show any page or form to let you edit or add at all. please help.

  39. lee December 22, 2011 at 2:19 pm #

    Hello Ashley. I am a bit of a noob when it comes to magento, anyway I was messing around in the admin and I noticed that in the default category there was a product. anyway I couldnt understand why it was there so I went and removed it from the default category and for some reason that affected all of my featured products (15 of them) and are now not visible and to top this when I search for something it comes up with no “Your search returns no results”. I have no idea why the removal of this product has affected the featured products and the search but I went and put it back in the default directory and it is not working. Anyway the only way I have found that the featured products and the search will work now is if I add all 800 products to the default category as well. Could you please help me? the developer of this site is nowhere to be found and I have spent many hours trying to find a solution. Thank you very much

  40. Anil Singh January 9, 2012 at 12:06 am #

    Category must be in root directory.

  41. ravi January 13, 2012 at 8:29 pm #

    I am unable to change the logo in freepop theme. Please advice

  42. sijo thomas February 3, 2012 at 4:07 am #

    Very Nice Tutorial..it help to solve the Category Problem…

Leave a Reply:

Gravatar Image