Forums / General / __1 or __2 appears in url

__1 or __2 appears in url

Author Message

Montel Sébastien

Tuesday 05 September 2006 2:07:28 am

Hello,

I encounter a problem with 4 sites ezp (version 3.8.3) I manage ; __1 or __2 appeared in the url. For example :
instead of
http://www.unr-unire.fr/index.php/les_partenaires
the url becomes
http://www.unr-unire.fr/index.php/__2/les_partenaires
the problem is not isolated, it appears on several sites (another site seems to have the same virus :) http://www.micro-optics.org/__1/news ) and there's no obvious reason.
Two tables in the database seems to be involved in this issue , ezcontentobject_tree (field path_identification_string) and ezurlalias (fields destination_url and source_url) ; but i don't know exactly how to manipulate this data to obtain correct path without __1 or __2.
This problem is very embarrassing, we need asap to propose these sites to our users.

Any ideas ?

Thanks a lot,
merci d'avance,

Sébastien

Svitlana Shatokhina

Tuesday 05 September 2006 2:13:26 am

Hi,

I'm not involved in this stuff but maybe you will find a solution here:
http://ez.no/community/forum/general/getting_rid_of_1_in_urls
http://ez.no/community/forum/developer/whats_1_in_url
http://lists.ez.no/pipermail/sdk-public/2006-July/002183.html
http://lists.ez.no/pipermail/sdk-public/2006-July/002184.html

Best regards,
Sveta

André R.

Tuesday 05 September 2006 2:34:56 am

could it be that you have an empty name on your root node ??

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Fabio Carissimi

Tuesday 05 September 2006 6:42:22 am

Hello, (I Work with Sébastien on this issue),

on ezpublish Sdk-public mailing list, somebody told us the problem comes from this part of code in the function pathWithNames in kernel/classes/ezcontentobjecttreenode.php :

$ini =& eZINI::instance( 'content.ini' );
$contentRootID = $ini->variable( 'NodeSettings', 'RootNode' );
if ( $node->attribute( 'node_id' ) != $contentRootID )
{
<snip>
}
else
{
  $nodePath = '';
}

because when somebody edit the root node, it is like having an empty name on the root node.
If I edit the root node (change name 'ezpublish' to 'Home page' for ex.) I can reproduce the bug on an ezp 3.8.3 installation but on another server with ezp 3.8.1, there is no problem.
Do you know why and how to repair it ?

Thanks for help

Softriva .com

Tuesday 05 September 2006 9:54:28 pm

I am not sure if this issue is related to my issue which because the object name is in arabic, the url_alias for that object is made as node_54, etc. I wish somebody from eZ can tell us about this.

http://ez.no/community/forum/setup_design/why_mylinks_to_nodes_appears_as_node_45_node_55_node_56/re_why_mylinks_to_nodes_appears_as_node_45_nod__3

zurgutt -

Friday 15 September 2006 6:05:53 pm

I have a experience which is related to above problem i think.

I am setting up a multisite system on one database.

Each subsite gets assigned a separate subtree and siteaccess. IndexPage, DefaultPage and PathPrefix are used to make each subsite to start on its own indexpage and to remove /subsitename/ path from URLs.

Also I did set RootNode in content.ini to point on the subsite indexpage, as I thought this was its function. That ini setting is totally undocumented though. I was using it in templates to make menus start at right level etc.

However this appears to have been a mistake. At first look everything worked fine until I edited the subsite root page (in user siteaccess, where RootNode setting was in power. After that the path for all nodes in subtree was broken. Subsite root that used to be "/subsite/rootpage" had become "__1" and pages under it "/subsite/rootpage/subpage" -> "__1/subpage" etc.

The mangled paths can be fixed again by editing that node in admin where RootNode still points to 2.

Apparently the RootNode setting should not be used by developers for anything at least until its function is documented and clear. I will also file a bug on this.

Certified eZ developer looking for projects.
zurgutt at gg.ee

eZ debug

Timing: Jan 30 2025 21:42:26
Script start
Timing: Jan 30 2025 21:42:26
Module start 'content'
Timing: Jan 30 2025 21:42:26
Module end 'content'
Timing: Jan 30 2025 21:42:26
Script end

Main resources:

Total runtime0.3288 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 587.9219370.3047
Module start 'content' 0.00670.0154 958.22661,009.6094
Module end 'content' 0.02210.3065 1,967.83593,898.9375
Script end 0.3287  5,866.7734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00451.3656200.0002
Check MTime0.00130.4028200.0001
Mysql Total
Database connection0.00070.224210.0007
Mysqli_queries0.219566.76651410.0016
Looping result0.00210.63101390.0000
Template Total0.306193.110.3061
Template load0.00080.251610.0008
Template processing0.305392.865610.3053
Override
Cache load0.00060.169410.0006
Sytem overhead
Fetch class attribute can translate value0.00190.573410.0019
XML
Image XML parsing0.00030.088810.0003
General
dbfile0.00952.8940200.0005
String conversion0.00000.001530.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