Reputation: 3200
I got this error saying:
Fatal error: Class 'SoapClient' not found in ....php file. Do I have to install/include the SoapClient manually? Isn't it a builtin php module?
Update: If I am using wordpress, how can I get soapclient installed?
Thanks.
Upvotes: 0
Views: 568
Reputation: 15887
It depends on how you installed PHP.
If PHP was built from source, you have to rebuild it with the --enable-soap
option per http://php.net/manual/en/soap.installation.php.
If you installed a binary package via a package manager in your distro, check if you can find any php5-soapclient
-packages or similar and install those.
Tested on Debian wheezy, php5-cli
includes SoapClient()
by default.
Upvotes: 1
Reputation: 1409
No, it isn't installed by default. You need to install PHP with --enable-soap option.
Read more here http://php.net/manual/en/soap.installation.php
Upvotes: 1