Hello,
I have Multisites version 1.3.08 - FULL. Patches definition Version 1.3.05. Symbolic Links Forbidden. magic_quotes_gpc off
I am installing master and slave domains to the same database (prefix "master_" and slave databases prefix "{siteid}_". No accepted language in Browser features section.
Slave site works well, I see correct site content and name.
BUT
When I add accepted language in browser features section "cs-cz" for slave database, after frontend refresh it displays site content and name from master site.
Without accepted language it works well again.
====================
I checked what is a difference in config_multisites.php before change and after.
in multisites/{siteid}/config_multisites.php changed part is
BEFORE:
$newDBInfo = array( 'status' => 'Confirmed', 'fromTemplateID' => 'replicMasterDomain', 'toSiteName' => 'Coreband', 'redirect1st' => '1', 'toPrefix' => 'corebandcz_', 'setDefaultJLang' => 'cs-CZ');
AFTER:
$newDBInfo = array( 'status' => 'Confirmed', 'fromTemplateID' => 'replicMasterDomain', 'toSiteName' => 'Coreband', 'redirect1st' => '1', 'browser_langs' => 'cs-cz', 'toPrefix' => 'corebandcz_', 'setDefaultJLang' => 'cs-CZ');
I would say, that it is OK, BUT in multisites/config_multisites.php that changet part is
BEFORE:
$md_hostalias = array( '
www.coreband.cz' => array( array( 'url' => '
www.coreband.cz', 'site_id' => 'coreband.cz', 'cookie_domains' => array( '.
www.coreband.cz', '
www.pilates-czech.cz') )),
'coreband.cz' => array( array( 'url' => '
coreband.cz', 'site_id' => 'coreband.cz', 'redirecturl' => '
www.coreband.cz')));
AFTER:
$md_hostalias = array( '
www.coreband.cz' => array( array( 'url' => '
www.coreband.cz', 'site_id' => 'coreband.cz', 'browser_langs' => '#cs\\-cz#i', 'cookie_domains' => array( '.
www.coreband.cz', '
www.pilates-czech.cz') )),
'coreband.cz' => array( array( 'url' => '
coreband.cz', 'site_id' => 'coreband.cz', 'browser_langs' => '#en\\-uk#i', 'redirecturl' => '
www.coreband.cz')));
===================
My conclusion is that 'browser_langs' => '#cs\\-cz#i' causes that problem, because when it is present, slave site doesnot use proper dbprefix at all.
Any suggestions how to correct that problem?
Thank you very much.
Jiri