Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
I added code to automatically enable the first-installed country--not yet tested. Still, this error will likely reappear in a different form if we don't track down why it occurred.
I've tried adding one country and it was automatically enabled. However, when I disabled it I couldn't reproduce the issue with country_code() function being undefined. Can you remember on which screens or with what settings this would happen?
Comments
Comment #1
nedjoComment #2
nedjoI added code to automatically enable the first-installed country--not yet tested. Still, this error will likely reappear in a different form if we don't track down why it occurred.
Comment #3
stella commentedI've tried adding one country and it was automatically enabled. However, when I disabled it I couldn't reproduce the issue with country_code() function being undefined. Can you remember on which screens or with what settings this would happen?
Cheers,
Stella
Comment #4
nedjoFurther tests failed to reproduce this error. Closing.