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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 01:18:47
Script start
Timing: Jan 19 2025 01:18:47
Module start 'layout'
Timing: Jan 19 2025 01:18:47
Module start 'content'
Timing: Jan 19 2025 01:18:47
Module end 'content'
Timing: Jan 19 2025 01:18:47
Script end

Main resources:

Total runtime0.5667 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 589.2969152.6406
Module start 'layout' 0.00650.0040 741.937539.4766
Module start 'content' 0.01050.5545 781.4141530.8750
Module end 'content' 0.56500.0016 1,312.289112.1406
Script end 0.5667  1,324.4297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.6444160.0002
Check MTime0.00140.2445160.0001
Mysql Total
Database connection0.00120.211210.0012
Mysqli_queries0.499288.0825570.0088
Looping result0.00050.0947550.0000
Template Total0.532193.920.2660
Template load0.00250.433620.0012
Template processing0.529693.457520.2648
Template load and register function0.00020.035510.0002
states
state_id_array0.00090.167310.0009
state_identifier_array0.00080.145020.0004
Override
Cache load0.00220.3848760.0000
Sytem overhead
Fetch class attribute can translate value0.00170.305320.0009
Fetch class attribute name0.00260.451940.0006
XML
Image XML parsing0.00070.118620.0003
class_abstraction
Instantiating content class attribute0.00000.001840.0000
General
dbfile0.00080.1444160.0001
String conversion0.00000.001440.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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