When I install Mobile Tools 6.x-2.4 the multilingual front page variables are set to the same value, with the result that the French front page becomes is replaced by the English one. When I set the french homepage variable back to the correct value, the problem seems to be corrected briefly but quickly recurs. This problem is serious because it affects all users, not just mobile users. Reverting to mobile tools 6.x-2.3 (and reverting to the backup database) fixes the problem.

Technical information
My site is bilingual and uses a /fr/ suffix to indicate French language pages eg. mydomain.com/fr/page.html, and uses the 'm.' prefix for mobile users. There is a multilingual variable 'site_frontpage' that determines the English and French-language home pages and this is set to 'frontpage' and 'frontpage_fr' respectively. This variable is accessible through admin/settings/site-information. I am using Drupal 6.26 with all contributed modules at the latest version.

Comments

devin carlson’s picture

Status: Active » Closed (duplicate)
m4olivei’s picture

Although it is fixed, there is still work to be done to prevent the same issue, which you should know if you're working with multilingual vars in D6, but it wasn't immediately obvious to me, so in hope of helping someone, here goes.

In settings.php, you need to set both site_frontpage and site_frontpage_mobile as multilingual vars and then use the corresponding admin pages in your different langs to set them per lang. You do this like so:

$conf['i18n_variables'] = array(
'site_frontpage',
'site_frontpage_mobile',
);
m4olivei’s picture

Issue summary: View changes

Edited to clarify problem -- affects home pages, not rest of content