I installed the CRMNGP module along with the CRMAPI module, downloaded NUSOAP and copied it into sites/all/libraries/nusoap - everything was set per the instructions on the NGP module page.
I then headed over the CRMNGP Module settings page on my website at admin/settings/crmngp and entered all the account information I received from NGP - i.e. Campaign ID, User ID etc.
After hitting Save Configuration at the bottom of the page, I was served the white screen of death. I paged back, and Drupal gave me the following error message:
SoapClient::SoapClient() expects parameter 2 to be array, string given in EXAMPLESITE/sites/all/modules/crmngp/crmngp_crm.inc on line 749.
I did some searching around and found the following solution to a similar issue with another module using NUSOAP - #244547: soapclient call. I added the code changes outlined in #9 of this solution to the crmngp_crm.inc located in the CRMNGP module folder, and this seemed to solve the problem.
I have attached a patch for this problem.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | newsoap.patch | 1.56 KB | acouch |
| soapclient_php_error.patch | 885 bytes | stephenh |
Comments
Comment #1
acouch commentedI had the same problem.
soapclient needs to be replaced by newsoap in the cwp file as well.
Attached is an updated patch.
Please include this in your next release.
Comment #2
seanrThanks. This will be fixed in the next update (probably tomorrow). Also going to try to make it use PHP's built in soap stuff if its available so you'll no longer be dependent on nusoap.