- First commit to issue fork.
- Merge request !46Issue #3168014: TypeError: Argument 1 passed to Drupal\flag\TwigExtension\FlagCount::count() must implement interface โ (Open) created by alorenc
- last update
almost 2 years ago 46 pass - ๐ต๐ฑPoland alorenc Wolsztyn, ๐ต๐ฑ
I have roll out patch !14 as MR request. I have added some small updates (spacing, type hinting)
- Status changed to Needs review
almost 2 years ago 1:54pm 5 May 2023 - last update
almost 2 years ago 46 pass - last update
almost 2 years ago 46 pass - last update
almost 2 years ago 46 pass - last update
almost 2 years ago 46 pass - Status changed to RTBC
almost 2 years ago 2:00pm 18 May 2023 - ๐ฌ๐ทGreece idimopoulos
Patch applies and works for us. Also, comments from #13 are addressed. Tests are green and applying.
+1 RTBC - ๐บ๐ธUnited States droath
While dealing with a related issue, I realized the importance of conducting an access check. Personally, I believe it would be more logical to perform this check early in the process. Surprisingly, as I worked on resolving this matter, it also ended up indirectly addressing the problem discussed in this thread.
https://www.drupal.org/project/flag/issues/3383006 ๐ Missing Access Control Check Prior to Rendering Link Active
- Open on Drupal.org โCore: 9.5.x + Environment: PHP 7.3 & MySQL 5.7last update
about 1 year ago Waiting for branch to pass - ๐ง๐พBelarus alexdoma
I got an error message after adding this patch
TypeError: Drupal\flag\Plugin\ActionLink\AJAXactionLink::__construct(): Argument #5 ($csrfToken) must be of type Drupal\Core\Access\CsrfTokenGenerator, Symfony\Component\HttpFoundation\Request given
patch from #14 updated
- Status changed to Active
about 1 year ago 8:14am 15 January 2024 - last update
about 1 year ago 45 pass, 2 fail - ๐ฆ๐บAustralia admirernepali
Still did not work for version 9.5.11.
I am on route to upgrade to 10 from 8. I will post here if Version 10 does not require this below patch.I still had to apply this patch: https://www.drupal.org/files/issues/2020-11-08/flag_count_3180434.patch โ
Although that issue ( https://www.drupal.org/project/flag/issues/3180434 โ ) was closed as duplicate of this issue.
- First commit to issue fork.
- Open on Drupal.org โCore: 9.5.x + Environment: PHP 7.3 & MySQL 5.7last update
10 months ago Waiting for branch to pass - Status changed to Needs review
6 months ago 12:07pm 19 October 2024 - Status changed to Needs work
3 months ago 11:13am 17 January 2025 - First commit to issue fork.
- ๐ฎ๐ณIndia immaculatexavier
immaculatexavier โ changed the visibility of the branch 3168014- to hidden.
- ๐ฎ๐ณIndia immaculatexavier
immaculatexavier โ changed the visibility of the branch 3168014- to active.
- ๐ฎ๐ณIndia immaculatexavier
immaculatexavier โ changed the visibility of the branch 3168014- to hidden.
- ๐ฎ๐ณIndia prem suthar Ahemdabad- Gujrat , Jodhpur - Rajsthan
prem suthar โ made their first commit to this issueโs fork.
- First commit to issue fork.
- ๐ต๐ฑPoland alorenc Wolsztyn, ๐ต๐ฑ
alorenc โ changed the visibility of the branch 3168014-typeerror-argument-1 to hidden.
- ๐ต๐ฑPoland alorenc Wolsztyn, ๐ต๐ฑ
alorenc โ changed the visibility of the branch 3168014-typeerror-argument-1 to active.
- ๐บ๐ธUnited States amanire
The latest patch from the MR failed to apply to either 8.x-4.0-beta6 or 8.x-4.x.
- ๐บ๐ธUnited States amanire
I don't know the underlying reason why the MR isn't applying, although I the line numbers are obviously off. I manually created a patch from the changes in the branch and this one does apply.
- Status changed to Needs review
12 days ago 10:52pm 25 March 2025 - ๐บ๐ฆUkraine knyshuk.vova
knyshuk.vova โ made their first commit to this issueโs fork.
- ๐บ๐ฆUkraine knyshuk.vova
#41 accidentally deletes the
flag-count-text.html.twig
template, that's causing an error.amanire, I have also noticed an issue where the patch (from MR > Download > Patches) from the merge request is not applying, but the diff (from MR > Download > Plain diff) applies successfully.
As for now, the MR 46 diff is applied correctly.
- ๐บ๐ธUnited States amanire
Thank you @knyshuk.vova for clarifying and working on the MR! I was able to successfully apply the diff patch from the MR on beta6.
And after tracking down some errors in custom module code related to this beta6 change record โ , I was able to get it working without errors.
- ivnish Kazakhstan
ivnish โ changed the visibility of the branch 8.x-4.x to hidden.
- ๐บ๐ธUnited States curioushook
knyshuk.vovaโs picturenew
Comment#43knyshuk.vova commented 8 days ago
#41 accidentally deletes the flag-count-text.html.twig template, that's causing an error.amanire, I have also noticed an issue where the patch (from MR > Download > Patches) from the merge request is not applying, but the diff (from MR > Download > Plain diff) applies successfully.
As for now, the diff from Merge request !46 is applied correctly for 8.x-4.0-beta6.
Can confirm, MR works as a local patch.
- ๐บ๐ธUnited States curioushook
knyshuk.vovaโs picturenew
Comment#43knyshuk.vova commented 8 days ago
#41 accidentally deletes the flag-count-text.html.twig template, that's causing an error.amanire, I have also noticed an issue where the patch (from MR > Download > Patches) from the merge request is not applying, but the diff (from MR > Download > Plain diff) applies successfully.
As for now, the diff from Merge request !46 is applied correctly for 8.x-4.0-beta6.
Can confirm, MR works as a local patch.