We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36549
    • 572 Posts
    Hi,

    Does anyone know why the image for the eForm verification won’t display?
    It was there when i first installed this but now it’s gone...perhaps there is a series of check i could carry out to test it?

    Thanks for any help

    J
      www.9thwave.co.uk
         WEB | DESIGN | PRINT
      • 3749
      • 24,544 Posts
      The first thing to check is that GD and FreeType support are enabled at your hosting service. They are necessary for the CAPTCHA images to display.

      Go to Reports | System Information and click on the "view" link next to phpinfo().

      Look at the GD section and see if GD and FreeType are enabled, if not, you need to check with your host.
        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
        • 36549
        • 572 Posts
        Hi Bobray,

        Yes it’s enabled.
        When i first installed modx the image was displaying...here’s my eform chunk:
        <div id="contactform">
        [+validationmessage+]
        <form action="[~[*id*]~]" id="feedbackForm" method="post">
        	<fieldset class="fieldset">
        	<label accesskey="n" for="name">Your Name<span class="required">(required)</span></label><br />
        	<input class="textfield" id="name" name="name" type="text" />
        <br />
        	<label accesskey="e" for="email">Your Email Address<span class="required">(required)</span></label><br />
        	<input class="textfield" id="email" maxlength="40" name="email" size="40" type="text" />
        <br />
        	<label accesskey="p" for="email">Phone number</label><br />
        	<input class="textfield" id="phone" name="phone" type="text" />
        <br />
        	<label accesskey="c" for="comments">Message<span class="required">(required)</span></label><br />
        	<textarea class="textarea" cols="30" id="comments" name="comments" rows="4"></textarea>
        	<br />
        	<p>
        	Please enter the anti spam code below:<br />
        	<img alt="verification code" src="[+verimageurl+]" />
        	</p>
        	<label accesskey="c" for="vericode">code</label><br />
        	<input class="textfield" id="vericode" name="vericode" size="20" type="text" value="vericode" />
        	<br />
        	<input class="submitbutton" id="submit" name="submit" type="submit" value="Submit" />
        <br />
        	</fieldset>
        </form>
        </div>


        any help appreciated...

        Thanks
          www.9thwave.co.uk
             WEB | DESIGN | PRINT
          • 3749
          • 24,544 Posts
          I’m just guessing, but I’d say that [+verimageurl+] is not correct.

          Do a view source on the form page and see what it’s coming out as. Then paste the URL you find there into your browser’s address window and see if you get an image that way.
            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
            • 36549
            • 572 Posts
            Hi,

            Thanks for your reply.

            this is what it generates:
            manager/includes/veriword.php?rand=1036591568

            I’ve checked against a couple of other sites and the path is the same as above.

            any other suggestions?
              www.9thwave.co.uk
                 WEB | DESIGN | PRINT
              • 4749
              • 623 Posts
              You might want to ask your host if the GD and Freetype libraries are installed.
                The MODx has you...
                Utah Web Design
              • You can determine this for yourself by going to Reports -> System info, then click on the "view" link for phpinfo(). In the first block of the phpinfo output, you can see all the compiler parameters, and can see if gd and freetype were compiled. You can also check if they are enabled by scrolling down the alphabetical list of all the active PHP modules and their configurations. There should be a section for GD that gives versions and all of its configurations.
                  Studying MODX in the desert - http://sottwell.com
                  Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                  Join the Slack Community - http://modx.org
                  • 36549
                  • 572 Posts
                  Hi All,

                  Aaaah...there is no Freetype...is this what i need?

                  Here’s the info from PHPinfo...

                  gd
                  GD Support enabled
                  GD Version bundled (2.0.34 compatible)
                  GIF Read Support enabled
                  GIF Create Support enabled
                  JPG Support enabled
                  PNG Support enabled
                  WBMP Support enabled
                  XBM Support enabled

                  I’ve got a mirror site on my server with the verification image appearing and have just checked the GD settings on that and it does include some Freetype settings.
                    www.9thwave.co.uk
                       WEB | DESIGN | PRINT
                  • That’s your problem. GD has to access a font to get the character image to make its image from, and it uses the freetype library to do that.
                      Studying MODX in the desert - http://sottwell.com
                      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                      Join the Slack Community - http://modx.org
                      • 3749
                      • 24,544 Posts
                      Quote from: BobRay at Sep 09, 2008, 08:00 PM

                      The first thing to check is that GD and FreeType support are enabled at your hosting service. They are necessary for the CAPTCHA images to display.

                      Go to Reports | System Information and click on the "view" link next to phpinfo().

                      Look at the GD section and see if GD and FreeType are enabled, if not, you need to check with your host. grin grin

                        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