Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Upgrading to 8.x-1.0-rc1 from 8.x-1.0-beta4 causes following fatal error:
Fatal error: Declaration of Drupal\address\Entity\Zone::match() must be compatible with CommerceGuys\Zone\Model\ZoneInterface::match(CommerceGuys\Addressing\Model\AddressInterface $address) in /Users/rob/Sites/IDT-D8/docroot/modules/contrib/address/src/Entity/Zone.php on line 48
Unable to access any site pages or run drush commands.
Comment | File | Size | Author |
---|---|---|---|
#10 | composer.lock_.txt | 160.18 KB | chriscalip |
#10 | composer.json_.txt | 1.8 KB | chriscalip |
Comments
Comment #2
bojanz CreditAttribution: bojanz at Centarro commentedLooks like you didn't perform the update properly:
1) The code needs to be updated using "composer update drupal/address --with-dependencies", as documented on the module page. This gives you a new version of the libraries.
2) Once that's done, you need to run update.php
Let me know if this helps.
Comment #3
robphillips CreditAttribution: robphillips commentedThanks, that method worked for updating.
Comment #4
Rar9 CreditAttribution: Rar9 commentedI´ve also updated Address via Drupal Gui.
Then tried composer update drupal/address --with-dependencies
but libraries don´t update.
Any solution?
Comment #5
bojanz CreditAttribution: bojanz at Centarro commentedGood! I've updated the release notes at https://www.drupal.org/project/address/releases/8.x-1.0-rc1 to mention this.
@Rar9
That's all that's needed unless you also added the libraries to your root composer.json yourself. If you have, remove them from that file.
Comment #6
jean-jacques L CreditAttribution: jean-jacques L commentedIt didn't work for me. I receive a message of composer: nothing to update.
Comment #7
bojanz CreditAttribution: bojanz at Centarro commentedYou can always do a "composer remove drupal/address" to remove everything, then "composer require drupal/address ~1.0" to redownload.
Comment #8
chriscalip CreditAttribution: chriscalip commentedI am currently encountering this problem of updating to address-rc1
The vendor library commerceguys/addressing does not seem to update ... even if I do
"composer remove drupal/address"
"composer require drupal/address ~1.0"
Comment #9
bojanz CreditAttribution: bojanz at Centarro commentedYou'll need to post your full composer.json file.
The only way for the library to not update is if it's already required somewhere else in a different constraint.
Comment #10
chriscalip CreditAttribution: chriscalip commentedCommands:
Having both address-rc1 :
modules/address
modules/contrib/address
composer.lock seems to be always set to beta4
Comment #11
chriscalip CreditAttribution: chriscalip commentedFeedback :
Comment #12
chriscalip CreditAttribution: chriscalip commentedMore Feedback :
Comment #13
chriscalip CreditAttribution: chriscalip commentedI am updating this issue as "active" because the documented protocols for updating address module and its dependency vendor libraries are currently not working .. as demonstrated by previous posts.
Comment #14
bojanz CreditAttribution: bojanz at Centarro commented"~1.x-dev" is an invalid constraint. You either use "~1.0" or you use "1.x-dev", not both. If you want stable releases "~1.0" is fine.
Testing locally now.
Comment #15
chriscalip CreditAttribution: chriscalip commentedWell I found the solution.
In my drupal install I had the address module located at
/modules/contrib/addresss
I changed the address module location to :
/modules/address
Then the documented protocols for updating vendor library dependencies apply.
I believe address module supporting module location other than /modules is another issue.
Comment #16
bojanz CreditAttribution: bojanz at Centarro commentedSounds like you tried to manually download Address elsewhere?
All of my modules are are in modules/contrib, Composer is configured to download them there (I use the template from github.com/drupal-composer/drupal-project since it's a lot better than what Core provides).
Comment #17
chriscalip CreditAttribution: chriscalip commented@bojanz
I described situation here:
https://www.drupal.org/node/2808897
I am trying to move out of this specific issue thread to prevent scope creep.