Forums / Setup & design / Changed RootNode and got serious url trouble

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!

eZ debug

Timing: Jan 20 2025 08:55:15
Script start
Timing: Jan 20 2025 08:55:15
Module start 'content'
Timing: Jan 20 2025 08:55:17
Module end 'content'
Timing: Jan 20 2025 08:55:17
Script end

Main resources:

Total runtime1.7150 sec
Peak memory usage4,096.0000 KB
Database Queries183

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 589.0859180.8125
Module start 'content' 0.00561.5348 769.8984415.2969
Module end 'content' 1.54040.1745 1,185.1953333.7813
Script end 1.7149  1,518.9766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.2215210.0002
Check MTime0.00150.0847210.0001
Mysql Total
Database connection0.00090.050510.0009
Mysqli_queries1.637395.46901830.0089
Looping result0.00210.12151810.0000
Template Total1.689398.520.8446
Template load0.00210.121720.0010
Template processing1.687198.378020.8436
Template load and register function0.00030.015010.0003
states
state_id_array0.00080.048010.0008
state_identifier_array0.00090.053220.0005
Override
Cache load0.00160.0949150.0001
Sytem overhead
Fetch class attribute can translate value0.00150.085320.0007
Fetch class attribute name0.00090.054010.0009
XML
Image XML parsing0.00040.022120.0002
class_abstraction
Instantiating content class attribute0.00000.000310.0000
General
dbfile0.01380.8037210.0007
String conversion0.00000.000230.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs