Update to version Address 8.x-1.11 causes page loading issue

Created on 9 March 2023, over 1 year ago

I just updated to Address 8.x-1.11. It caused page loading issue. I have to set address field, country field to be specific, to none so page can load correctly. Tried to revert but not working on live site. Please help to solve the issue. Thanks.

ParseError: syntax error, unexpected '|', expecting variable (T_VARIABLE) in Composer\Autoload\includeFile() (line 141 of /opt/drupal/vendor/doctrine/collections/src/ArrayCollection.php)
#0 /opt/drupal/vendor/composer/ClassLoader.php(428): Composer\Autoload\includeFile('/opt/drupal/ven...')
#1 [internal function]: Composer\Autoload\ClassLoader->loadClass('Doctrine\\Common...')
#2 /opt/drupal/vendor/commerceguys/addressing/src/Subdivision/Subdivision.php(118): spl_autoload_call('Doctrine\\Common...')
#3 /opt/drupal/vendor/commerceguys/addressing/src/Subdivision/SubdivisionRepository.php(265): CommerceGuys\Addressing\Subdivision\Subdivision->__construct(Array)
#4 /opt/drupal/vendor/commerceguys/addressing/src/Subdivision/SubdivisionRepository.php(62): CommerceGuys\Addressing\Subdivision\SubdivisionRepository->createSubdivisionFromDefinitions('MD', Array)
#5 /opt/drupal/web/modules/contrib/address/src/Plugin/Field/FieldFormatter/AddressDefaultFormatter.php(270): CommerceGuys\Addressing\Subdivision\SubdivisionRepository->get('MD', Array)
#6 /opt/drupal/web/modules/contrib/address/src/Plugin/Field/FieldFormatter/AddressDefaultFormatter.php(147): Drupal\address\Plugin\Field\FieldFormatter\AddressDefaultFormatter->getValues(Object(Drupal\address\Plugin\Field\FieldType\AddressItem), Object(CommerceGuys\Addressing\AddressFormat\AddressFormat))

Full error message is attached.

💬 Support request
Status

Closed: cannot reproduce

Version

1.11

Component

Code

Created by

🇺🇸United States umdtwen123

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

Comments & Activities

  • Issue created by @umdtwen123
  • Status changed to Closed: cannot reproduce over 1 year ago
  • 🇮🇱Israel jsacksick

    Based on the error message, your error seems completely unrelated to the Address module...

    ParseError: syntax error, unexpected '|', expecting variable (T_VARIABLE) in Composer\Autoload\includeFile() (line 141 of /opt/drupal/vendor/doctrine/collections/src/ArrayCollection.php)
    

    It seems there's an error with your doctrine/collections library, did you try reinstalling your dependencies? We have Address 1.11 installed on several projects without issues...

    The release was tagged months ago, we would know by now if it was causing "critical" issues like the one you just reported...

  • 🇺🇸United States umdtwen123

    I don't know this one went through so created another one. I will try to install dependency and see if it solve the issue. Thanks.

Production build 0.69.0 2024