Website Interface problem

Author Message

Jon Staines

Friday 16 November 2007 7:20:39 am

Before raising a bug I thought I'd better both that I'm not doing something stupid and whether anybody else had encountered this.

I'm trying to have a setup where there are multiple sites sharing the eZ Publish install. So the structure is:

RootRode
-Home
 -Folder1
 -Folder2
-Another Home
 -Folder1
 -Folder2

Where Home and Another Home would be different sites.

Everything works until I try editing the Home node (or the Another Home) using the website interface. Then on publishing that node, all the links to parts of the site break. What used to be:
http://localhost/ez310/index.php/eng/Folder1
becomes:
http://localhost/ez310/index.php/eng/2/Folder1

With that 2 inserted between the siteaccess part (eng in my case) and the name of the node. To fix it I have to go into the admin interface and send the Home node for publishing again (then clear the cache).

Any ideas what I'm doing wrong?

Jon Staines

Friday 16 November 2007 7:24:28 am

If it helps to shed any light on it. If I don't fix that siteaccess's Home and then go repeat the same on another Home node, it gets a 3 instead of a 2 ie:
http://localhost/ez310/index.php/anothersite/Folder1
becomes:
http://localhost/ez310/index.php/anothersite/3/Folder1

Jon Staines

Monday 19 November 2007 1:15:17 am

====PROBLEM FIXED====

Talk about a jumbo sized order of the stupids with extra cream. It turns out that I'd used both RootNodeDepth and PathPrefix/PathPrefixExclude in my site.ini. This produces the above symptoms. Removing the PathPrefix/PathPrefixExclude pairing has fixed it.

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 20 2025 00:27:40
Script start
Timing: Jan 20 2025 00:27:40
Module start 'layout'
Timing: Jan 20 2025 00:27:40
Module start 'content'
Timing: Jan 20 2025 00:27:41
Module end 'content'
Timing: Jan 20 2025 00:27:41
Script end

Main resources:

Total runtime0.8255 sec
Peak memory usage4,096.0000 KB
Database Queries55

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 589.1563152.6250
Module start 'layout' 0.00470.0035 741.781339.4453
Module start 'content' 0.00820.8160 781.2266471.1797
Module end 'content' 0.82430.0012 1,252.406312.1641
Script end 0.8255  1,264.5703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.3646160.0002
Check MTime0.00130.1514160.0001
Mysql Total
Database connection0.00060.076010.0006
Mysqli_queries0.778894.3345550.0142
Looping result0.00040.0543530.0000
Template Total0.794896.320.3974
Template load0.00190.230920.0010
Template processing0.792896.039120.3964
Template load and register function0.00010.015010.0001
states
state_id_array0.00140.169410.0014
state_identifier_array0.00090.113620.0005
Override
Cache load0.00160.1889240.0001
Sytem overhead
Fetch class attribute can translate value0.00070.084510.0007
Fetch class attribute name0.00090.107340.0002
XML
Image XML parsing0.00050.063010.0005
class_abstraction
Instantiating content class attribute0.00000.001660.0000
General
dbfile0.00290.3471160.0002
String conversion0.00000.001040.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs