Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

New payment module - 1st wiki example gives me errors…
 
ODB
Sr. Member
 
Avatar
Total Posts:  142
Joined:  2008-02-06
London
 

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 
module's version information for database updates -->
  Â  Â  Â  Â  Â  <version>0.1.0</version>
  Â  Â  Â  </Mage_NewModule>
  Â  </modules>
</config>

Any ideas? Anyone?

 
Magento Community Magento Community
Magento Community
Magento Community
 
ODB
Sr. Member
 
Avatar
Total Posts:  142
Joined:  2008-02-06
London
 

OK I reuploaded all of these files, I think it was a load of empty character spaces I had in there that was messing things up.

 
Magento Community Magento Community
Magento Community
Magento Community
 
markQV
Jr. Member
 
Total Posts:  1
Joined:  2008-07-13
 

I’ve got the same error accessing the homepage

Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 82: parser error : Input is not proper UTF-8, indicate encoding !
Bytes: 0xE0 0x56 0x75 0x69 in /home/quabi/public_html/lib/Varien/Simplexml/Config.php on line 494
Trace:
#0 /home/quabi/public_html/lib/Varien/Simplexml/Config.php(494): mageCoreErrorHandler(2, ‘simplexml_load_...’, ‘/home/quabi/...’, 494, Array)
#1 /home/quabi/public_html/lib/Varien/Simplexml/Config.php(482): Varien_Simplexml_Config->loadString(’init(’/home/quabi/...’)
#4 /home/quabi/public_html/app/Mage.php(404): Mage_Core_Model_App->init(Array)
#5 /home/quabi/public_html/app/Mage.php(423): Mage::app(’’, ‘store’, Array)
#6 /home/quabi/public_html/index.php(40): Mage::run(’’, ‘store’, Array)
#7 {main}

I tried to reload original files index.php, Mage.php, Config.php but nothing happened. This error occurred after I entered product description in Vietnamese unicode (using a Vietnamese typing software).
Anyone knows how to handle this? Your help is appreciated.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top