Subscribe Favorite

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!

Magento 1.4.0.1 SOAP API Web Service Error

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:

  1. Magento 1.4.x Installation Error caused by PHP safe_mode After installing Magento on your shared hosting or dedicated...
  2. 3 Quick Tips to Speed Up Magento “Magento is so slow” is one of the complaints...
  3. Installing Sample Data on Magento 1.4.0.1 Installing Magento E-Commerce with Sample Data tutorial, with workaround for...
  4. Magento Commerce 1.4.1.0 New Version Released Update now, Magento Commerce Online Store version 1.4.1.0 has...
  5. 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

View Comments on “Magento 1.4.1.0 SOAP API Web Service Error”

  1. hoerj |

    actually, you remove a _opening_ curly bracket. The other option to solve this would be to add a closing bracket before the return call.

  2. Hendy Irawan |

    Hehe… you're so right! Thanks for pointing my mistake. I've corrected it :)

  3. rental elf |

    Thanks for the information.

  4. web service extension |

    This is so interested! Where can I find more like this?

Leave a Reply

blog comments powered by Disqus