Error messages on add new card page

Created on 26 January 2015, over 10 years ago
Updated 18 August 2025, 2 months ago

Problem/Motivation

When going to /user/%user/cards/add/ to add a new card I get the following error message:

    Warning: Missing argument 2 for addressfield_default_values(), called in ../sites/all/modules/contrib/commerce_stripe/commerce_stripe.module on line 478 and defined in addressfield_default_values() (line 375 of ../sites/all/modules/contrib/addressfield/addressfield.module).
    Notice: Undefined variable: instance in addressfield_default_values() (line 376 of ../sites/all/modules/contrib/addressfield/addressfield.module).
    Notice: Undefined variable: instance in addressfield_default_values() (line 377 of..//sites/all/modules/contrib/addressfield/addressfield.module).
    Notice: Undefined variable: instance in addressfield_default_values() (line 404 of../sites/all/modules/contrib/addressfield/addressfield.module).

I'm not sure what the intended behavior is but there's no address field appearing on the page either.

The cause of the problem is that the addressfield_default_values() function has changed since the relevant commerce_stripe code was written.

Proposed resolution

Write a patch.

Remaining tasks

Writing a patch

User interface changes

API changes

πŸ› Bug report
Status

Closed: outdated

Version

3.0

Component

Code

Created by

πŸ‡­πŸ‡ΊHungary czigor

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024