Forums / General / how to get rid of __1

how to get rid of __1

Author Message

Jacek S

Tuesday 30 January 2007 11:01:13 am

I have problem with __1 in urls in my ez publish installation. I have red some posts in this forum about this problem and I have tried solutions which was described there. But I still have this __1.
I tried:
- change root node name, delete cache, delete trash and run updateniceurls.php
- change root node name, delete cache, delete trash, delete archived version and drafts and run updateniceurls.php
nothing has changed.

Is there any other solution for __1 problem?

Timmothy Green

Tuesday 30 January 2007 12:40:58 pm

Only time I have seen this happen is when I have a trailing space in the node name.

For example

"News " would generate "/news_1"
"News" would generate "/news"

Automation Technologies, Inc.
http://www.ati4it.com

Jacek S

Tuesday 30 January 2007 1:25:20 pm

i got it instead of root node name. I think it happened when i change this name.

Now i have
root node name(ex.): "rootnode"
but all urls looks like:
__1/secondlevel
__1/secondlevel/thirdlevel

and so on.

Hans Melis

Tuesday 30 January 2007 1:56:32 pm

First the problem:

This only happens when you edit the RootNode of a siteaccess in that siteaccess, the exception to the rule being the admin siteaccess. Why? Upon publishing an object, the kernel will publish node locations as nodes in the tree. If Node A is configured as the RootNode of siteaccess A, the kernel sets the node's path to an empty string when it's published within siteaccess A. Then it checks if the node's path exists and adds __(number) if it does. Every default installation already has a node with an empty path: Node 2 (the root of the content tree). So your Node A gets the empty path plus the __(number) extension. That's also why editing Node 2 in the admin siteaccess doesn't cause the same problem: it's the original node with an empty path.

Now the solution:

1. Don't touch the RootNode setting. That will keep you out of trouble in the future. If you need the different settings, create your own ini file and change the setting per siteaccess.

2. When it's too late (read: __1 appears), edit the node (the one configured as root node) in the admin siteaccess to give it the normal node path again.

3. Run updateniceurls.php

4. Depending on your configuration, you may need to clear some caches.

5. If that didn't help, clear the table containing the url aliases and rerun updateniceurls.php

That's how I got everything back to normal. I hope it works for you too.

More info:
http://lists.ez.no/pipermail/sdk-public/2006-July/002183.html
http://lists.ez.no/pipermail/sdk-public/2006-July/002184.html

Hans
http://blog.hansmelis.be

Jacek S

Wednesday 31 January 2007 2:04:04 am

Thanks for answer.

I did what you described but it had no effects:
Root node name changed.
Cache cleared.
updateniceurls.php doesn't have any effect - __1 sill in root node name.

Maybe you know any other solutions?

eZ debug

Timing: Jan 18 2025 19:11:35
Script start
Timing: Jan 18 2025 19:11:35
Module start 'content'
Timing: Jan 18 2025 19:11:35
Module end 'content'
Timing: Jan 18 2025 19:11:35
Script end

Main resources:

Total runtime0.4170 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 588.7188180.8516
Module start 'content' 0.00740.0072 769.570397.8047
Module end 'content' 0.01470.4023 867.3750526.4844
Script end 0.4169  1,393.8594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.9306200.0002
Check MTime0.00180.4299200.0001
Mysql Total
Database connection0.00140.325910.0014
Mysqli_queries0.358485.94281410.0025
Looping result0.00190.44401390.0000
Template Total0.401896.410.4018
Template load0.00110.265010.0011
Template processing0.400696.075110.4006
Override
Cache load0.00090.206210.0009
Sytem overhead
Fetch class attribute can translate value0.00070.165710.0007
XML
Image XML parsing0.00030.062610.0003
General
dbfile0.00310.7474200.0002
String conversion0.00000.001330.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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