Note that there are some explanatory texts on larger screens.

plurals
  1. POHelper class not found
    text
    copied!<p>I'm trying to develop an extension that would add a form on the Admin side of Magento, but, for some reason, I can't seem to be able to even get Magento Administration to load when my module is installed. I'm at the very beginning of the development, and I'm stuck on an error that has been reported several times on StackOverflow. Unfortunately, none of the answers seem to help in my case.</p> <p>The error I get is *Fatal error: Class 'Mage_Mycompany_Logviewer_Helper_Data' not found in C:\XAMPP\htdocs\magento\app\Mage.php on line 546*. That should mean that Magento can't find the helper class, but it's there and its name matches the one it's looking for (except for the "Mage_" at the beginning, that I never used in any other extension anyway).</p> <p><strong>Update 2012/07/29</strong><br> The error occurs as soon as I log in into Magento Admin. When I click "Login", all I get is an error page, nothing is rendered.</p> <p>Here's the content of all the files I have so far.</p> <p><strong>config.xml</strong></p> <pre><code>&lt;?xml version="1.0"?&gt; &lt;config&gt; &lt;modules&gt; &lt;Mycompany_Logviewer&gt; &lt;version&gt;0.1.0&lt;/version&gt; &lt;/Mycompany_Logviewer&gt; &lt;/modules&gt; &lt;global&gt; &lt;models&gt; &lt;logviewer&gt; &lt;class&gt;Mycompany_Logviewer_Model&lt;/class&gt; &lt;/logviewer&gt; &lt;/models&gt; &lt;blocks&gt; &lt;logviewer&gt; &lt;class&gt;Mycompany_Logviewer_Block&lt;/class&gt; &lt;/logviewer&gt; &lt;/blocks&gt; &lt;helpers&gt; &lt;logviewer&gt; &lt;class&gt;Mycompany_Logviewer_Helper&lt;/class&gt; &lt;/logviewer&gt; &lt;/helpers&gt; &lt;/global&gt; &lt;admin&gt; &lt;routers&gt; &lt;adminhtml&gt; &lt;args&gt; &lt;modules&gt; &lt;mycompany_logviewer after="Mage_Adminhtml"&gt;Mycompany_Logviewer_Adminhtml&lt;/mycompany_logviewer&gt; &lt;/modules&gt; &lt;/args&gt; &lt;/adminhtml&gt; &lt;/routers&gt; &lt;/admin&gt; &lt;adminhtml&gt; &lt;menu&gt; &lt;mycompany translate="title" module="mycompany_logviewer"&gt; &lt;title&gt;Mycompany&lt;/title&gt; &lt;sort_order&gt;90&lt;/sort_order&gt; &lt;children&gt; &lt;form translate="title" module="mycompany_logviewer"&gt; &lt;title&gt;Form&lt;/title&gt; &lt;sort_order&gt;10&lt;/sort_order&gt; &lt;action&gt;adminhtml/logviewer&lt;/action&gt; &lt;/form&gt; &lt;/children&gt; &lt;/mycompany&gt; &lt;/menu&gt; &lt;acl&gt; &lt;resources&gt; &lt;all&gt; &lt;title&gt;Allow Everything&lt;/title&gt; &lt;/all&gt; &lt;admin&gt; &lt;children&gt; &lt;mycompany&gt; &lt;title&gt;Mycompany&lt;/title&gt; &lt;sort_order&gt;90&lt;/sort_order&gt; &lt;children&gt; &lt;form&gt; &lt;title&gt;Form&lt;/title&gt; &lt;sort_order&gt;10&lt;/sort_order&gt; &lt;/form&gt; &lt;/children&gt; &lt;/mycompany&gt; &lt;/children&gt; &lt;/admin&gt; &lt;/resources&gt; &lt;/acl&gt; &lt;/adminhtml&gt; &lt;/config&gt; </code></pre> <p><strong>Data.php (Helper)</strong></p> <pre><code>class Mycompany_Logviewer_Helper_Data extends Mage_Core_Helper_Abstract { } </code></pre> <p><strong>LogviewerController.php (Controller)</strong></p> <pre><code>class Mycompany_Logviewer_Adminhtml_LogviewerController extends Mage_Adminhtml_Controller_Action { /** * View form action */ public function indexAction() { $this-&gt;loadLayout(); $this-&gt;_setActiveMenu('Mycompany/form'); $this-&gt;_addBreadcrumb(Mage::helper('Mycompany_Logviewer')-&gt;__('Form'), Mage::helper('Mycompany_Logviewer')-&gt;__('Form')); $this-&gt;renderLayout(); } /** * Check allow or not access to ths page * * @return bool - is allowed to access this menu */ protected function _isAllowed() { return Mage::getSingleton('admin/session')-&gt;isAllowed('Mycompany/form'); } } </code></pre> <p><strong>Mycompany_Logviewer.xml (configuration file)</strong></p> <pre><code>&lt;?xml version="1.0"?&gt; &lt;config&gt; &lt;modules&gt; &lt;Mycompany_Logviewer&gt; &lt;active&gt;true&lt;/active&gt; &lt;codePool&gt;local&lt;/codePool&gt; &lt;/Mycompany_Logviewer&gt; &lt;/modules&gt; &lt;/config&gt; </code></pre> <p>All the above have been copied from an <a href="http://turnkeye.com/blog/magento-admin-form/#more-1789" rel="nofollow">example I found online</a>, I just replaced the Namespace and the Module name with <em>Mycompany</em> and <em>Logviewer</em>, respectively. I'm pretty sure it's something obvious I forgot, but I can't figure out what it could be. Thanks for the help.</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