1
votes

I am creating a custom Magento payment module. I have created the file: /var/www/app/etc/modules/CustomerParadigm_NoPay.xml which contains:

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

For what everreason Magento is throwing this error:

Warning: include(Mage/Model/Nopay.php): failed to open stream: No such file or directory in /var/www/lib/Varien/Autoload.php on line 93

which is obviously not the right path, since I told Magento to look in the local folder. If anyone has any suggestions let me know.

I have also added this to my .htaccess file

php_value include_path ".:/var/www/app/code/local"
1
Your include path is fine, it's your module's config.xml that's the problem (not CustomerParadigm_NoPay.xml, but instead etc/config.xml). Post the contents of that here and someone will be able to tell you why Magento's trying to instantiate the wrong class (resulting in the deceptive error message you're seeing) - Alan Storm

1 Answers

0
votes

Don't use "_" in this config, because Magento will try to break "CustomerParadigm_NoPay" as directory CustomerParadigm and NoPay as class in this directory.