Magento 1.4.1.0 SOAP API Web Service Error
Written on June 14, 2010 by Hendy Irawan
If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!
Accessing Magento SOAP Web Service API or get the WSDL in Magento Commerce 1.4.1.0, you may get the following error:
Parse error: syntax error, unexpected T_PUBLIC in /…/app/code/core/Mage/Api/Model/Server/Adapter/Soap.php on line 144
(error message is similar with compilation enabled, just inside a flat path)
This happens because of a typo in Magento Soap.php file. On line 133-135, change from:
} else {
$this->fault('0', 'Unable to load Soap extension on the server');
return $this;
to the patched version:
} else
$this->fault('0', 'Unable to load Soap extension on the server');
return $this;
Just remove an extra opening curly bracket (thanks hoerj!). You’ve now fixed Magento’s SOAP API XML Web Service bug!
Happy API-ing!
Related posts:
- Magento 1.4.x Installation Error caused by PHP safe_mode After installing Magento on your shared hosting or dedicated...
- 3 Quick Tips to Speed Up Magento “Magento is so slow” is one of the complaints...
- Installing Sample Data on Magento 1.4.0.1 Installing Magento E-Commerce with Sample Data tutorial, with workaround for...
- Magento Commerce 1.4.1.0 New Version Released Update now, Magento Commerce Online Store version 1.4.1.0 has...
- Menginstall Tampilan Bahasa Indonesia di Magento Magento adalah aplikasi e-commerce (disebut juga online store atau...
Related posts brought to you by Yet Another Related Posts Plugin.
If you enjoyed this post Subscribe to our feed

actually, you remove a _opening_ curly bracket. The other option to solve this would be to add a closing bracket before the return call.
Hehe… you're so right! Thanks for pointing my mistake. I've corrected it
Thanks for the information.
This is so interested! Where can I find more like this?