Ran into an issue with one of the update hooks , braintree_cashier_update_8203():

Failed: Drupal\Core\Database\InvalidQueryException: Query condition 'subscription.billing_plan IN ()' cannot be empty. in Drupal\Core\Database\Query\Condition->condition() (line 103 of /home/bruno/workspace/tx_membership_braintree/textillia/web/core/lib/Drupal/Core/Database/Query/Condition.php).

CommentFileSizeAuthor
#2 3020689_2_fix_update_hook_8203.patch510 bytesbrunodbo

Comments

brunodbo created an issue. See original summary.

brunodbo’s picture

Status: Active » Needs review
StatusFileSize
new510 bytes

This checks whether $billing_plan_ids is empty before running the entityQuery, seems to do the trick.

  • ShaunDychko committed d5c6496 on 8.x-2.x
    Issue #3020689 by brunodbo, ShaunDychko: Update hook 8203 fails when no...
shaundychko’s picture

Status: Needs review » Fixed

Thanks very much for noticing this. I committed something similar.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.