Note that there are some explanatory texts on larger screens.

plurals
  1. POTrying to create new product type in magento, getting fatal error
    text
    copied!<p>I'm trying to create new product type in magento and it is showing up in admin panel create new product page's product type options, but when I select it and continue, i get fatal error:</p> <blockquote> <p>Fatal error: Call to a member function setConfig() on a non-object in /home/shop/public_html/shop/app/code/core/Mage/Catalog/Model/Product/Type.php on line 82</p> </blockquote> <p>Line 82 is:</p> <pre><code>$typeModel-&gt;setConfig($types[$typeId]); </code></pre> <p>Module config file (app/code/local/Pood/Toodep6hi/etc/config.xml):</p> <pre><code>&lt;?xml version="1.0"?&gt; &lt;config&gt; &lt;modules&gt; &lt;Pood_Toodep6hi&gt; &lt;version&gt;0.1.0&lt;/version&gt; &lt;/Pood_Toodep6hi&gt; &lt;/modules&gt; &lt;adminhtml&gt; &lt;translate&gt; &lt;modules&gt; &lt;Pood_Toodep6hi&gt; &lt;files&gt; &lt;default&gt;Pood_Toodep6hi.csv&lt;/default&gt; &lt;/files&gt; &lt;/Pood_Toodep6hi&gt; &lt;/modules&gt; &lt;/translate&gt; &lt;/adminhtml&gt; &lt;global&gt; &lt;models&gt; &lt;Toodep6hi&gt; &lt;class&gt;Pood_Toodep6hi_Model&lt;/class&gt; &lt;/Toodep6hi&gt; &lt;/models&gt; &lt;catalog&gt; &lt;product&gt; &lt;type&gt; &lt;p6hitoode translate="label" module="Toodep6hi"&gt; &lt;label&gt;Pohitoode&lt;/label&gt; &lt;model&gt;Toodep6hi/Product_Type_P6hitoode&lt;/model&gt; &lt;price_model&gt;Toodep6hi/Product_Price&lt;/price_model&gt; &lt;index_data_retreiver&gt;Toodep6hi/catalogIndex_Data_P6hitoode&lt;/index_data_retreiver&gt; &lt;is_qty&gt;1&lt;/is_qty&gt; &lt;/p6hitoode&gt; &lt;/type&gt; &lt;/product&gt; &lt;/catalog&gt; &lt;helpers&gt; &lt;Toodep6hi&gt; &lt;class&gt;Pood_Toodep6hi_Helper&lt;/class&gt; &lt;/Toodep6hi&gt; &lt;/helpers&gt; &lt;/global&gt; &lt;/config&gt; </code></pre> <p>app/code/local/Pood/Model/Product/Type/P6hitoode.php:</p> <pre><code>&lt;?php class Pood_Toodep6hi_Model_Product_Type_P6hitoode extends Mage_Catalog_Model_Toodep6hi_Type_Abstract { const TYPE_P6HITOODE = "p6hitoode"; public function isVirtual() { return true; } } </code></pre> <p>I found a sililar problem: <a href="http://www.magentocommerce.com/boards/viewthread/196886/#t248371" rel="nofollow">http://www.magentocommerce.com/boards/viewthread/196886/#t248371</a>, but it did not help.</p> <p>Every bit of help would be very appreciated. Thank you!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload