It may not be the best way, but I had achieved something similar like this
$subscriptionHelper = YWSBS_Subscription_Helper::get_instance();
$users = get_users(['role' => 'customer']);
foreach ($users as $user) {
$subscriptionPosts = $subscriptionHelper->get_subscriptions_by_user($user->ID);
$expiration = null;
foreach ($subscriptionPosts as $subscriptionPost) {
$subscriptionInfo = get_post_meta($subscriptionPost->ID);
// check $subscriptionInfo['payment_due_date'][0] to see if it is after today's date
}
}
For what it is worth I also had this issue and in my case it was caused by setting the logo slider width to be 100 or below. I’m not sure if that cascades and eventually ends up in a 0 or negative width somewhere in the image_resize function, but when I increased it to even 101 it stopped throwing errors and worked perfect for me.
(I did have to delete the old images though and re-upload)