Hello,
i've got very weird problem with domain_access on dreamhost hosting.
Fact is :
- installation of domain_access ok (RC8 r RC9)
- creation of new domain is OK
- domain_user, domain_theme, domain_alias installed
when i want to print global $_domain on any page it prints out the information of current domain but without the data from domain_alias, or domain_user (i used it for auto creation of domain on user registration and it works great)
on admin page the link between a domain and his user (and aliases too) is working good
the only fact is that when the domain is loaded, i don't konw why but hook_domainload of domain_user or domain_alias are not called
it works perfect on localhost
my hosting on dreamhost :
- private server
- i tried php with mod_php or CGI
any clue about this ?
i can give access on my website if necessary for investigation
Comments
Comment #1
agentrickardThe only thing I can guess at is that the submodules are not registered correctly. Make sure that the variable 'domain_bootstrap_modules' is set correctly.
Otherwise, no support for Dreamhost or other shared hosting is provided. You need to control your DNS.
Comment #2
arnaud.ranson commentedthe variable is set as an array with domain_alias and that's all
putting domain_alias, domain_theme and domain_user won't change anything
by the way : thank you for the quick reply
more weird, although an alias is set in DB (domain_alias), when I go to the administration page of alias for the domain in question, no alias is presented
using devel to show executed queries on the page show that domain_alias_list is not fired
every other page on the website is working great
For information,
the only tuning i did was to put a weight of -10 for domain_user module (but using 0 is not changing anything).
This tuning was due to the fact that i let user register on the site (whithout email verification) and i redirect new user to his proper site (using shared_signon).
if i do not put -10 to domain_user the redirection to proper sit is done before the creation of the user's domain
Comment #3
agentrickardThat alias problem was reported earlier, but I could never replicate it. What version of PHP?
Comment #4
arnaud.ranson commentedPHP 5.2.9
i will do further tests to qualify the problem of domain_alias
by the way,
sorry for my english
bravo for domain module (and mysite too - I used it on another project and it's really great)
Comment #5
nonsieMy 2 cents - I don't think this has anything to do with the hosting environment on Dreamhost alone - I have a couple of DA sites there (no domain_alias though but other modules implementing hook_domainload) that function without any issues.
Comment #6
arnaud.ranson commentedFOr what i succeeded to see :
problem is that hook_domainload is called before hook_init
i put a print on /includes/module.inc on 'module_implements'
on localhost, hooks are called in that order :
init
domainload
domainview
everything is good for the webiste
on my hosting :
domainload
init
admin_menu_replacements
domainload
1
domainview
Comment #7
agentrickardYes, but this is not typically a problem, assuming the module is registered with domain_boostrap_modules(). Are you trying to load some custom data through a custom module?
Do you have the proper include file in settings.php?
Comment #8
arnaud.ranson commentedhte module is correctly registered in domain_bootstrap_modules()
but when the system enter in domain_api
$_modules contains only 'domain'
i forced the inclusion of domain_user and domain_alias (in my special case) after loading the modules
it works correctly (solving the probleme of domain_alias in admin_page)
everithing of that is really unholy but it's very difficult to me to understand everything and i have to make my project quickly
Comment #9
agentrickardThat is very weird. The report is helpful, but I can't see an obvious reason why domain_api() would fail in this way. (It does not for me, obviously).
I wonder if the problem is in module_implements(). See the comment at the bottom of the code: http://api.drupal.org/api/function/module_implements/6
Comment #10
agentrickard