title: Position of getReviewsSummaryHtml(()
body: <p>I'm relatively new to Magento, so please go easy on me if the below is a stupid obvious question!!</p>
  
  <p>I wish to move the output from:</p>
  
  <pre><code>$this-&gt;getReviewsSummaryHtml($this-&gt;getProduct(), false, true);
  </code></pre>
  
  <p>Currently it is in my main view.phtml as shown in this code section (it's five lines from the bottom):</p>
  
  <pre><code>    &lt;div class="product-shop"&gt;
          &lt;div class="product-name"&gt;
              &lt;h1&gt;&lt;?php echo $_helper-&gt;productAttribute($_product, $_product-&gt;getName(), 'name') ?&gt;&lt;/h1&gt;
              &lt;div class="coda-slider-wrapper"&gt;
                  &lt;div class="coda-slider preload" id="coda-slider-1"&gt;
  
                      &lt;?php foreach ($this-&gt;getChildGroup('detailed_info', 'getChildHtml') as $alias =&gt; $html):?&gt;
                          &lt;div class="panel box-collateral &lt;?php echo "box-{$alias}"?&gt;"&gt;
                              &lt;div class="panel-wrapper"&gt;
                                  &lt;?php if ($title = $this-&gt;getChildData($alias, 'title')):?&gt;
                                  &lt;h2&gt;&lt;?php echo $this-&gt;escapeHtml($title); ?&gt;&lt;/h2&gt;
                                  &lt;?php endif;?&gt;
                                  &lt;?php echo $html; ?&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
                      &lt;?php endforeach;?&gt;
  
                  &lt;/div&gt;&lt;!-- .coda-slider --&gt;
              &lt;/div&gt;&lt;!-- .coda-slider-wrapper --&gt;
          &lt;/div&gt;
          &lt;?php echo $this-&gt;getReviewsSummaryHtml($this-&gt;getProduct(), false, true); ?&gt;
          &lt;?php echo $this-&gt;getChildHtml('alert_urls') ?&gt;
          &lt;?php echo $this-&gt;getChildHtml('product_type_data') ?&gt;
          &lt;?php echo $this-&gt;getTierPriceHtml() ?&gt;
          &lt;?php echo $this-&gt;getChildHtml('extrahint') ?&gt;
  </code></pre>
  
  <p><strong>With the line in this position output is correct, producing the correct "1 Review(s) | Add Your Review" on the page.</strong></p>
  
  <p>I have include the code above the line as it is pertinent to this question. As you can see, I am utilising coda-slider, it works a treat, and produces 4 tabs. The XML relevant is:</p>
  
  <pre><code>            &lt;block type="catalog/product_view_additional" name="product.info.additional" as="product_additional_data" /&gt;
              &lt;block type="catalog/product_view_description" name="product.description" as="description" template="catalog/product/view/description.phtml"&gt;
                  &lt;action method="addToParentGroup"&gt;&lt;group&gt;detailed_info&lt;/group&gt;&lt;/action&gt;
              &lt;/block&gt;
              &lt;block type="catalog/product_view_description" name="product.tips" as="tips" template="catalog/product/view/tips.phtml"&gt;
                  &lt;action method="addToParentGroup"&gt;&lt;group&gt;detailed_info&lt;/group&gt;&lt;/action&gt;
              &lt;/block&gt;
              &lt;block type="catalog/product_view_description" name="product.delivery" as="delivery" template="catalog/product/view/delivery.phtml"&gt;
                  &lt;action method="addToParentGroup"&gt;&lt;group&gt;detailed_info&lt;/group&gt;&lt;/action&gt;
              &lt;/block&gt;
              &lt;block type="review/product_view_list" name="product.reviews" as="reviews" template="catalog/product/view/reviews.phtml"&gt;
                  &lt;action method="addToParentGroup"&gt;&lt;group&gt;detailed_info&lt;/group&gt;&lt;/action&gt;
              &lt;/block&gt;
              &lt;block type="catalog/product_view" name="product.info.addtocart" as="addtocart" template="catalog/product/view/addtocart.phtml"/&gt;
  </code></pre>
  
  <p>What I wish to do is to move the code, to be included in one of the tabs, the one created in the XML above utilising "reviews.phtml", the code for which is:</p>
  
  <pre><code>    &lt;h2 class="title"&gt;&lt;?php echo $this-&gt;__('Reviews') ?&gt;&lt;/h2&gt;
      &lt;?php $_items = $this-&gt;getReviewsCollection()-&gt;getItems();
      if( count( $_items ) ){
          // Once we've stored the reviews, we can loop through them and get the data we need from each
          foreach( $_items as $_review ){?&gt;
              &lt;p&gt;&lt;strong&gt;&lt;?php echo $this-&gt;htmlEscape( $_review-&gt;getTitle() );?&gt;&lt;/strong&gt; by &lt;?php echo $this-&gt;htmlEscape( $_review-&gt;getNickname() );?&gt;&lt;/p&gt;
              &lt;p class="reviewBody"&gt;&lt;?php echo $this-&gt;htmlEscape( $_review-&gt;getDetail() ); ?&gt; &lt;/p&gt;
          &lt;?php
          }
      }
  
      echo $this-&gt;getReviewsSummaryHtml($this-&gt;getProduct(), false, true);
  
      ?&gt;
  </code></pre>
  
  <p>Now here is the problem, in this position, the code throws the following error and call stack:</p>
  
  <pre><code>    Fatal error: Call to a member function assign() on a non-object in /home/default/littledickybird.co.uk/user/htdocs/1.6/app/code/core/Mage/Review/Block/Product/View.php on line 67
  
      Call Stack:
          0.0010     632248   1. {main}() /home/default/littledickybird.co.uk/user/htdocs/1.6/index.php:0
          0.0090     667600   2. Mage::run() /home/default/littledickybird.co.uk/user/htdocs/1.6/index.php:81
          0.0340     887168   3. Mage_Core_Model_App-&gt;run() /home/default/littledickybird.co.uk/user/htdocs/1.6/app/Mage.php:640
          0.6510    3469248   4. Mage_Core_Controller_Varien_Front-&gt;dispatch() /home/default/littledickybird.co.uk/user/htdocs/1.6/app/code/core/Mage/Core/Model/App.php:347
          0.6610    3615704   5. Mage_Core_Controller_Varien_Router_Standard-&gt;match() /home/default/littledickybird.co.uk/user/htdocs/1.6/app/code/core/Mage/Core/Controller/Varien/Front.php:176
          0.6680    3693584   6. Mage_Core_Controller_Varien_Action-&gt;dispatch() /home/default/littledickybird.co.uk/user/htdocs/1.6/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php:250
          0.7280    4461864   7. Mage_Catalog_ProductController-&gt;viewAction() /home/default/littledickybird.co.uk/user/htdocs/1.6/app/code/core/Mage/Core/Controller/Varien/Action.php:420
          0.7290    4477472   8. Mage_Catalog_Helper_Product_View-&gt;prepareAndRender() /home/default/littledickybird.co.uk/user/htdocs/1.6/app/code/core/Mage/Catalog/controllers/ProductController.php:132
          1.3449   14029888   9. Mage_Core_Controller_Varien_Action-&gt;renderLayout() /home/default/littledickybird.co.uk/user/htdocs/1.6/app/code/core/Mage/Catalog/Helper/Product/View.php:147
          1.3449   14031072  10. Mage_Core_Model_Layout-&gt;getOutput() /home/default/littledickybird.co.uk/user/htdocs/1.6/app/code/core/Mage/Core/Controller/Varien/Action.php:391
          1.3449   14031152  11. Mage_Core_Block_Abstract-&gt;toHtml() /home/default/littledickybird.co.uk/user/htdocs/1.6/app/code/core/Mage/Core/Model/Layout.php:529
          1.3449   14031952  12. Mage_Core_Block_Template-&gt;_toHtml() /home/default/littledickybird.co.uk/user/htdocs/1.6/app/code/core/Mage/Core/Block/Abstract.php:863
          1.3449   14031952  13. Mage_Core_Block_Template-&gt;renderView() /home/default/littledickybird.co.uk/user/htdocs/1.6/app/code/core/Mage/Core/Block/Template.php:286
          1.3470   14032496  14. Mage_Core_Block_Template-&gt;fetchView() /home/default/littledickybird.co.uk/user/htdocs/1.6/app/code/core/Mage/Core/Block/Template.php:272
          1.3479   14076336  15. include('/home/default/littledickybird.co.uk/user/htdocs/1.6/app/design/frontend/base/default/template/page/1column.phtml') /home/default/littledickybird.co.uk/user/htdocs/1.6/app/code/core/Mage/Core/Block/Template.php:241
          1.4389   14679288  16. Mage_Core_Block_Abstract-&gt;getChildHtml() /home/default/littledickybird.co.uk/user/htdocs/1.6/app/design/frontend/base/default/template/page/1column.phtml:48
          1.4389   14679384  17. Mage_Core_Block_Abstract-&gt;_getChildHtml() /home/default/littledickybird.co.uk/user/htdocs/1.6/app/code/core/Mage/Core/Block/Abstract.php:526
          1.4389   14679384  18. Mage_Core_Block_Abstract-&gt;toHtml() /home/default/littledickybird.co.uk/user/htdocs/1.6/app/code/core/Mage/Core/Block/Abstract.php:582
          1.4389   14679616  19. Mage_Core_Block_Text_List-&gt;_toHtml() /home/default/littledickybird.co.uk/user/htdocs/1.6/app/code/core/Mage/Core/Block/Abstract.php:863
          1.4389   14679792  20. Mage_Core_Block_Abstract-&gt;toHtml() /home/default/littledickybird.co.uk/user/htdocs/1.6/app/code/core/Mage/Core/Block/Text/List.php:43
          1.4389   14680024  21. Mage_Core_Block_Template-&gt;_toHtml() /home/default/littledickybird.co.uk/user/htdocs/1.6/app/code/core/Mage/Core/Block/Abstract.php:863
          1.4389   14680024  22. Mage_Core_Block_Template-&gt;renderView() /home/default/littledickybird.co.uk/user/htdocs/1.6/app/code/core/Mage/Core/Block/Template.php:286
          1.4399   14680160  23. Mage_Core_Block_Template-&gt;fetchView() /home/default/littledickybird.co.uk/user/htdocs/1.6/app/code/core/Mage/Core/Block/Template.php:272
          1.4409   14722936  24. include('/home/default/littledickybird.co.uk/user/htdocs/1.6/app/design/frontend/LDB_default/default/template/catalog/product/view.phtml') /home/default/littledickybird.co.uk/user/htdocs/1.6/app/code/core/Mage/Core/Block/Template.php:241
          1.4589   14890792  25. Mage_Core_Block_Abstract-&gt;getChildGroup() /home/default/littledickybird.co.uk/user/htdocs/1.6/app/design/frontend/LDB_default/default/template/catalog/product/view.phtml:57
          1.4679   14919344  26. Mage_Core_Block_Abstract-&gt;getChildHtml() /home/default/littledickybird.co.uk/user/htdocs/1.6/app/code/core/Mage/Core/Block/Abstract.php:785
          1.4679   14919440  27. Mage_Core_Block_Abstract-&gt;_getChildHtml() /home/default/littledickybird.co.uk/user/htdocs/1.6/app/code/core/Mage/Core/Block/Abstract.php:526
          1.4679   14919440  28. Mage_Core_Block_Abstract-&gt;toHtml() /home/default/littledickybird.co.uk/user/htdocs/1.6/app/code/core/Mage/Core/Block/Abstract.php:582
          1.4829   15243672  29. Mage_Review_Block_Product_View-&gt;_toHtml() /home/default/littledickybird.co.uk/user/htdocs/1.6/app/code/core/Mage/Core/Block/Abstract.php:863
          1.4829   15243912  30. Mage_Core_Block_Template-&gt;_toHtml() /home/default/littledickybird.co.uk/user/htdocs/1.6/app/code/core/Mage/Review/Block/Product/View.php:47
          1.4829   15243912  31. Mage_Core_Block_Template-&gt;renderView() /home/default/littledickybird.co.uk/user/htdocs/1.6/app/code/core/Mage/Core/Block/Template.php:286
          1.4829   15244056  32. Mage_Core_Block_Template-&gt;fetchView() /home/default/littledickybird.co.uk/user/htdocs/1.6/app/code/core/Mage/Core/Block/Template.php:272
          1.4839   15286864  33. include('/home/default/littledickybird.co.uk/user/htdocs/1.6/app/design/frontend/LDB_default/default/template/catalog/product/view/reviews.phtml') /home/default/littledickybird.co.uk/user/htdocs/1.6/app/code/core/Mage/Core/Block/Template.php:241
          1.4849   15287504  34. Mage_Review_Block_Product_View-&gt;getReviewsSummaryHtml() /home/default/littledickybird.co.uk/user/htdocs/1.6/app/design/frontend/LDB_default/default/template/catalog/product/view/reviews.phtml:12
  </code></pre>
  
  <p>I am guessing that it is something to do with the fact that $this is now a "Mage_Review_Block_Product_View_List" as opposed to a "Mage_Catalog_Block_Product_View", but I have absolutely no idea what to do about it!!!</p>
  
  <p>Please help! (and yes, that is a rather desperate plea!)
  Any help would be much appreciated.</p>
  
  <p>Kind regards to all,
  Andy.</p>