Magento中的肥皂错误(打开SoapClient.php失败)

时间:2012-07-09 21:41:05

标签: api magento soap installation soap-client

我遇到了Magento中的SoapClient问题导致外部模块无效。 该模块正在开发另一个Magento安装,所以我猜它与我的magento安装有关。

在我的magento日志中,我看到以下错误:

2012-07-09T16:52:40+00:00 ERR (3): Warning: include(SoapClient.php): failed to open stream: No such file or directory in /var/www/vhosts/domain.com/httpdocs/lib/Varien/Autoload.php on line 93
2012-07-09T16:52:40+00:00 ERR (3): Warning: include(SoapClient.php): failed to open stream: No such file or directory in /var/www/vhosts/domain.com/httpdocs/lib/Varien/Autoload.php on line 93
2012-07-09T16:52:40+00:00 ERR (3): Warning: include(): Failed opening ‘SoapClient.php’ for inclusion (include_path=’/var/www/vhosts/domain.com/httpdocs/app/code/local:/var/www/vhosts/domain.com/httpdocs/app/code/community:/var/www/vhosts/domain.com/httpdocs/app/code/core:/var/www/vhosts/domain.com/httpdocs/lib:.:/usr/share/pear:/usr/share/php’) in /var/www/vhosts/domain.com/httpdocs/lib/Varien/Autoload.php on line 93

我搜索了这个论坛和谷歌,发现它与open_basedir限制有关。我已经遵循了与这些主题相关的所有说明,但我仍然遇到上述错误。

有人可以帮忙吗?

2 个答案:

答案 0 :(得分:4)

检查服务器上是否安装了SOAP / PEAR PHP扩展 (在Debian / Ubuntu上,这些是包php-pear php-soap

请查看此帖以解决问题

http://nickescobedo.com/583/soapclient-error-after-enabling-fedex-shipping-method-on-magento-ecommerce-solution

http://www.magentocommerce.com/boards/viewthread/263573/#t403847

答案 1 :(得分:2)

对我来说,我只需通过sudo apt-get install php5.6-soap安装soap扩展程序,然后通过sudo service apache2 restart重新启动apache,它现在运行良好。