On a site with multiple networks (subdomains), I install Captcha under sites/all/modules, go into the admin interface through the primary domain (www.{mysite}.com), and there I can add it to various forms (in particular, comment_form). However, the Captcha field only shows up in the comment form on the primary domain, not on any of the subdomains. When I go to the Captcha admin page through any subdomain, it does not list any forms to add it to. There does not seem to be a way to enable Captcha for subdomains nor add it to the forms on subdomains.

Comments

soxofaan’s picture

Title: can't enable Captcha on forms in subdomains » can't enable CAPTCHA on forms in subdomains
Category: bug » support
Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

Can you describe your setup in more detail? Your sites on the subdomains are separate sites with a separate settings.php (but running on the same codebase)? Are you sharing databases or tables?
I'm also using a mulitsite setup (same codebase, separate settings.php, separate databases), but don't experience the problem you are mentioning.

reykjavikingur’s picture

My 6 sites (one main and 5 subdomains) are running on the same codebase, same database, same tables, but different settings.php files. (The virtual host server alias is *.mysite.com, so everything goes through that.) Here is what I do to reproduce the issue: I enable the Captcha and ReCaptcha modules. Then I go to www.mysite.com/admin/user/captcha . There I can see the list of forms for the site. I click the dropdown next to "comment_form" and select "ReCaptcha". Then I go to subdomain.mysite.com/admin/user/captcha and I do not see any list of forms that I can select the challenge type, so there is no way for me to put Captcha on the comment form for the subdomain. I already tried checking "Add CAPTCHA adminstration links to forms" and it still doesn't show up on the subdomain.mysite.com page. What do you think is going on?

soxofaan’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

the following issue should enlighten you
#311538: CAPTCHA, subdomains and cookie domains
Short version: CAPTCHA requires sessions and cookies. If you work with subdomains, you should make sure your cookie domains are properly set.