title: Magento My Account Layout XML Problem
body: <p>I'm having issues getting the customer.xml layout file to work properly for the customer's "my account" pages.</p>
  
  <p>The navigation links and the previously ordered items that are usually on the left hand side of the page won't show up on the page, but if I change the reference name to "content" in the xml file, it shows up (except it's obviously then on the right hand side). I've checked the template it's referencing (2columns-left.phtml), and the getChildHtml('left') is there in the correct position.</p>
  
  <p>The block that's causing the problem:</p>
  
  <pre><code>&lt;customer_account&gt;
      &lt;!-- Mage_Customer --&gt;
      &lt;reference name="root"&gt;
          &lt;action method="setTemplate"&gt;&lt;template&gt;page/2columns-left.phtml&lt;/template&gt;&lt;/action&gt;
      &lt;/reference&gt;
  
      &lt;reference name="left"&gt;
          &lt;action method="unsetChild"&gt;&lt;name&gt;catalog.navigation.all&lt;/name&gt;&lt;/action&gt;
          &lt;action method="unsetChild"&gt;&lt;name&gt;callout.sendcard&lt;/name&gt;&lt;/action&gt;
          &lt;action method="unsetChild"&gt;&lt;name&gt;callout.specialorder&lt;/name&gt;&lt;/action&gt;
          &lt;block type="customer/account_navigation" name="customer_account_navigation" before="-" template="customer/account/navigation.phtml"&gt;
              &lt;action method="addLink" translate="label" module="customer"&gt;&lt;name&gt;account&lt;/name&gt;&lt;path&gt;customer/account/&lt;/path&gt;&lt;label&gt;Account Dashboard&lt;/label&gt;&lt;/action&gt;
              &lt;action method="addLink" translate="label" module="customer"&gt;&lt;name&gt;account_edit&lt;/name&gt;&lt;path&gt;customer/account/edit/&lt;/path&gt;&lt;label&gt;Account Information&lt;/label&gt;&lt;/action&gt;
              &lt;action method="addLink" translate="label" module="customer"&gt;&lt;name&gt;address_book&lt;/name&gt;&lt;path&gt;customer/address/&lt;/path&gt;&lt;label&gt;Address Book&lt;/label&gt;&lt;/action&gt;
          &lt;/block&gt;
          &lt;block type="sales/reorder_sidebar" name="sale.reorder.sidebar" as="reorder" template="sales/reorder/sidebar.phtml"/&gt;
          &lt;remove name="tags_popular"/&gt;
      &lt;/reference&gt;
  &lt;/customer_account&gt;
  </code></pre>
  
  <p>This was basically copied straight over from another one of our sites where this works 100%. I've tried everything I can think of (changing the name of the reference in both the template and the layout xml, for example) to no avail. The templates that the layout is referencing are obviously working because they do show up when put into the "content" area.</p>
  
  <p>This installation of magento is version 1.3.1.1.</p>
  
  <p>I appreciate any advice you have to give me...</p>
  
  <p><em>Update: I tried changing the reference to "global_messages", and it doesn't show there either. It only seems to work in the "content" section.</em></p>
  
  <p><strong>Update 2: These are the results of using the "showLayout=page" query string on the page when used with Alan Storm's very handy debugging module (which you'll find in his answer below).</strong></p>
  
  <pre><code>    &lt;?xml version="1.0"?&gt;
  &lt;layout&gt;&lt;block type="page/html" name="root" output="toHtml" template="page/3columns.phtml"&gt;
      &lt;block type="page/html_head" name="head" as="head"&gt;
          &lt;action method="addJs"&gt;
              &lt;script&gt;prototype/prototype.js&lt;/script&gt;
          &lt;/action&gt;
          &lt;action method="addJs"&gt;
              &lt;script&gt;prototype/validation.js&lt;/script&gt;
          &lt;/action&gt;
  
          &lt;action method="addJs"&gt;
              &lt;script&gt;paypoint/validation.js&lt;/script&gt;
          &lt;/action&gt;
          &lt;action method="addJs"&gt;
              &lt;script&gt;scriptaculous/builder.js&lt;/script&gt;
          &lt;/action&gt;
          &lt;action method="addJs"&gt;
              &lt;script&gt;scriptaculous/effects.js&lt;/script&gt;
  
          &lt;/action&gt;
          &lt;action method="addJs"&gt;
              &lt;script&gt;scriptaculous/dragdrop.js&lt;/script&gt;
          &lt;/action&gt;
          &lt;action method="addJs"&gt;
              &lt;script&gt;scriptaculous/controls.js&lt;/script&gt;
          &lt;/action&gt;
          &lt;action method="addJs"&gt;
  
              &lt;script&gt;scriptaculous/slider.js&lt;/script&gt;
          &lt;/action&gt;
          &lt;action method="addJs"&gt;
              &lt;script&gt;varien/js.js&lt;/script&gt;
          &lt;/action&gt;
          &lt;action method="addJs"&gt;
              &lt;script&gt;varien/form.js&lt;/script&gt;
  
          &lt;/action&gt;
          &lt;action method="addJs"&gt;
              &lt;script&gt;varien/menu.js&lt;/script&gt;
          &lt;/action&gt;
          &lt;action method="addJs"&gt;
              &lt;script&gt;mage/translate.js&lt;/script&gt;
          &lt;/action&gt;
          &lt;action method="addJs"&gt;
  
              &lt;script&gt;mage/cookies.js&lt;/script&gt;
          &lt;/action&gt;
          &lt;action method="addCss"&gt;
              &lt;stylesheet&gt;css/reset.css&lt;/stylesheet&gt;
          &lt;/action&gt;
          &lt;action method="addCss"&gt;
              &lt;stylesheet&gt;css/boxes.css&lt;/stylesheet&gt;
  
          &lt;/action&gt;
          &lt;action method="addCss"&gt;
              &lt;stylesheet&gt;css/clears.css&lt;/stylesheet&gt;
          &lt;/action&gt;
          &lt;action method="addCss"&gt;
              &lt;stylesheet&gt;css/menu.css&lt;/stylesheet&gt;
          &lt;/action&gt;
          &lt;action method="addCss"&gt;
  
              &lt;stylesheet&gt;css/calendar-blue.css&lt;/stylesheet&gt;
          &lt;/action&gt;
          &lt;action method="addCss"&gt;
              &lt;stylesheet&gt;css/styles.css&lt;/stylesheet&gt;
          &lt;/action&gt;
          &lt;action method="addItem"&gt;
              &lt;type&gt;skin_css&lt;/type&gt;
  
              &lt;name&gt;css/iestyles.css&lt;/name&gt;
              &lt;params/&gt;
              &lt;if&gt;IE&lt;/if&gt;
          &lt;/action&gt;
          &lt;action method="addItem"&gt;
              &lt;type&gt;skin_css&lt;/type&gt;
              &lt;name&gt;css/ie7.css&lt;/name&gt;
  
              &lt;params/&gt;
              &lt;if&gt;IE 7&lt;/if&gt;
          &lt;/action&gt;
          &lt;action method="addItem"&gt;
              &lt;type&gt;skin_css&lt;/type&gt;
              &lt;name&gt;css/ie7minus.css&lt;/name&gt;
              &lt;params/&gt;
  
              &lt;if&gt;lt IE 7&lt;/if&gt;
          &lt;/action&gt;
          &lt;action method="addItem"&gt;
              &lt;type&gt;js&lt;/type&gt;
              &lt;name&gt;lib/ds-sleight.js&lt;/name&gt;
              &lt;params/&gt;
              &lt;if&gt;lt IE 7&lt;/if&gt;
  
          &lt;/action&gt;
          &lt;action method="addItem"&gt;
              &lt;type&gt;js&lt;/type&gt;
              &lt;name&gt;varien/iehover-fix.js&lt;/name&gt;
              &lt;params/&gt;
              &lt;if&gt;lt IE 7&lt;/if&gt;
          &lt;/action&gt;
  
          &lt;action method="addCss"&gt;
              &lt;stylesheet&gt;css/print.css&lt;/stylesheet&gt;
              &lt;params&gt;media="print"&lt;/params&gt;
          &lt;/action&gt;
      &lt;/block&gt;
      &lt;block type="page/html_header" name="header" as="header"&gt;
          &lt;block type="page/template_links" name="top.links" as="topLinks"/&gt;
          &lt;block type="page/switch" name="store_language" as="store_language" template="page/switch/languages.phtml"/&gt;
  
          &lt;block type="core/template" name="top.nav" template="page/html/top.nav.phtml"/&gt;
      &lt;/block&gt;
      &lt;block type="core/messages" name="global_messages" as="global_messages"/&gt;
      &lt;block type="core/messages" name="messages" as="messages"/&gt;
      &lt;block type="core/text_list" name="content" as="content"/&gt;
      &lt;block type="core/text_list" name="right" as="right"/&gt;
      &lt;block type="page/html_footer" name="footer" as="footer" template="page/html/footer.phtml"/&gt;
      &lt;block type="core/text_list" name="before_body_end" as="before_body_end"/&gt;
  &lt;/block&gt;
  
  &lt;block type="core/profiler" output="toHtml"/&gt;
  &lt;reference name="top.links"&gt;
      &lt;action method="addLink" translate="label title" module="customer"&gt;
          &lt;label&gt;My Account&lt;/label&gt;
          &lt;url helper="customer/getAccountUrl"/&gt;
          &lt;title&gt;My Account&lt;/title&gt;
          &lt;prepare/&gt;
          &lt;urlParams/&gt;
          &lt;position&gt;10&lt;/position&gt;
  
      &lt;/action&gt;
  &lt;/reference&gt;
  &lt;reference name="root"&gt;
      &lt;action method="setTemplate"&gt;
          &lt;template&gt;page/2columns-left.phtml&lt;/template&gt;
      &lt;/action&gt;
  &lt;/reference&gt;
  &lt;reference name="top.menu"&gt;
      &lt;block type="catalog/navigation" name="catalog.topnav" template="catalog/navigation/top.phtml"/&gt;
  &lt;/reference&gt;
  &lt;reference name="footer_links"&gt;
  
      &lt;action method="addLink" translate="label title" module="catalog" ifconfig="catalog/seo/site_map"&gt;
          &lt;label&gt;Site Map&lt;/label&gt;
          &lt;url helper="catalog/map/getCategoryUrl"/&gt;
          &lt;title&gt;Site Map&lt;/title&gt;
      &lt;/action&gt;
  &lt;/reference&gt;
  &lt;reference name="footer_links"&gt;
      &lt;action method="addLink" translate="label title" module="catalogsearch" ifconfig="catalog/seo/search_terms"&gt;
          &lt;label&gt;Search Terms&lt;/label&gt;
  
          &lt;url helper="catalogsearch/getSearchTermUrl"/&gt;
          &lt;title&gt;Search Terms&lt;/title&gt;
      &lt;/action&gt;
      &lt;action method="addLink" translate="label title" module="catalogsearch"&gt;
          &lt;label&gt;Advanced Search&lt;/label&gt;
          &lt;url helper="catalogsearch/getAdvancedSearchUrl"/&gt;
          &lt;title&gt;Advanced Search&lt;/title&gt;
  
      &lt;/action&gt;
  &lt;/reference&gt;
  &lt;reference name="top.links"&gt;
      &lt;block type="checkout/links" name="checkout_cart_link"&gt;
          &lt;action method="addCartLink"/&gt;
          &lt;action method="addCheckoutLink"/&gt;
      &lt;/block&gt;
  &lt;/reference&gt;
  &lt;reference name="footer"&gt;
      &lt;block type="cms/block" name="cms_footer_links" before="footer_links"&gt;
          &lt;action method="setBlockId"&gt;
  
              &lt;block_id&gt;footer_links&lt;/block_id&gt;
          &lt;/action&gt;
      &lt;/block&gt;
  &lt;/reference&gt;
  &lt;reference name="left"&gt;
      &lt;block type="tag/popular" name="tags_popular" template="tag/popular.phtm" ignore="1"&gt;
          &lt;action method="setTemplate"&gt;
              &lt;template&gt;tag/popular.phtml&lt;/template&gt;
          &lt;/action&gt;
  
      &lt;/block&gt;
  &lt;/reference&gt;
  &lt;reference name="left"&gt;
  
  &lt;/reference&gt;
  &lt;reference name="before_body_end"&gt;
      &lt;block type="googleanalytics/ga" name="google_analytics" as="google_analytics"/&gt;
  &lt;/reference&gt;
  &lt;reference name="footer_links"&gt;
      &lt;action method="addLink" translate="label title" module="contacts" ifconfig="contacts/contacts/enabled"&gt;
          &lt;label&gt;Contact Us&lt;/label&gt;
  
          &lt;url&gt;contact-us&lt;/url&gt;
          &lt;title&gt;Contact Us&lt;/title&gt;
          &lt;prepare&gt;true&lt;/prepare&gt;
      &lt;/action&gt;
  &lt;/reference&gt;
  &lt;reference name="footer_links"&gt;
      &lt;action method="addLink" translate="label title" module="rss" ifconfig="rss/config/active"&gt;
          &lt;label&gt;RSS&lt;/label&gt;
  
          &lt;url&gt;rss&lt;/url&gt;
          &lt;title&gt;RSS testing&lt;/title&gt;
          &lt;prepare&gt;true&lt;/prepare&gt;
          &lt;urlParams/&gt;
          &lt;position/&gt;
          &lt;li/&gt;
          &lt;a&gt;class="link-feed"&lt;/a&gt;
  
      &lt;/action&gt;
  &lt;/reference&gt;
  &lt;reference name="wishlist_sidebar"&gt;
      &lt;action method="addPriceBlockType"&gt;
          &lt;type&gt;bundle&lt;/type&gt;
          &lt;block&gt;bundle/catalog_product_price&lt;/block&gt;
          &lt;template&gt;bundle/catalog/product/price.phtml&lt;/template&gt;
      &lt;/action&gt;
  
  &lt;/reference&gt;
  &lt;reference name="cart_sidebar"&gt;
      &lt;action method="addItemRender"&gt;
          &lt;type&gt;bundle&lt;/type&gt;
          &lt;block&gt;bundle/checkout_cart_item_renderer&lt;/block&gt;
          &lt;template&gt;checkout/cart/sidebar/default.phtml&lt;/template&gt;
      &lt;/action&gt;
  &lt;/reference&gt;
  &lt;reference name="root"&gt;
  
      &lt;action method="setTemplate"&gt;
          &lt;template&gt;page/2columns-left.phtml&lt;/template&gt;
      &lt;/action&gt;
  &lt;/reference&gt;
  &lt;reference name="left"&gt;
      &lt;action method="unsetChild"&gt;
          &lt;name&gt;catalog.navigation.all&lt;/name&gt;
      &lt;/action&gt;
      &lt;action method="unsetChild"&gt;
  
          &lt;name&gt;callout.sendcard&lt;/name&gt;
      &lt;/action&gt;
      &lt;action method="unsetChild"&gt;
          &lt;name&gt;callout.specialorder&lt;/name&gt;
      &lt;/action&gt;
      &lt;block type="customer/account_navigation" name="customer_account_navigation" before="-" template="customer/account/navigation.phtml"&gt;
          &lt;action method="addLink" translate="label" module="customer"&gt;
              &lt;name&gt;account&lt;/name&gt;
  
              &lt;path&gt;customer/account/&lt;/path&gt;
              &lt;label&gt;Account Dashboard&lt;/label&gt;
          &lt;/action&gt;
          &lt;action method="addLink" translate="label" module="customer"&gt;
              &lt;name&gt;account_edit&lt;/name&gt;
              &lt;path&gt;customer/account/edit/&lt;/path&gt;
              &lt;label&gt;Account Information&lt;/label&gt;
  
          &lt;/action&gt;
          &lt;action method="addLink" translate="label" module="customer"&gt;
              &lt;name&gt;address_book&lt;/name&gt;
              &lt;path&gt;customer/address/&lt;/path&gt;
              &lt;label&gt;Address Book&lt;/label&gt;
          &lt;/action&gt;
      &lt;/block&gt;
  
      &lt;block type="sales/reorder_sidebar" name="sale.reorder.sidebar" as="reorder" template="sales/reorder/sidebar.phtml"/&gt;
      &lt;remove name="tags_popular"/&gt;
  &lt;/reference&gt;
  &lt;reference name="customer_account_navigation"&gt;
      &lt;action method="addLink" translate="label" module="sales"&gt;
          &lt;name&gt;orders&lt;/name&gt;
          &lt;path&gt;sales/order/history/&lt;/path&gt;
          &lt;label&gt;My Orders&lt;/label&gt;
  
      &lt;/action&gt;
  &lt;/reference&gt;
  &lt;reference name="customer_account_navigation"&gt;
      &lt;action method="addLink" translate="label" module="tag"&gt;
          &lt;name&gt;tags&lt;/name&gt;
          &lt;path&gt;tag/customer/&lt;/path&gt;
          &lt;label&gt;My Tags&lt;/label&gt;
      &lt;/action&gt;
  
  &lt;/reference&gt;
  &lt;reference name="customer_account_navigation"&gt;
      &lt;action method="addLink" translate="label" module="newsletter"&gt;
          &lt;name&gt;newsletter&lt;/name&gt;
          &lt;path&gt;newsletter/manage/&lt;/path&gt;
          &lt;label&gt;Newsletter Subscriptions&lt;/label&gt;
      &lt;/action&gt;
  &lt;/reference&gt;
  &lt;reference name="cart_sidebar"&gt;
  
      &lt;action method="addItemRender"&gt;
          &lt;type&gt;bundle&lt;/type&gt;
          &lt;block&gt;bundle/checkout_cart_item_renderer&lt;/block&gt;
          &lt;template&gt;checkout/cart/sidebar/default.phtml&lt;/template&gt;
      &lt;/action&gt;
  &lt;/reference&gt;
  &lt;update handle="customer_account"/&gt;
  &lt;reference name="content"&gt;
      &lt;block type="customer/account_dashboard" name="customer_account_dashboard" template="customer/account/dashboard.phtml"&gt;
  
          &lt;block type="customer/account_dashboard_hello" name="customer_account_dashboard_hello" as="hello" template="customer/account/dashboard/hello.phtml"/&gt;
          &lt;block type="core/template" name="customer_account_dashboard_top" as="top"/&gt;
          &lt;block type="customer/account_dashboard_info" name="customer_account_dashboard_info" as="info" template="customer/account/dashboard/info.phtml"/&gt;
          &lt;block type="customer/account_dashboard_newsletter" name="customer_account_dashboard_newsletter" as="newsletter" template="customer/account/dashboard/newsletter.phtml"/&gt;
          &lt;block type="customer/account_dashboard_address" name="customer_account_dashboard_address" as="address" template="customer/account/dashboard/address.phtml"/&gt;
          &lt;block type="core/template" name="customer_account_dashboard_info1" as="info1"/&gt;
          &lt;block type="core/template" name="customer_account_dashboard_info2" as="info2"/&gt;
      &lt;/block&gt;
  &lt;/reference&gt;
  
  &lt;reference name="right"&gt;
      &lt;action method="unsetChild"&gt;
          &lt;name&gt;catalog_compare_sidebar&lt;/name&gt;
      &lt;/action&gt;
  &lt;/reference&gt;
  &lt;reference name="customer_account_dashboard"&gt;
      &lt;action method="unsetChild"&gt;
          &lt;name&gt;top&lt;/name&gt;
      &lt;/action&gt;
  
      &lt;block type="sales/order_recent" name="customer_account_dashboard_top" as="top" template="sales/order/recent.phtml"/&gt;
  &lt;/reference&gt;
  &lt;reference name="right"&gt;
      &lt;action method="unsetChild"&gt;
          &lt;name&gt;right.poll&lt;/name&gt;
      &lt;/action&gt;
  &lt;/reference&gt;
  &lt;reference name="customer_account_dashboard"&gt;
      &lt;action method="unsetChild"&gt;
          &lt;name&gt;customer_account_dashboard_info2&lt;/name&gt;
  
      &lt;/action&gt;
      &lt;block type="tag/customer_recent" name="customer_account_dashboard_info2" as="info2" template="tag/customer/recent.phtml"/&gt;
  &lt;/reference&gt;
  &lt;reference name="right"&gt;
      &lt;action method="unsetChild"&gt;
          &lt;name&gt;right.newsletter&lt;/name&gt;
      &lt;/action&gt;
  &lt;/reference&gt;
  &lt;reference name="top.links"&gt;
      &lt;action method="addLink" translate="label title" module="customer"&gt;
  
          &lt;label&gt;Log Out&lt;/label&gt;
          &lt;url helper="customer/getLogoutUrl"/&gt;
          &lt;title&gt;Log Out&lt;/title&gt;
          &lt;prepare/&gt;
          &lt;urlParams/&gt;
          &lt;position&gt;100&lt;/position&gt;
      &lt;/action&gt;
  
  &lt;/reference&gt;&lt;/layout&gt;
  </code></pre>