Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
jpoesen | ๐Ÿ‡ช๐Ÿ‡บ | ๐Ÿณ๏ธโ€๐ŸŒˆ
jpoesen | ๐Ÿ‡ช๐Ÿ‡บ | ๐Ÿณ๏ธโ€๐ŸŒˆ
@jpoesen@drupal.community  ยท  activity timestamp 3 days ago

Hey #Drupal 8 #D8 #Composer friends, I'm having a weird composer issue:

Admin pages suddenly crash, seemingly out of the blue:

```
UnexpectedValueException: Invalid version string "main" in Composer\Semver\VersionParser->normalize()
```

It seems like Drupal is trying to see if there are core updates (>= 8.9.20), and then receives a "main" version identifier that composer can't deal with?

Possibly related to the new "main" branching scheme in D11 pushed 2 hours ago?

Screenshot of error screen with full stack trace that mentions the error also mentioned in the post.
Screenshot of error screen with full stack trace that mentions the error also mentioned in the post.
Screenshot of error screen with full stack trace that mentions the error also mentioned in the post.
  • Copy link
  • Flag this post
  • Block
jpoesen | ๐Ÿ‡ช๐Ÿ‡บ | ๐Ÿณ๏ธโ€๐ŸŒˆ
jpoesen | ๐Ÿ‡ช๐Ÿ‡บ | ๐Ÿณ๏ธโ€๐ŸŒˆ
@jpoesen@drupal.community replied  ยท  activity timestamp 3 days ago

There does seem to be an issue with the new "main" Drupal core branch introduced today:

It throws an UnexpectedValueException in Composer's VersionParser, called by Core's getPossibleCoreUpdateVersions()...

Sorry, no caption provided by author
Sorry, no caption provided by author
Sorry, no caption provided by author
  • Copy link
  • Flag this comment
  • Block
jpoesen | ๐Ÿ‡ช๐Ÿ‡บ | ๐Ÿณ๏ธโ€๐ŸŒˆ
jpoesen | ๐Ÿ‡ช๐Ÿ‡บ | ๐Ÿณ๏ธโ€๐ŸŒˆ
@jpoesen@drupal.community replied  ยท  activity timestamp 3 days ago

Known issue, being discussed here: https://www.drupal.org/project/drupal/issues/3567483

Drupal.org

Update manager crashing admin panel with uncaught exceptions parsing version strings

Problem/Motivation Update manager is crashing admin panel for versions 9x, 10x with following message: The website encountered an unexpected error. Try again later. UnexpectedValueException: Invalid version string "main" in Composer\Semver\VersionParser->normalize() (line 191 of /var/www/vendor/composer/semver/src/VersionParser.php).
  • Copy link
  • Flag this comment
  • Block
jpoesen | ๐Ÿ‡ช๐Ÿ‡บ | ๐Ÿณ๏ธโ€๐ŸŒˆ
jpoesen | ๐Ÿ‡ช๐Ÿ‡บ | ๐Ÿณ๏ธโ€๐ŸŒˆ
@jpoesen@drupal.community replied  ยท  activity timestamp 2 days ago

If your #Drupal 8/9/10 site is crashing on /admin/ pages due to the new "main" branching scheme in D11, a simple drush cache rebuild won't be enough.

This will do the trick:

```
drush php:eval "Drupal::service('update.manager')->refreshUpdateData()"
```

  • Copy link
  • Flag this comment
  • Block

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About ยท Code of conduct ยท Privacy ยท Users ยท Instances
Bonfire social ยท 1.0.1-beta.35 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Members
  • Code of Conduct