You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which results in an invalid argument for foreach() error in Backend::getLabelForSubdivision() on line 107. The argument $subdivision is passed as "MA" instead of "US-MA" and the key therefore is not found in the subdivisions language array.
The text was updated successfully, but these errors were encountered:
fredbliss
changed the title
Address::getTokens sending invalid subdivision on line 206 Backend::getLabelForSubdivision()
Address::getTokens sending invalid subdivision value on line 206 Backend::getLabelForSubdivision()
Feb 25, 2017
fredbliss
changed the title
Address::getTokens sending invalid subdivision value on line 206 Backend::getLabelForSubdivision()
Address::getTokens sending invalid subdivision value on line 206
Feb 25, 2017
fredbliss
changed the title
Address::getTokens sending invalid subdivision value on line 206
Address::getTokens passing invalid subdivision value on line 206
Feb 25, 2017
To further elaborate, I suspect this function is called in multiple places because this fix only worked for me when logged in as a member, checking out. Bob still sees it in guest checkout mode and in the backend, so it must be called in other places in the same way.
During Checkout, we get an exception that I have traced back to Address::getTokens()
At line 206, the call made is thus:
Backend::getLabelForSubdivision($country, $subdivision);
Which results in an invalid argument for foreach() error in Backend::getLabelForSubdivision() on line 107. The argument $subdivision is passed as "MA" instead of "US-MA" and the key therefore is not found in the subdivisions language array.
Fix achieved by changing line 206 to this:
Backend::getLabelForSubdivision($country, $this->subdivision);
The text was updated successfully, but these errors were encountered: