After updating to v2.0.1, whien I visit pages with forms I get the following error:
Uncaught ReferenceError: FALSE is not defined
at Object.attach (antibot.js?rjw3sd:19:38)
at drupal.js?v=9.4.8:27:24
at Array.forEach ()
at Drupal.attachBehaviors (drupal.js?v=9.4.8:24:34)
at drupal.init.js?v=9.4.8:29:12
at HTMLDocument.listener (drupal.init.js?v=9.4.8:17:7)
In file js/antibot.js in line 19 FALSE should be false (lower case letters):
drupalSettings.antibot.human = FALSE;
As a result all protected forms, including login form don't work, locking the user out.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | Screenshot 2022-10-17 at 3.39.47 PM.png | 132.42 KB | gaurav.kapoor |
Comments
Comment #2
plessas commentedComment #3
john.glynn.davies commentedSimilarly, the following line results in the same error. TRUE should also be written in lowercase?
// Mark this user as being human.
drupalSettings.antibot.human = TRUE;
Thanks
Comment #5
gaurav.kapoor commentedI have reverted the changes done in some last commits. The issue is due to automatic fixes by PHPCS.
Comment #6
john.glynn.davies commentedThanks Gaurav. I wonder if there is an issue with the PHPCS setup?
Comment #7
gaurav.kapoor commentedMost probably.
Comment #8
danrodAll of the PHPCS / CSPELL / PHPSTAN / ... are fixed now: https://git.drupalcode.org/project/antibot/-/pipelines/559550
And I haven't seen this issue anymore, I'll make a tagged release soon.
I'll mark this as "Fixed".
Comment #9
danrodComment #10
danrod