cancel
Showing results for 
Search instead for 
Did you mean: 

Cant Login - Failed to open stream data.php

Cant Login - Failed to open stream data.php

Hello all, I'm getting to grips with custom modules in Magento and I have just created a very basic module but Im getting some errors

Warning: include(Netgroup/Attributegrouping/Helper/Data.php): failed to open stream: No such file or directory  in    /var/www/html/magento/lib/Varien/Autoload.php on line 94

#0 /var/www/html/magento/lib/Varien/Autoload.php(94): mageCoreErrorHandler(2, 'include(Netgrou...', '/var/www/html/m...', 94, Array)
#1 /var/www/html/magento/lib/Varien/Autoload.php(94): include()
#2 [internal function]: Varien_Autoload->autoload('Netgroup_Attrib...')
#3 /var/www/html/magento/app/Mage.php(547): spl_autoload_call('Netgroup_Attrib...')
#4 /var/www/html/magento/app/code/core/Mage/Adminhtml/Block/Page/Menu.php(325): Mage::helper('addtocart')
#5 /var/www/html/magento/app/code/core/Mage/Adminhtml/Block/Page/Menu.php(144): Mage_Adminhtml_Block_Page_Menu->_isEnabledModuleOutput(Object(Varien_Simplexml_Element))
....

My app/code/local/AddProductToCart/AddToCart/etc/config.xml

<?xml version="1.0"?>
<config>
<modules>
    <AddProductToCart_AddToCart>
         <version>0.1.0</version>
    </AddProductToCart_AddToCart>
</modules>
<global>
<helpers>
  <AddToCart>
    <class>AddProductToCart_AddToCart_Helper</class>
  </AddToCart>
</helpers>
</global>
</config>

app/code/local/AddProductToCart/AddToCart/Helper/Data.php

<?php
class AddProductToCart_AddToCart_Helper_Data extends Mage_Core_Helper_Abstract  {

}

app/etc/modules/AddProductToCart.xml

<?xml version="1.0"?>
<config>
 <modules>
    <AddProductToCart_AddToCart>
        <active>true</active>
        <codePool>local</codePool>
    </AddProductToCart_AddToCart>
 </modules>
 </config>

Ive changed any instance of Netgroup/Attrbutegrouping to my naming convention which is AddProductToCart_AddToCart but isn't effecting the errors, tried clearing the cache but the cache folder doesn't exist so cant delete it, tried removing my module and clearing the cache but that doesn't work, can't logout either.