title: Strict Notice: Non-static method should not be called statically
body: <p>I'm getting this error in magento log:</p>
  
  <blockquote>
    <p>Strict Notice: Non-static method
    Mage_Catalog_Block_Product::getPriceHtml() should not be called
    statically, assuming $this from incompatible context  in
    /home/edistico/domains/fujitsu-skener.si/public_html/app/design/frontend/base/default/template/callforprice/callforprice_simple.phtml
    on line 23</p>
  </blockquote>
  
  <p>This is callforprice_simple.phtml:</p>
  
  <pre><code>&lt;?php $_product = $this-&gt;getProduct() ?&gt;
  
  &lt;?php
  // RM: Dobimo attribut
  $prodBuyType = Mage::getModel('catalog/product')-&gt;load($_product-&gt;getId())-&gt;getProductBuyType();
  ?&gt;
  &lt;?php  if ($_product-&gt;isAvailable()): ?&gt;
  &lt;p class="availability in-stock"&gt;&lt;?php echo $this-&gt;__('Availability:') ?&gt; &lt;span&gt;
  &lt;?php echo $_product-&gt;getAttributeText('zaloga') ?&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;?php else: ?&gt;    &lt;p class="availability out-of-stock"&gt;
  &lt;?php echo $this-&gt;__('Availability:') ?&gt; &lt;span&gt;&lt;?php echo $this-&gt;__('Out of stock') ?&gt;&lt;/span&gt;&lt;/p&gt;&lt;?php  endif; ?&gt;
  &lt;?php   echo $this-&gt;getChildHtml('product_type_data_extra') ?&gt;
  
  &lt;?php $model=Mage::getModel('callforprice/callforprice')-&gt;loadByProductId($_product-&gt;getId());
  
  if ($prodBuyType != 1) {
      if ($model-&gt;getId() &amp;&amp; $model-&gt;getStatus()==1) {?&gt;
      &lt;div class="call-for-price"&gt;&lt;?php echo "&lt;font size=3&gt;&lt;strong&gt;" .$this-&gt;__($model-&gt;getValue()). "&lt;/strong&gt;&lt;/font&gt;";?&gt;&lt;/div&gt;
      &lt;?php } else {
          echo Mage_Catalog_Block_Product::getPriceHtml($_product);
      }
  } else {
      echo Mage_Catalog_Block_Product::getPriceHtml($_product);
  }
  
  ?&gt;
  </code></pre>
  
  <p>This is class:</p>
  
  <pre><code>&lt;?php
  /**
   * Magento
   *
   * NOTICE OF LICENSE
   *
   * This source file is subject to the Open Software License (OSL 3.0)
   * that is bundled with this package in the file LICENSE.txt.
   * It is also available through the world-wide-web at this URL:
   * http://opensource.org/licenses/osl-3.0.php
   * If you did not receive a copy of the license and are unable to
   * obtain it through the world-wide-web, please send an email
   * to license@magentocommerce.com so we can send you a copy immediately.
   *
   * DISCLAIMER
   *
   * Do not edit or add to this file if you wish to upgrade Magento to newer
   * versions in the future. If you wish to customize Magento for your
   * needs please refer to http://www.magentocommerce.com for more information.
   *
   * @category    Mage
   * @package     Mage_Catalog
   * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
   * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
   */
  
  
  class Mage_Catalog_Block_Product extends Mage_Core_Block_Template
  {
      protected $_finalPrice = array();
  
      public function getProduct()
      {
          if (!$this-&gt;getData('product') instanceof Mage_Catalog_Model_Product) {
              if ($this-&gt;getData('product')-&gt;getProductId()) {
                  $productId = $this-&gt;getData('product')-&gt;getProductId();
              }
              if ($productId) {
                  $product = Mage::getModel('catalog/product')-&gt;load($productId);
                  if ($product) {
                      $this-&gt;setProduct($product);
                  }
              }
          }
          return $this-&gt;getData('product');
      }
  
      public function getPrice()
      {
          return $this-&gt;getProduct()-&gt;getPrice();
      }
  
      public function getFinalPrice()
      {
          if (!isset($this-&gt;_finalPrice[$this-&gt;getProduct()-&gt;getId()])) {
              $this-&gt;_finalPrice[$this-&gt;getProduct()-&gt;getId()] = $this-&gt;getProduct()-&gt;getFinalPrice();
          }
          return $this-&gt;_finalPrice[$this-&gt;getProduct()-&gt;getId()];
      }
  
      public function getPriceHtml($product)
      {
          $this-&gt;setTemplate('catalog/product/price.phtml');
          $this-&gt;setProduct($product);
          return $this-&gt;toHtml();
      }
  }
  </code></pre>
  
  <p>Can I ask for some help?</p>
  
  <p>Thanks</p>