As an opposite to http://drupal.org/node/203507, i am also having similar issue. i.e all form including login will be redirect to localhost.

Here's what I did.
Using text editor, database file exported from PHPmyadmin, I simply replaced every localhost domain to qualified domain via text editor. Empty all cache_xxx table
Since $default['subdomain'] = variable_get('domain_root', '');

I now must include domain_root in $conf of settings.php temporarily. Otherwise, the domain_root is empty.

At least things are working for me. Any comment?

Comments

agentrickard’s picture

Perhaps you have to change the domain_root variable on Admin > Build > Domain. What is it set to now?

najibx’s picture

Without doing steps, i mentioned, when going into Admin > Build > Domain, the domain-root field is empty!
because i had earlier deleted the cache before dumping on another site's database.

Since I deleted cache, Since $default['subdomain'] = variable_get('domain_root', '') is no longer available. Now domain_root is empty.

By putting the domain_root in $conf, it help Domain module recognize it. If I don't delete the cache, Domain module keep getting my local domain_root...there's no way to change it, as all form will redirect to my local server.

Hope this make sense

This concerns me, if I were to switch to new database server in the future, phpadmin export/import can smoothly workout.

agentrickard’s picture

No, I do not understand what you are saying.

The cache has nothing to do with the issue. The 'domain_root' value is stored in the {variables} table. That does get cached, but the values are still there, even if you export the data.

When configuring Admin > Build > Domain, you need to be on your root domain. Then you should be able to save the root variable normally. Put another way: Yes, the field is empty, but you can fill it again.

When you save a system setting, it goes in the {variables} table. The $conf global is taken from that table and cached.

najibx’s picture

I am sorry, If I got misunderstood.
Yes, I am at root domain. the root_domain is empty but the rest is there. i did check in the {variable} table, root_domain is there, but somehow it never get called. I cannot successfully submit because the of the form keep using my local server. I did clear my browser cache. must be something i did which my drupal installation didn't like :-)

Anyhow, the issue is solved for me now. at least i learn something new. thank you.

agentrickard’s picture

Status: Active » Closed (fixed)