On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • If you look at the code of that file, you'll see that it depends on some other files being in the right place relative to it (config.core.php and veriword.class.php).

    You can insert some debugging code in it to check on where it's going wrong.

    Change this:

    $modx= new modX();
    $modx->initialize('web');
    $modx->addPackage('captcha',$captcha_core_path.'model/');
    $modx->loadClass('captcha.VeriWord',$captcha_core_path.'model/',true,true);
    $modx->lexicon->load('captcha:default');


    to this

    $modx= new modX();
    if (! $modx) {
       echo "\nNo MODX";
    }
    $modx->initialize('web');
    
    $success = $modx->addPackage('captcha',$captcha_core_path.'model/');
    
    if (! $success) {
       echo "\nCould not load Captcha class";
    }
    
    $success = $modx->loadClass('captcha.VeriWord',$captcha_core_path.'model/',true,true);
    
    if (! $success) {
       echo "\ncould not load Veriword class";
    }
    
    
    $modx->lexicon->load('captcha:default');



    Also, check the error log after trying to use it in MODX.
      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
    • Quote from: Everettg_99 at Jun 25, 2009, 03:07 PM
      There are 2 php modules required for this. One good way to test this is to log into the manager, and see how the login page is affected in a second browser. See the wiki for info/troubleshooting:
      http://wiki.modxcms.com/index.php/CAPTCHA#Server_support


      Everett, I have also been having the problem of no image showing. I am using the code from eform (In Evolution) for a contact form:

      [+validationmessage+]
      <form method="post" action="[~[*id*]~]">
      <input type="hidden" name="formid" value="feedbackForm" />
      <p>
      <label for="author">Name<span class="required">*</span></label>
      <input id="author" class="aqua_input" name="author" type="text" value=""/>
      </p>
      <p>
      <label for="email">Email<span class="required">*</span></label>
      <input id="email" class="aqua_input" name="email" type="email" value=""/>
      </p>
      <p>
      <label for="comment">Message<span class="required">*</span></label>
      <textarea id="comment" rows="8" class="aqua_input" name="comment"></textarea>
      </p>

      <p>
      Please enter the anti spam code below:

      <img src="[+verimageurl+]" alt="verification
      code" border="0"/>
      </p>
      <p>
      <label accesskey="c" for="vericode">code</label>
      <input type="text" name="vericode" size="20" />
      </p>


      So I went to the link you posted for modx wiki...http://yoursite.com/manager/includes/veriword.php for Evolution. The captcha image shows up when I use this link for my site...so what does that mean?

      I should warn you that I'm a newbie. So you might have to break it down a little more than usual smiley Thanks in advance for any help!
      • If your server is able to generate a captcha image but it's not showing, then either you have misconfigured your eForm snippet call or something more subtle is broken. What's your snippet call look like?
        • The odds are that the placeholder in this line is not being set correctly:


          <img src="[+verimageurl+]" alt="verification
          code" border="0"/>


          What do you see there when you do a "View Source" on the page?
            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
          • Hi I'm now also experiencing this issue on a custom Jot comment form I have here:

            http://www.insideyork.co.uk/attractions/cliffordstower.html

            at the bottom of that page the captcha text shows but not the word/image.

            Here is my snippet code:

            <div id="commentsAnchor">
            <p><strong>Below you can write a review or comment for this listing.</strong><br />For more detailed York discussions with visitors & residents please see our <a href="http://www.insideyorkshire.uk/forum" target="_blank" title="Yorkshire Chat Forum">Yorkshire Talk forum.</p>
            [!Jot? &customfields=`name,email` &subscribe=`1` &pagination=`4` &badwords=`dotNet` &captcha=`1` &moderated=`1` &notify=`2` &canmoderate=`Administrator` !]
            </div>
            You can also rate this restaurant, place or attraction by awarding it stars below:
            [!star_rating? &useSession=1 &onevote=1!]
            [+starRating+]
            [+totalVotes+]


            Thanks for any help with this.
              Yorkshire UK based hosting provider: https://www.simulant.uk
            • Was this working previously and have you by chance just upgraded to the latest version of Evolution ?