Warning: Invalid argument supplied for foreach() in WSClientServiceDescription->invoke() (line 78 of /var/www/drupal/sites/all/modules/wsclient/wsclient.inc).

Comments

funature’s picture

Status: Active » Closed (works as designed)

looks like it is because of a custom web service description of mine. sorry about that. but there was no warning notice before update.

klausi’s picture

Status: Closed (works as designed) » Active

This 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 :-)