Forums / Developer / [4.0.1] Problem with multilingual url aliases

[4.0.1] Problem with multilingual url aliases

Author Message

Luca Mischiatti

Tuesday 18 November 2008 1:09:14 am

Hi!
I was affected by issue http://issues.ez.no/IssueView.php?Id=12785 and I was very happy to install new version to solve my probllems, but now, that I have already version 4.01 installed the problem hold over...I try to explain.
In my admin section I have this tree structure
cartella1 (no translation)
--subfolder1 (ita&eng version)
--subfolder2 (ita&eng version)
--subfolder3 (ita&eng version)

If I translate "cartella" in "folder1" the urlalias doesn't work on the site anymore, infact instead of "mysite/folder1/subfolder1" I just see "content/view/full/xxx"

It's quite similar to issue http://issues.ez.no/IssueView.php?Id=12829

My Error.log
[ Nov 18 2008 09:37:11 ]:
The parent ID 692 of element with ID 734 does not point to the last entry which had ID 1129, incorrect path would be calculated, aborting
[ Nov 18 2008 09:37:11 ]:
eZContentObjectTreeNode::pathWithNames() failed to fetch path of node 752, falling back to generated url entries. Run updateniceurls.php to fix the problem.

updateniceurls dosn't fix the problem...

I can solve it in this way...as an user as already write in post http://ez.no/developer/forum/developer/problems_with_the_tree_url_aliases_paths/re_problems_with_the_tree_url_aliases_paths__5

TRUNCATE ezurlalias_ml;
restart apache
from the shell
php bin/php/updateniceurls.php --import -s siteAccess
-> where siteAccess is a admin site access with all languages support in site.ini

But since I have a lots of node that will be soon translate I cannot think to do it everytime I update my system...There's no way to solve my problem...or...it is already solved but I don't know how?!?! Any help will appreciate!!

Thanks!
Luca

Jean-Luc Nguyen

Thursday 27 November 2008 2:39:02 am

Hello,

<i>I had this problem on 4.0.0 version. I solved it but manually changing values in the database, it was quite difficult.</i>

I just reproduced this multilingual url aliases problem on 4.0.1.
I solved it by:
- installing the ezurlaliasmigration (adding this on site.ini.append.php):

ActiveExtensions[]=ezurlaliasmigration

- Creating temporary ezurlalias_ml_migrate with schema.sql script in /extension/ezurlaliasmigration/sql/mysql/
- backup ezurlalias_ml table (we never know..).
- Truncate ezurlalias_ml table.
- Executing updatenicceurls.php:

php bin/php/updatenicceurls.php

the ezurlalias_ml table is now full of new clean URLs!

http://www.acidre.com

André R.

Thursday 27 November 2008 11:37:53 am

Read the doc:
http://ez.no/doc/ez_publish/upgrading/upgrading_to_4_0/from_4_0_x_to_4_0_y

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

eZ debug

Timing: Jan 18 2025 16:15:14
Script start
Timing: Jan 18 2025 16:15:14
Module start 'content'
Timing: Jan 18 2025 16:15:15
Module end 'content'
Timing: Jan 18 2025 16:15:15
Script end

Main resources:

Total runtime0.8718 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 588.9766180.8125
Module start 'content' 0.00610.8581 769.7891596.6953
Module end 'content' 0.86430.0074 1,366.484446.0703
Script end 0.8717  1,412.5547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3520140.0002
Check MTime0.00130.1480140.0001
Mysql Total
Database connection0.00080.091210.0008
Mysqli_queries0.820794.1466600.0137
Looping result0.00060.0631580.0000
Template Total0.844096.820.4220
Template load0.00220.252420.0011
Template processing0.841896.563220.4209
Template load and register function0.00020.019810.0002
states
state_id_array0.00080.090310.0008
state_identifier_array0.00080.093720.0004
Override
Cache load0.00190.2161450.0000
Sytem overhead
Fetch class attribute can translate value0.00070.082330.0002
Fetch class attribute name0.00090.100750.0002
XML
Image XML parsing0.00130.149130.0004
class_abstraction
Instantiating content class attribute0.00000.000950.0000
General
dbfile0.00220.2580250.0001
String conversion0.00000.000730.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 25
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs