Changed RootNode and got serious url trouble

Author Message

Roy Bøhmer

Tuesday 14 December 2004 3:18:21 pm

I have one installation of ez with one db, but want to run two sites on it: www.mysite1.com and www.mysite2.com. Here is an extract of the node-tree:

MySites (node_id:2)
|--www_mysite1.com (node_id:58 - start point for mysite1)
|  |- Folder1
|  |- Folder2
|
|-- www_mysite2.com (start point for mysite2)
    |- Folder3
    |- Folder 4

Since I have not implemented www.mysite2.com I currently have 2 siteaccesses: mysite1_user and mysite1_admin.

In mysite1_user -> site.ini.append IndexPage=/../../58, which work nice. The node www_mysite1 (node_id 58) shows up as the frontpage.
On mysite1_admin on the other hand I changed mysite1_admin -> content.ini.append -> RootNode from 2 to 58.

At thist point I was very impressed by my self :-) Now everything seemed to work pretty well. But... For some reason the url_aliases where wrong. What happend was that the url_alias was truncated the same number of charters as node58.name - in my case 16 - from the start. In mysite1_admin the problem was corrected when I republished the objects. In mysite1_user (which still have RootNode=2) the url_alias was still wrong.

However - if I didnt use nice urls but /content/view/full/.../ it still worked both places.

When I suspected the setting RootNode=58 in mysite1_admin to be the problem I changed it back to 2.
I'm not 100% sure if I republished the www_mysite1_com-node (58) first, but I know that nothing seems to work now... I only get the kernel error (20) saying it can't find the module www_mysite1_com - the name of the "trouble-node".
Now even /content/view/full/../ doesn't work in any of the siteaccesses. In siteaccess mysite1_admin however the nice urls work (url_alias). All other urls give the same error. This means I can't edit content, open the settings etc. All the time it tries to access the non-existing module www_mysite1_com.

Returning to content.ini.append -> RootNode=58 doesn't work, probably because I (may) republished the node www_mysite1_com when RootNode=2.

I'll be thankfull for any suggestions!

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 11:01:55
Script start
Timing: Jan 20 2025 11:01:55
Module start 'layout'
Timing: Jan 20 2025 11:01:55
Module start 'content'
Timing: Jan 20 2025 11:01:55
Module end 'content'
Timing: Jan 20 2025 11:01:55
Script end

Main resources:

Total runtime0.0220 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 589.2891152.6406
Module start 'layout' 0.00660.0047 741.929739.4766
Module start 'content' 0.01130.0080 781.406389.3828
Module end 'content' 0.01930.0026 870.789130.3047
Script end 0.0219  901.0938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003315.0156140.0002
Check MTime0.00156.8864140.0001
Mysql Total
Database connection0.00083.738410.0008
Mysqli_queries0.004520.487630.0015
Looping result0.00000.114010.0000
Template Total0.00198.410.0019
Template load0.00115.172410.0011
Template processing0.00073.246710.0007
Override
Cache load0.00083.834010.0008
General
dbfile0.00167.105680.0002
String conversion0.00000.059740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs