WordPress.org

Ready to get started?Download WordPress

Forums

WordPress-to-lead for Salesforce CRM
[resolved] Captcha (11 posts)

  1. lfireboltjd
    Member
    Posted 2 years ago #

    Hi I'm having an issue with the Captcha portion of this. Everything else is working fine. I was unable to find information for the library solution. Any ideas?

    http://wordpress.org/extend/plugins/salesforce-wordpress-to-lead/

  2. Kevin
    Member
    Posted 2 years ago #

    I am also having the problem of the Captcha not showing. It doesn't work on my MAMP localhost site, nor my BlueHost site. The GD library is loaded on both.

  3. kellogs none
    Member
    Posted 2 years ago #

    not working on my godaddy setup, this really sux, plugin is useless with out catpcha.

    any other solutions out there guys?

  4. Rami
    Member
    Posted 1 year ago #

    Same issue; multiple server configurations, default wp theme, no other plugins active.

  5. Nick Ciske
    Member
    Plugin Author

    Posted 1 year ago #

    Odd. The captcha code was tested on MAMP/localhost, so that should work.

    Do you have WordPress installed in a subdirectory or other non standard configuration?

  6. chrishaff
    Member
    Posted 1 year ago #

    @Nick
    The problem seems to be in /lib/captcha/captcha.php on line 125 the global variable __FILE__ is used. __FILE__ resolves all symlinks (that the hosting co likely set up) . The resolved symlinks then don't match up with strlen($_SERVER['DOCUMENT_ROOT']).

    I couldn't think of a quick way to elegantly solve that issue, so I just replaced the line with $image_src = '/wp-content/plugins/salesforce-wordpress-to-lead/lib/captcha/captcha.php' . '?_CAPTCHA&t=' . urlencode(microtime()); but that will only work for folks that are using WP at the root of their domain.

  7. Nick Ciske
    Member
    Plugin Author

    Posted 1 year ago #

    @ chrishaff

    Thanks, I'll take a look and see if I can switch that to a more compatible WordPress function in the next release.

  8. chrishaff
    Member
    Posted 1 year ago #

    @Nick

    I think this is the durable solution:
    $image_src = plugins_url( 'captcha.php', __FILE__ ) . '?_CAPTCHA&t=' . urlencode(microtime());

    I believe this also eliminates the need for the next line (126).

  9. linderoni
    Member
    Posted 1 year ago #

    I am also having an issue with captcha. We are using it on two forms on our site. One form always displays the Captcha text while the other form will only display the gray box 50% of the time - no text. Any ideas why 1 form always works and the other is sporadic?

  10. Nick Ciske
    Member
    Plugin Author

    Posted 1 year ago #

    linderoni-

    Links to the 2 forms would be really helpful.

  11. Nick Ciske
    Member
    Plugin Author

    Posted 1 year ago #

    @chrishaff's fix will be in 2.0.1

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic