Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WAMP Stack PHP "Fatal error: Class 'SoapClient' not found"

I have a WAMP (windows (7), apache, mysql, php) stack all setup and running. All is well and it is working and running as expected. I use the machine primarily for development however it is accessible to the outside world. Anyways..

I recently come cross a client with a pre-existing SaaS product where cURL, SOAP, and the like are used. I drop there system onto my server and a bit of jumping around to set it up, get it setup, start plugging away at things to only come across a section where I am getting

Fatal error: Class 'SoapClient' not found

Naturally my first jump was i forgot to uncomment

extension=php_soap.dll

Which was true, so I did un-comment it, save the file, then restart the server. However the problem still exists (so I tried even rebooting), now I am stuck as I am not a guru with WAMP/LAMP stacks and configuring them I can only just get around them as needed til now.

like image 502
chris Avatar asked Jul 20 '11 10:07

chris


1 Answers

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

like image 98
Hossein Shahdoost Avatar answered Nov 10 '22 06:11

Hossein Shahdoost