Active
Project:
Web service client
Version:
7.x-1.0-beta2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 May 2012 at 21:47 UTC
Updated:
18 May 2012 at 23:17 UTC
Warning: Invalid argument supplied for foreach() in WSClientServiceDescription->invoke() (line 78 of /var/www/drupal/sites/all/modules/wsclient/wsclient.inc).
Comments
Comment #1
funature commentedlooks like it is because of a custom web service description of mine. sorry about that. but there was no warning notice before update.
Comment #2
klausiThis might be caused by NULL values in the global parameters DB column for old service descriptions. Update 7101 introduced this column but did not initialize it to an empty array for old service descriptions. So I could imagine that when the service is loaded the globalParameters variable is overwritten with NULL from the DB and therefore you are getting the warnings from the foreach().
Easy workaround: Just re-save your old service descriptions, then this should get initialized properly.
I don't have time to track this down right now and to verify that this is the cause, so any contributed patches would be welcome :-)