title: Fatal error: Call to a member function toHtml() on a non-object after installing custom template
body: <pre><code>( ! ) SCREAM: Error suppression ignored for
  ( ! ) Fatal error: Call to a member function toHtml() on a non-object in C:\wamp\www\app\code\core\Mage\Core\Model\Layout.php on line 555
  </code></pre>
  
  <p>Installed Magento 1.7 and WAMP 2.2 and a custom template.  Magento admin works perfect but the frontend gives the above errors.</p>
  
  <p>Page.xml in magento 1.7 installation and the custom template doesn't have the following code at all and therefore, didn't try the following fix :</p>
  
  <pre><code>&lt;block type="core/profiler" output="toHtml"/&gt;
  </code></pre>
  
  <p>would become:</p>
  
  <pre><code>&lt;block type="core/profiler" output="toHtml" name="core_profiler"/&gt;
  </code></pre>