I cannot enable Flag Follower. It returns a website error. This is in the log.

Drupal\Core\Config\UnsupportedDataTypeConfigException: Invalid data type in config flag.flag.following, found in filemodules/contrib/flag/modules/flag_follower/config/install/flag.flag.following.yml : Duplicate key "status" detected at line 14 (near "status: true"). in Drupal\Core\Config\FileStorage->read() (line 118 of /home//public_html/drupal/web/core/lib/Drupal/Core/Config/FileStorage.php).

I started with 8.x-4.0-beta2 and then tried 8.x-4.x-dev. Nothing changes.

Comments

WriteCo created an issue. See original summary.

WriteCo’s picture

Oh, right, I'm on Drupal 9.

WriteCo’s picture

I was able to add a follow user flag but I wanted to see what your module did and the error gave me some concern. My flag is working but you may want to look at that module.

devoleksiy’s picture

Delete string:
status: true
in file
\web\modules\contrib\flag\modules\flag_follower\config\install\flag.flag.following.yml

There is a duplicate in the file.

ptmkenny’s picture

Status: Active » Needs review
StatusFileSize
new457 bytes

Simple patch

hockey2112’s picture

Thanks, #4 and 5 worked for me.

larisse’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new53.05 KB
new23.95 KB

The patch #5 works for me

vasiliyrepin’s picture

Please add this patch (delete string) to git. commit it, plz

berdir’s picture

Status: Reviewed & tested by the community » Fixed

Committed.

  • Berdir committed 63f44dc on 8.x-4.x authored by ptmkenny
    Issue #3183928 by ptmkenny, larisse: Duplicate key "status" detected at...

Status: Fixed » Closed (fixed)

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