When I try to add a card in domain.com/user/xx/cards show this error:

TypeError: Argument 1 passed to commerce_stripe_pi_set_addressfield_class_names() must be of the type array, null given, called in /app/sites/all/modules/commerce_stripe_pi/commerce_stripe_pi.module on line 1349 en commerce_stripe_pi_set_addressfield_class_names() (línea 1728 de /app/sites/all/modules/commerce_stripe_pi/commerce_stripe_pi.module).

Comments

quimzu created an issue. See original summary.

quimzu’s picture

In line 1715 (commerce_stripe_pi.module)

function commerce_stripe_pi_set_addressfield_class_names(array &$element) {

should be

function commerce_stripe_pi_set_addressfield_class_names(&$element) {

  • GoZ committed 452f296 on 7.x-1.x
    Issue #3080161: Add card on user - Card on file TypeError
    
GoZ’s picture

Status: Active » Fixed

Thanks quimzu for the report

Status: Fixed » Closed (fixed)

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