White page, on all nodes that use Address module

Created on 22 June 2023, over 1 year ago
Updated 28 June 2023, over 1 year ago

Problem/Motivation

1. A white page appears for all nodes that contain a field from the Address module
2 . I don't see any error message. Not even by browsing for error messages in drush

drush watchdog: show

3 . It is not possible to delete the module and eliminate the use of the address field of the module

Steps to reproduce

All this appeared after upgrading the site's modules in preparation for the migration to Drupal 9.
Address (address): 8.x-1.9
Drupal: Version 8.9.20.
Previous version: 8.9.19.

I made sure that the module; The problem appears with the indicated new version of Drupal.

PHP: Version 7.4.33

currently; I have no idea to solve the problem.
an error message does not appear;
I was unable to downgrade to an earlier version of this module.

💬 Support request
Status

Fixed

Version

1.9

Component

Code

Created by

🇧🇭Bahrain drattar

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

Comments & Activities

  • Issue created by @drattar
  • 🇺🇦Ukraine abyss

    @drattar, can you create a new node with an address field?

  • 🇷🇸Serbia bojanz

    Sounds like you have display_errors=off in your php.ini and need to consult your server logs to get the error.

  • 🇧🇭Bahrain drattar

    @Abyss
    No, i cant Create a new node with Address module field either.
    @bojanz
    thank you, i changed display_errors to display_errors=on; so i can track the error

    Fatal error: Declaration of Drupal\address\Repository\CountryRepository::loadDefinitions($locale) must be compatible with CommerceGuys\Addressing\Country\CountryRepository::loadDefinitions(string $locale): array in /home/***/public/modules/contrib/address/src/Repository/CountryRepository.php on line 43

  • 🇧🇭Bahrain drattar

    As mentioned here and many another posts, Downgrading commerceguys/addressing don't work currently.

    composer require commerceguys/addressing:1.3.0 drupal/address

    - Downloading commerceguys/addressing (v1.3.0)
    - Downgrading commerceguys/addressing (v1.4.2 => v1.3.0): Extracting archive

  • Status changed to Fixed over 1 year ago
  • 🇷🇸Serbia bojanz

    Sounds like you solved it.

  • Status changed to Active over 1 year ago
  • 🇧🇭Bahrain drattar

    actuality, i don't solve it yet and i mentioned that.
    Even, this patch doesn't work and i still face same error.
    https://www.drupal.org/files/issues/2022-11-09/3302484-28-for-8.x-1.9.patch

  • 🇷🇸Serbia bojanz

    Your module and your library need to be in sync.

    So either you dowgrade the library (to remove the typehints there) or you use the patch (to add the typehints here).

    The error is telling you which side has typehints and which doesn't (the ":string" part), allowing you to debug what's going wrong.

  • 🇺🇦Ukraine abyss

    @drattar Could you provide more information?
    Since I reviewed the downgrade method and it works correctly on a clean deployment.
    composer require commerceguys/addressing:~1.3.0 drupal/address

  • Status changed to Fixed over 1 year ago
  • 🇧🇭Bahrain drattar

    Although previous attempts failed; The module is now working.
    I intended to migrate to Drupal 9 and then update the modules to the latest version; And I updated the Mariadb database from version 5 to version 11 .. I did not make any other modification.
    Oddly enough, this module is now working.

  • 🇮🇹Italy Noemi Milan

    I updated the module to the latest version (1.12.0), with all its dependencies, and the problem was fixed.
    The strangest thing is that I haven't seen anything in the Drupal logs when visiting the broken page.

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

Production build 0.71.5 2024