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