简体   繁体   English

PHP致命错误:找不到“ SoapClient”

[英]PHP Fatal error: 'SoapClient' not found

I am running opencart store and I have a problem with an extension (about products delivery) that uses SOAP. 我正在运行opencart商店,并且使用SOAP的扩展(关于产品交付)存在问题。

When I am trying to edit shipment options for that extension on my opencart admin account i get a "Fatal error: Class 'SoapClient' not found in " + path to the extension install directory. 当我尝试在我的opencart管理员帐户上编辑该扩展程序的装运选项时,出现"Fatal error: Class 'SoapClient' not found in "在扩展程序安装目录的+路径中"Fatal error: Class 'SoapClient' not found in "

I have a phpinfo(); 我有一个phpinfo(); page that shows information about the PHP instalation and there is no SOAP section. 该页面显示有关PHP安装的信息,并且没有SOAP部分。 I have access to the php.ini file that controls PHP code that runs on my hosting account so I checked for an ;extension=php_soap.dll . 我可以访问控制在托管帐户上运行的PHP代码的php.ini文件,因此我检查了;extension=php_soap.dll I found it, removed the comment (;) and nothing happens. 我找到了它,删除了注释(;),没有任何反应。 The phpinfo(); phpinfo(); page stays the same. 页面保持不变。

My web hosting provider is IPage. 我的虚拟主机提供商是IPage。

My current version of PHP is 5.5. 我当前的PHP版本是5.5。

I am sure that the delivery extension is working properly (I have another opencart instalation on my personal computer so I can test how everything works). 我确信该交付扩展程序可以正常工作(我的个人计算机上还有另一个opencart安装,因此我可以测试所有工作方式)。

I red every thread about this topic and I tried every proposed solution without any result. 我充斥着有关该主题的所有话题,并且尝试了所有建议的解决方案,均未获得任何结果。 Can you please help me fix this fatal error? 您能帮我解决这个致命错误吗?

EDIT_1: EDIT_1:

It seems that IPage have some problems or I am not doing something right. IPage似乎有问题,或者我没有做正确的事。

I am changing the php.ini file from the IPage Control Panel. 我正在从IPage控制面板更改php.ini文件。 According to this article, this is the correct way to change the PHP configuration: 根据文章,这是改变PHP配置的正确方法:

You can change the configurations of PHP on your website by changing the php.ini located in your control panel. 您可以通过更改控制面板中的php.ini来更改网站上PHP的配置。 Just follow these instructions to modify your PHP configurations: 只需按照以下说明修改您的PHP配置:

But when I change mysqli settings like: 但是当我更改mysqli设置时:

; Maximum number of persistent links.  -1 means no limit.

FROM: 从:

mssql.max_persistent = -1

TO

mssql.max_persistent = 20

the change does not appear in my phpinfo(); 更改未出现在我的phpinfo()中; page. 页。 So I am thinking is there any other way to change the php.ini file? 所以我在想还有其他方法可以更改php.ini文件吗? In the info page I can see: 在信息页面中,我可以看到:

Configuration File (php.ini) Path: /usr/local/lib/php-5.5.22-amd64/lib 配置文件(php.ini)路径:/usr/local/lib/php-5.5.22-amd64/lib

But in my root folder I cant see anything like that. 但是在我的根文件夹中,我看不到任何类似的东西。

I think this is problem on the IPage site, they don't have probably installed php-soap extension. 我认为这是IPage网站上的问题,他们可能未安装php-soap扩展名。

When you remove the comment (;) ;extension=php_soap.dll you should have possibility to restart apache , but you don't have this permission? 当您删除注释(;) ;extension=php_soap.dll您应该可以重新启动apache ,但是您没有此权限吗? I don't have account on IPage, but if you don't have access to install new extension you can only send them message, and maybe they can install php-soap for you: 我在IPage上没有帐户,但是如果您无权安装新的扩展程序,则只能向他们发送消息,也许他们可以为您安装php-soap:

yum install php-soap
apt-get install php-soap

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM