- Issue created by @cestmoi
- Assigned to sl27257
- πΈπͺSweden sl27257 Stockholm
Hi,
thank you for your report!
Do you have any information on when this worked. I.e. did this work on D9 for instance? The reason is that I am trying to figure out if there is a change in Drupal or if this is an bug that has not been found yet?
But anyhow I have seen other modules where this has been an issue, so I guess it is only a matter of finding the culprit...
/Thomas
- Issue was unassigned.
Thank you @sl27257
This is the first time I use the module but I jut tested it on SimplyTest.me withDrupal 9.5.11
and it seems to work fine without such issues.- πΈπͺSweden sl27257 Stockholm
Thanks for the info.
I started trying to find the bug yesterday but bumped into the following problem.
π Deprecated function: mb_strtolower(): Passing null to parameter Active
In worst case I need to patch the core to temporary get rid of it. Anyhow another question:
/fr/node/1
Is the /fr the language selector (French) or is that a sub directory?
/Thomas
- πΈπͺSweden sl27257 Stockholm
Now I have managed to recreate the error. I must say that I have never on any of my sites run the site in a mode / way so that this error will occur.
/Thomas
Is the /fr the language selector (French) or is that a sub directory?
You probably have the answer by now but to confirm, it's the language selector not sub dir.
Yes it seems one wouldn't have this issue if not on a multilingual site and happened to test it.- Assigned to sl27257
- πΈπͺSweden sl27257 Stockholm
I now know what is causing this.
Sometimes the token is calculated with the language selector included and sometimes without. In the flag_lists module it calculated with the selector but in the flag module, which I inherit a lot of functionality from, it is done without.
So the question is which fix to go for. I need to check the documentation for which is the proper way to do it...
- Status changed to Needs review
11 months ago 8:28am 21 December 2023 - πΈπͺSweden sl27257 Stockholm
This is an interesting bug. I wonder how many other modules that uses AJAX that will pass your test. If you use the path as an argument to the token they will fail on this as it is not handled in core in a good way I would say.
But for the flag_lists I think it will be OK now.
I confirm this patch seems to have fixed it, Thank you @sl27257
Yes, I already had some AJAX headaches with Webform but apart from the multilingual factor which I have yet to test (fingers crossed).-
sl27257 β
committed 8599de04 on 4.0.x
Issue #3407806 by sl27257, cestmoi: AJAX Error when toggling the flag...
-
sl27257 β
committed 8599de04 on 4.0.x