- 🇺🇸United States TolstoyDotCom L.A.
I reopened this because it still seems to be an issue: https://drupal.slack.com/archives/C1BB308HH/p1737753467044569
In the current version of the flag module, there's
FlagLinkBuilderInterface::build($entity_type_id, $entity_id, $flag_id, $view_mode = NULL);
defined in https://git.drupalcode.org/project/flag/-/blob/8.x-4.x/src/FlagLinkBuild...However, the current version of this module's FlagAnonLinkBuilder::build is missing the last argument. I'll add a MR.
- Merge request !8Edit FlagAnonLinkBuilder.php to add the optional $view_mode argument to the build() method. → (Open) created by TolstoyDotCom
- 🇺🇸United States mighty_webber
I second tolstoydotcom on this. I'm experiencing this too and can verify. had to update a custom module as well. Can we get a patch until then, please?
- 🇺🇸United States mighty_webber
Another change needs to be made. On line 87 of FlagAnonLinkBuilder.php, the fourth argument for $view_mode needs to be added to the parent::build. Patch includes both changes.
- 🇺🇸United States attheshow
We were experiencing the same error on our site. The patch in #9 seems to have resolved the issue for us. Thanks! 😊
- 🇮🇳India JatinGupta40
We also experienced the same issue on our site, the #9 patch resolved the issue.
Everything else also seems to be working fine and this issue can be closed.
Thanks. - 🇮🇳India heni_deepak Jaipur, Rajasthan, India
Hi @all
Yes, I have apply it in my resent work and it's working. I am wait for this patch in new version.
@mighty_webber thanks