Closed (duplicate)
Project:
CAPTCHA
Version:
5.x-3.1
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Aug 2008 at 13:52 UTC
Updated:
5 Oct 2008 at 09:23 UTC
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
Comment #1
soxofaan commentedCan 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.
Comment #2
reykjavikingur commentedMy 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?
Comment #3
soxofaan commentedthe 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.