WAMP Stack PHP “Fatal error: Class 'SoapClient' not found”

纵然是瞬间 提交于 2019-12-01 18:01:48
DanielX

Do you have a php_soap.dll in your php/ext/ folder?

This might be a little late now, But I had the similar problem with wamp, and it was because php.ini was different in apache and in cli mode, there was one in apache folder which had php_soap.dll included but the one in php folder which cli was using didn't have it. I add it to the other one and the problem was solved

Srini Odela

To find the loaded php.ini file, load the phpinfo() page. Navigate to that path and open php.ini in notepad and search for php_soap.dll in it.

Uncomment this line and save the file before restarting the server.

You've probably checked this, but what version of PHP are you using? SoapClient only available after 5.0.1

Uncommenting it in php.ini didn't work. I had to uncomment it in php.ini-development and php.ini-production. They were all in C:/BitNami/wampstack-.../php

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!