Hello, maybe it's not related to your problem but in my case setting an error in the "addService" module method raise an error on line 5742 of /app/controllers/admin_clients.php.
On line 5707: $service_id = $this->Services->add($item, $package_ids, $notify); the method is returning null since an Error has been set on the Input module, however on line 5713 "$service_id" is appended to the array "$service_ids": $service_ids[] = $service_id;
So on line 5716 the array $service_ids is not empty, raising then the error with the updateServicesRenewalForProration function.
I solved the problem editing the admin_clients.php on line 5713, appending the $service_id to $service_ids only if not empty:
if (!empty($service_id)) {
$service_ids[] = $service_id;
}
I'm using Blesta 4.2.2, PHP 7.0.27