• I have come across an issue when using Really Simple CAPTCHA (https://www.ads-software.com/extend/plugins/really-simple-captcha/) and Contact Form 7 (https://www.ads-software.com/extend/plugins/contact-form-7/) with Donncha’s Domain Mapping plugin (https://www.ads-software.com/extend/plugins/wordpress-mu-domain-mapping/).

    Contact Form 7 and Really Simple CAPTCHA work great on the primary domain for the network of sites, but not any additional mapped domains.

    For example, if the primary domain is called: primary_domain.com; the Really Simple CAPTCHA image in the contact form has the following image link:
    https://primary_domain.com/wp-content/uploads/wpcf7_captcha/1394172812.png

    However, if I create an additional blog in the network (i.e. blog #2), and map the domain name mapped_domain.com to it, Really Simple CAPTCHA thinks that the image link is:
    https://mapped_domain.com/files/wpcf7_captcha/1444043566.png
    but really, the image should be at:
    https://mapped_domain.com/wp-content/uploads/wpcf7_captcha/1394172812.png

    For some reason, the second blog thinks that the CAPTCHA image is at:
    /files/wpcf7_captcha/1444043566.png
    but really it should be at:
    /wp-content/uploads/wpcf7_captcha/1444043566.png

    I have the following line in my wp-config.php for the network installation:

    /* Contact Form 7 - Really Simple CAPTCHA temp directory */
    define( 'WPCF7_CAPTCHA_TMP_DIR',
    '/storage/www/primary_domain.com/wp-content/uploads/wpcf7_captcha' );

    Both the primary blog, and the second mapped blog are reading the same wp-config.php file, so I do not know why it thinks the CAPTCHA image is in /files/wpcf7_captcha/ instead of /wp-content/uploads/wpcf7_captcha/

    Thank you so much for any insight which you might be able to provide.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thanks. I’ll look into it.

    Thread Starter bdoreste

    (@bdoreste)

    I tried redefining the temp directory in wp-config.php to:

    /* Contact Form 7 - Really Simple CAPTCHA temp directory */
    define( 'WPCF7_CAPTCHA_TMP_DIR',
    '/storage/www/primary_domain.com/files/wpcf7_captcha' );

    to see if that would work for both primary_domain and mapped_domain, but still no dice.

    any ideas?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Really Simple Captcha] not working with Donncha's domain mapping plugin’ is closed to new replies.