We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6038
    • 228 Posts
    When i use the placeholder [+form.captcha+] in the registration form, the image is not being created...
    Instead, i see in the path to the veriword script in the source of the img tag, like so:

    <img id="wlpeCaptchaImage" src="/var/www/mysite.com/httpdocs/manager/includes/veriword.php" width="148" height="60" alt="If you have trouble reading the code, click on the code itself to generate a new random code." />

    This seems like it should be so obvious, but I can’t think as to why it’s not working!

    It looks like the file is not being executed. The vericode file has permissions 755, which should allow it to be run by anyone.
    There is only one call to the webloginregister , here is the snippet call:
    [!WebLoginPE? &type=`register` &regType=`instant` &registerTpl=`wlpe_websignup` &regHomeId=`48` &customFields=`website,business_name,suburb,postcode,region`  &regSuccessId=`55` &groups=`Pending Memberships` &notify=`{{email_recipient}}` &notifySubject=`New Member Web Details` &notifyTpl =`wlpe_notify_web` &inputHandler=`{{wlpe_handler_region}}` &regRequired=`name,email,fullname,password,suburb,postcode,region` &profileHomeID=`44` !]
    


    Has anyone else come across this, or do you have any suggestions to help me?

    Thanks


    Modx 9.6.1
    PHP 5.2
    Apache 2
    Linux
      • 33992 ☆ A M B ☆
      • 455 Posts
      CAPTCHA needs GD library to work.
      it must installed on your server.

      in WebLoginPE, creating user images needs it too.
        God loves me. 【ツ】


        MODX.ir (Persian Support)

        Boplo.ir/modx/ (Persian)
        • 6038
        • 228 Posts
        good idea.
        I should have mentioned that it does already work - when using eForm for example, which i think uses the same file - so i dont think GD is the issue. I just did a quick phpinfo check also, which shows GD is enabled.

        When i hard code the path to the captch file, it works. Don’t know why its not working using the placeholder.
        It wouldnt be anything to do with safe mode would it? I know that is turned on in this environment, which has been a PITA for other reasons.
          • 3749
          • 24,544 Posts
          Some things to check:

          Misspelled placeholder
          Missing or incorrect base href in template
          Misbehaving site_url or whatever eForm is using to preface the path.
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting