Multilingual siteaccess keeps asking for LOGIN!!

Author Message

Aldo Bucchi

Tuesday 01 March 2005 10:38:20 am

Hi all,

I spent half a day reading and messing around until I could create separate site accesses (corporate, corporate_es, corporate_it) for my multilingual site.

However, there is still one problem:

When accessing the homepage through any alternative site access (coporate_es, corporate_it, etc) the <b>Anonymous role is forced to login!</b>

The hard-coded translations works fine, as the authorization error show in the corresponding language. Besides, after I login (as the administrator, for example), things work like a charm (I see my translated content as it should)

Note that I'm using the exact same site.ini.append.php (actually I'm copying the complete siteaccess folder) for each site access, changing only this lines:

[RegionalSettings]
Locale=esl-ES
ContentObjectLocale=esl-ES

I turned on Debug for the siteaccess and I can tell that the site access is being identified correctly, but there are problems with authentification:

Debug: not able to get access to siteaccess (kernel-siteaccess)

Is there any policy setting to adjust??
What am I overlooking here?
(should I translate the anonymous user to the secondary translations?... I don't think so)

Any help is grately appreciated.

Regards,
Aldo

Aldo Bucchi

Tuesday 01 March 2005 10:40:13 am

PD: I'm using ezp 3.5.1

Tony Wood

Tuesday 01 March 2005 10:49:31 am

Hi Aldo,

I am sure you have read it but juuust in case there is a good article here
http://ez.no/ez_publish/documentation/configuration/configuration/language_and_charset/how_to_setup_a_multilingual_site

Sounds like some of ther override/site.ini.append.php settings are not set, maybe AvailableSiteAccessList[]?

Tony

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Aldo Bucchi

Tuesday 01 March 2005 12:15:41 pm

tony,

I read the article.

Mmmmh, I have done pretty much everything I have found in this website.
Most posts I have found related to multilingual/siteaccess report refer to situations where nothing works (which was also my case some hours ago) ... or the translated content is not shown.
In my case I DO see the translated content... BUT I need to login.
I believe this sympthoms are quite specific... or aren't the?
Maybe someone from the ezcrew could enlighten me:

What could possibly be missing to end up with an anonymous role that has no permissions for content / view... Or maybe it's something else.

Anyway, I'll keep trying... as always

Thanks ;)

Aldo Bucchi

Tuesday 01 March 2005 12:25:31 pm

It would really help me if someone with a very simple and working multilingual installation (say, a fresh installation of the "plain" site) could share the following files:

settings/site.ini
settings/override/site.ini.append.php
settings/siteaccess/plain_lang1/site.ini.append.php
settings/siteaccess/plain_lang2/site.ini.append.php

That would be great!

Well... hope this someone exists ;)
Thanks!

Ɓukasz Serwatka

Tuesday 01 March 2005 12:32:04 pm

Hi Aldo,

Yes, this is probadly permission problem. You should try to edit policy for (User accounts->Roles and policies ) "Anonymous" and change SiteAccess( old_siteaccess ) to SiteAccess( coporate_es, corporate_it ).

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Aldo Bucchi

Tuesday 01 March 2005 2:32:51 pm

Lukasz,

That's it!
It works now.

I wonder why no one mentioned before that siteaccess login policies should be modified by hand.

Thanks a lot.

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 02:30:03
Script start
Timing: Jan 19 2025 02:30:03
Module start 'layout'
Timing: Jan 19 2025 02:30:04
Module start 'content'
Timing: Jan 19 2025 02:30:06
Module end 'content'
Timing: Jan 19 2025 02:30:06
Script end

Main resources:

Total runtime2.3592 sec
Peak memory usage4,096.0000 KB
Database Queries71

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 589.2891152.6406
Module start 'layout' 0.00630.0075 741.929739.4922
Module start 'content' 0.01382.3433 781.4219638.6172
Module end 'content' 2.35700.0021 1,420.039116.1250
Script end 2.3591  1,436.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00670.2855160.0004
Check MTime0.00300.1259160.0002
Mysql Total
Database connection0.00080.032310.0008
Mysqli_queries2.281896.7184710.0321
Looping result0.00100.0419690.0000
Template Total2.310897.921.1554
Template load0.00210.090820.0011
Template processing2.308697.856921.1543
Template load and register function0.00040.017510.0004
states
state_id_array0.00090.040110.0009
state_identifier_array0.00290.122020.0014
Override
Cache load0.00190.0798570.0000
Sytem overhead
Fetch class attribute can translate value0.00070.029930.0002
Fetch class attribute name0.00130.053290.0001
XML
Image XML parsing0.00150.064630.0005
class_abstraction
Instantiating content class attribute0.00000.000790.0000
General
dbfile0.00150.0627240.0001
String conversion0.00000.000540.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
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
15content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/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: 35
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs