Problem with Mixed MatchOrder host & uri

Author Message

Radek Kuchta

Friday 18 August 2006 1:11:40 am

Hi,

I've read a lot of posts about that problem but I cudn't find the solution.

I have 3 domains:

domain1.com
domain2.com
domain3.com

Each of them has 3 translations en/de/pl

domain1.com/en
domain1.com/de
domain1.com/pl
...

I have a problem with mix MatchOrder.

My override/site.ini.append.php

[SiteAccessSettings]
CheckValidity=false
AvailableSiteAccessList[]
AvailableSiteAccessList[]=domain1_en
AvailableSiteAccessList[]=domain1_pl
AvailableSiteAccessList[]=domain1_de
AvailableSiteAccessList[]=domain2_pl
AvailableSiteAccessList[]=domain2_en
AvailableSiteAccessList[]=domain2_de
AvailableSiteAccessList[]=domain3_pl
AvailableSiteAccessList[]=domain3_en
AvailableSiteAccessList[]=domain3_de
AvailableSiteAccessList[]=milenium_pl
AvailableSiteAccessList[]=milenium_en
AvailableSiteAccessList[]=milenium_de

MatchOrder=host;uri
HostMatchType=map
HostMatchMapItems[]=domain1.com;domain1_en
HostMatchMapItems[]=domain2.com;domain2_en
HostMatchMapItems[]=domain3.com;domain3_en

URIMatchType=element
URIMatchElement=1

But this doesn't work, because when a host match is found, the uri is not evaluated.
The other way (uri;host) also doesn't work - when a uri match is found, the host is not evaluated.

Anyone solve that problem ?
I have no idea how to do it.

http://ez.no/certification/verify/272582

Xavier Serna

Thursday 03 May 2007 12:50:17 am

Anybody out there with a solution for this? Here we have the same problem and can't figure out how to solve it.. for now we are using host based siteaccess choice, but would be better to use:

domain1.com/lan1
domain2.com/lan1
domain1.com/lan2
domain2.com/lan2

thank you for reading! :)

--
Xavier Serna
eZ Publish Certified Developer
Departament de Software
Microblau S.L. - http://www.microblau.net
+34 937 466 205

Akhilesh Singh

Saturday 28 May 2011 3:51:13 am

any one with this solution ..

i am getting same issue.. i am using ez4.3 there should be some solution for this i am sure i am missing something but what i have no clue. can any one help me in this.??

THank you,
Akhi 

Steven E. Bailey

Saturday 28 May 2011 7:52:12 am

This was solved with ez4.4: https://github.com/ezsystems/ezpublish/blob/master/doc/features/4.4/host_uri_siteaccess_matching.txt so if you can upgrade that would be the best way of fixing this.  Otherwise, there is a patch here : http://issues.ez.no/IssueView.php?Id=15359.  Also, search for host_uri to get a bunch of other forum discussions.

Certified eZPublish developer
http://ez.no/certification/verify/396111

Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com

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 18 2025 02:12:19
Script start
Timing: Jan 18 2025 02:12:19
Module start 'layout'
Timing: Jan 18 2025 02:12:19
Module start 'content'
Timing: Jan 18 2025 02:12:20
Module end 'content'
Timing: Jan 18 2025 02:12:20
Script end

Main resources:

Total runtime0.9376 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 588.0313152.6406
Module start 'layout' 0.00580.0199 740.671939.4766
Module start 'content' 0.02570.9103 780.1484642.3594
Module end 'content' 0.93600.0016 1,422.507812.1250
Script end 0.9376  1,434.6328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.3993160.0002
Check MTime0.00150.1595160.0001
Mysql Total
Database connection0.00060.066310.0006
Mysqli_queries0.852190.8749650.0131
Looping result0.00090.0942630.0000
Template Total0.849290.620.4246
Template load0.00260.278220.0013
Template processing0.846590.282920.4233
Template load and register function0.00010.009710.0001
states
state_id_array0.00420.450710.0042
state_identifier_array0.00160.171520.0008
Override
Cache load0.00210.2228360.0001
Sytem overhead
Fetch class attribute can translate value0.00070.077440.0002
Fetch class attribute name0.00160.174470.0002
XML
Image XML parsing0.00170.179140.0004
class_abstraction
Instantiating content class attribute0.00000.001470.0000
General
dbfile0.00850.9095290.0003
String conversion0.00000.001140.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 26
 Number of unique templates used: 8

Time used to render debug report: 0.0001 secs