We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26401
    • 247 Posts
    I keep getting Incorrect form code on the captcha when I use a custom template, even though I’m using the defaultRegisterInstantFormTpl.html.txt as is. It works fine without the template. Any idea what’ going on here?
      • 1169
      • 312 Posts
      I have found problems with default forms.
      Try copying the revalent code from webloginpe.templates.php in the webloginpe directory. All default forms use this code not code in individual template files. I suspect they have not been updated properly.
      Use this instead of default template as your base code.

      Hope this helps.
        DEVELOPMENT ENV:- Ubuntu 12.04 | MODx Revolution 2.2.8 | LAMP 2i Apache 2.2.22 | Php 5.3.10 | Mysql 5.5.31 MySQL client version: 5.5.31
        • 26401
        • 247 Posts
        I’ve figured it out...
        it’s a really silly mistake, and it was a coincidence that it worked that one time.

        the problem was that I added custom captcha words like this
        Word1, Word2, Word3
        rather than this
        Word1,Word2,Word3

        note the SAPACE (between my ears where I usually keep my brain)

        the reason it worked when I didn’t assign the tpl was because it fell on the first word that doesn’t have that extra space.
        I would suggest that the leading and trailing spaces get stripped as one would not know that it’s supposed to be there when seeing the CAPTCHA, and could prevent it from working properly. or add a cautionary note that spaces count.