0

我在 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 限制有关。我已按照与这些主题相关的所有说明进行操作,但仍然遇到上述错误。

有人可以帮忙吗?

4

2 回答 2

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

于 2012-11-28T06:23:33.777 回答
2

对我来说,我只是通过安装soap扩展sudo apt-get install php5.6-soap并通过重启apache sudo service apache2 restart,它现在运行良好。

于 2016-11-15T16:20:06.697 回答