Forums / Install & configuration / Problem with multilingual site settings

Problem with multilingual site settings

Author Message

Josh Luo

Thursday 28 July 2005 3:33:26 am

Can anyone can help about multilingual site settings with eZ publish 3.6? Thanks!

The feature of multiligual sites is the most important reason why I use eZ Publish. I read almost all of the documents and forum concerned, and trying to configure a english site and a dutch site. It spent me two weeks but without success. Only the defualt english site is okay.

What I did with eZ Publish 3.6.0:

1) Run the installation wizard, selected English as a default language and choose Dutch as optional. The default site works.

2) Create settings/override/site.ini.append.php file:

[Session]
SessionNameHandler=custom

[SiteSettings]
DefaultAccess=en
SiteList[]=en
SiteList[]=nl

[SiteAccessSettings]
AvailableSiteAccessList[]=en
AvailableSiteAccessList[]=nl
AvailableSiteAccessList[]=en_admin
SiteAccessList[]=en
SiteAccessList[]=nl
SiteAccessList[]=en_admin
HostMatchMapItems[]
MatchOrder=uri
URIMatchType=element
URIMatchElement=1
URIMatchRegexp=^/([^/]+)/
URIMatchRegexpItem=1
DebugAccess=enabled

[RegionalSettings]
TextTranslation=enabled
TranslationCache=enabled

[ContentSettings]
TranslationList=eng-GB;dut-NL
ViewCaching=disabled

3) Create siteaccess folders for dutch site:
settings/siteaccess/nl

4) Copy all files under settings/siteaccess/en
to settings/siteaccess/nl

5) Setting RegionalSettins:

In settings/siteaccess/en/site.ini.append.php, I set:
[RegionalSettings]
Locale=eng-GB
HTTPLocale=en
ContentObjectLocale=eng-GB

In settings/siteaccess/nl/site.ini.append.php, I set:
[RegionalSettings]
Locale=dut-NL
HTTPLocale=nl
ContentObjectLocale=dut-NL

After this no problem if I access to default english site(www.myname.nl/index.php/en). But if browsing to dutch site(www.myname.nl/index.php/nl), I got the following debug output:

Fatal error: eZ publish did not finish its request

The execution of eZ publish was abruptly ended, the debug output is present below.

eZ debug

Timing: Jul 23 2005 16:53:41
Script start

Debug: access.php Jul 23 2005 16:53:41
Updated settings to use siteaccess 'nl'

Timing: Jul 23 2005 16:53:41
Module start 'content'

Error: eZTSTranslator::loadTranslationFile Jul 23 2005 16:53:41
Could not load translation file: share/translations/dut-NL/translation.ts

Error: eZDebug::writeFile Jul 23 2005 16:53:41
Cannot open log file 'var/log/error.log' for writing
The web server must be allowed to modify the file.
File logging for 'var/log/error.log' is disabled.

Error: Jul 23 2005 16:53:41
Could not open file 'var/nl/cache/translation/root-36e48c5d322c489dd3ee4e51ffda1494/dut-NL/c289b3ed89e7dee8a3a352a77b308232.php' for writing, perhaps wrong permissions

Error: eZPHPCreator::store Jul 23 2005 16:53:41
Failed to open file 'var/nl/cache/translation/root-36e48c5d322c489dd3ee4e51ffda1494/dut-NL/c289b3ed89e7dee8a3a352a77b308232.php'

Lex 007

Tuesday 02 August 2005 9:55:39 am

In the admin interface, go to Roles & Policies, and set the Anonymous role with siteaccess => any.

Lex

Josh Luo

Tuesday 02 August 2005 1:59:18 pm

After setting Anonymous role to siteaccess with any(user login with No limitations) in my admin interface, the site www.myname.nl/index.php/nl still not accessed. There are the same errors as before.

Josh

eZ debug

Timing: Jan 18 2025 23:15:08
Script start
Timing: Jan 18 2025 23:15:08
Module start 'content'
Timing: Jan 18 2025 23:15:09
Module end 'content'
Timing: Jan 18 2025 23:15:09
Script end

Main resources:

Total runtime1.0933 sec
Peak memory usage4,096.0000 KB
Database Queries194

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 587.8516180.8203
Module start 'content' 0.00520.9628 768.6719535.9688
Module end 'content' 0.96800.1252 1,304.6406336.7500
Script end 1.0933  1,641.3906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.3263210.0002
Check MTime0.00140.1244210.0001
Mysql Total
Database connection0.00070.066810.0007
Mysqli_queries1.022093.47671940.0053
Looping result0.00200.18511920.0000
Template Total1.068997.820.5345
Template load0.00180.168520.0009
Template processing1.067197.602820.5335
Template load and register function0.00010.009210.0001
states
state_id_array0.00150.134410.0015
state_identifier_array0.00130.118120.0006
Override
Cache load0.00170.1519760.0000
Sytem overhead
Fetch class attribute can translate value0.00110.104930.0004
Fetch class attribute name0.00110.102240.0003
XML
Image XML parsing0.00100.089430.0003
class_abstraction
Instantiating content class attribute0.00000.001240.0000
General
dbfile0.00490.4446270.0002
String conversion0.00000.000530.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
19content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
16content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 41
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs