Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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 :-)