|
Hello all
So I’ve tried to follow the wiki in creating a new payment module from here:
http://www.magentocommerce.com/wiki/how-to/create-payment-method-module
Unfortunately, when I upload the first example (app/etc/modules/Mage_NewModule.xml) the whole site dies.
In Firefox 3.0 I get a ‘Page load error’:
Redirect Loop
The browser has stopped trying to retrieve the requested item. The site is redirecting the request in a way that will never complete.
* Have you disabled or blocked cookies required by this site?
* NOTE: If accepting the site’s cookies does not resolve the problem, it is probably a server configuration
issue and not your computer.
In IE7 I get an ‘Error submission form’ (with Magento error page, magento banner etc whereas the Firefox error looked more like a browser error):
There has been an error processing your request.
Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 2: parser error : Input is not proper UTF-8, indicate encoding !
Bytes: 0xA0 0x20 0xA0 0x20 in /var/www/html/lib/Varien/Simplexml/Config.php on line 494
Trace:
#0 /var/www/html/lib/Varien/Simplexml/Config.php(494): mageCoreErrorHandler(2, ‘simplexml_load_...’, ‘/var/www/html/l...’, 494, Array)
#1 /var/www/html/lib/Varien/Simplexml/Config.php(482): Varien_Simplexml_Config->loadString(’?? ? loadFile(’?? ? _loadDeclaredModules(’/var/www/html/a...’)
#4 /var/www/html/app/code/core/Mage/Core/Model/App.php(208): Mage_Core_Model_Config->init(Object(Mage_Core_Model_Config_Base))
#5 /var/www/html/app/Mage.php(404): Mage_Core_Model_App->init(Array)
#6 /var/www/html/app/Mage.php(423): Mage::app(’’, ‘store’, Array)
#7 /var/www/html/index.php(40): Mage::run(’’, ‘store’, Array)
#8 {main}
I haven’t a clue where to start. If I remove the file the error goes away but I’d like to make a start on this module. It seems every time I take a step forwards with Magento I take 2 steps back.
The content of my Mage_NewModule.xml is just as the wiki:
<config> <modules> <!-- declare Mage_NewModule module --> <Mage_NewModule> <!-- this is an active module --> <active>true</active> <!-- this module will be located in app/code/local code pool --> <codePool>local</codePool> <!-- specify dependencies for correct module loading order --> <depends> <Mage_Payment /> </depends> <!-- declare modules version information for database updates --> <version>0.1.0</version> </Mage_NewModule> </modules> </config>
Any ideas? Anyone?
|