Forums / Setup & design / host SA, but i18n screws up using URI SA

host SA, but i18n screws up using URI SA

Author Message

Olaf Fichtner

Monday 07 June 2010 10:01:33 pm

I just modified a site from URI siteaccess to host-based siteaccess. I did so by making a dummy host SA install and comparing the site.ini.append.php settings. Installation is on a shared hosting environment within a subdirectory, like http://example.com/ezp/. I set the site up to be accessed via http://ezp.example.com, which itself works fine.

I do however need multiple languages, and as soon as I click on English for example, the site redirects to something like this:

http://example.com/ezp/index.php/eng/index.php/Welcome-to-the Frontpage

Which of course does not exist. When I did the dummy host SA install, I noticed that there were two settings in site.ini that were incorrect: SiteURL was still example.com/ezp and the LoginForm redirect to the admin panel also added some URI chaos. I fixed them manually and everything seemed fine - until I tried languages. Unfortunately, I can not find where languages could screw up like this. site.ini has no URI relicts and i18n.ini does not seem to contain anything related. Forum posts mentioning host SA and multilang seem to run into problems different from mine, so I'm at a loss here...

Here is an excerpt from site.ini.append.php:

"

[SiteSettings]
DefaultAccess=eng
SiteList[]=ezflow_site_clean
SiteList[]=eng
SiteList[]=ger
SiteList[]=chi
SiteList[]=jpn
SiteList[]=ezflow_site_clean_admin
SiteList[]=iphone
RootNodeDepth=1
SiteName=xxx
MetaDataArray[author]=xxx
MetaDataArray[copyright]=xxx
MetaDataArray[description]=xxx
MetaDataArray[keywords]=xxx
SiteURL=ezp.example.com/index.php
IndexPage=/content/view/full/75/
DefaultPage=/content/view/full/2/
[SiteAccessSettings]
CheckValidity=false
AvailableSiteAccessList[]
AvailableSiteAccessList[]=ezflow_site_clean_user
AvailableSiteAccessList[]=eng
AvailableSiteAccessList[]=ger
AvailableSiteAccessList[]=chi
AvailableSiteAccessList[]=jpn
AvailableSiteAccessList[]=ezflow_site_clean_admin
AvailableSiteAccessList[]=iphone
MatchOrder=host
HostMatchMapItems[]
HostMatchMapItems[]=eza.example.com;ezflow_site_clean_admin
HostMatchMapItems[]=ezp.example.com;ezflow_site_clean_user
HostMatchMapItems[]=eng.1;eng
HostMatchMapItems[]=ger.1;ger
HostMatchMapItems[]=chi.1;chi
HostMatchMapItems[]=jpn.1;jpn

"

Btw, could it be that the installation process is a bit buggy here? Things worked fine with URI SA and multilang, but on the dummy site with host SA, clicking on English results in something like

http://eng.1/ezp2/index.php/index.php

So, even a vanilla host SA + i18n install does not seem to work - so I got nothing to compare to...

Any ideas what could have gone wrong? (and more importantly: how to fix it...)

Olaf Fichtner

Friday 11 June 2010 9:55:34 am

I found the culprit, but language switching still does not work. The installer creates incorrect settings when host site access is chosen during installation. In each language site access, the site.ini.append.php contains a SiteURL setting that is incorrect, for example "eng.1/folder/where/ezP/is/installed/index.php" for English.

Commenting this out leads to a working URL after clicking on a language link, but no language switch occurs. I have read several forum posts dealing with host SA and multilanguage, but so far I could not find any that would give detailed enough and working directions, so I am really open to suggestions...

Olaf Fichtner

Saturday 12 June 2010 8:22:44 am

OK, problem solved. The solution is here:

http://share.ez.no/forums/setup-design/howto-host-site-access-multilanguage-the-ez-way

eZ debug

Timing: Jan 18 2025 03:07:50
Script start
Timing: Jan 18 2025 03:07:50
Module start 'content'
Timing: Jan 18 2025 03:07:50
Module end 'content'
Timing: Jan 18 2025 03:07:50
Script end

Main resources:

Total runtime0.1314 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 587.8281180.8281
Module start 'content' 0.00550.0053 768.656397.9297
Module end 'content' 0.01070.1206 866.5859533.3750
Script end 0.1313  1,399.9609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00312.3497200.0002
Check MTime0.00130.9756200.0001
Mysql Total
Database connection0.00070.540310.0007
Mysqli_queries0.094371.79601410.0007
Looping result0.00100.78861390.0000
Template Total0.120391.610.1203
Template load0.00070.539610.0007
Template processing0.119691.022810.1196
Override
Cache load0.00050.366010.0005
Sytem overhead
Fetch class attribute can translate value0.00090.675010.0009
XML
Image XML parsing0.00020.148410.0002
General
dbfile0.00322.4660200.0002
String conversion0.00000.003830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs