[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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 18:34:26
Script start
Timing: Jan 18 2025 18:34:26
Module start 'layout'
Timing: Jan 18 2025 18:34:26
Module start 'content'
Timing: Jan 18 2025 18:34:26
Module end 'content'
Timing: Jan 18 2025 18:34:26
Script end

Main resources:

Total runtime0.0273 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0089 588.0469152.6406
Module start 'layout' 0.00890.0049 740.687539.4766
Module start 'content' 0.01370.0113 780.164193.4922
Module end 'content' 0.02500.0022 873.656334.3047
Script end 0.0272  907.9609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002910.5248140.0002
Check MTime0.00124.3493140.0001
Mysql Total
Database connection0.00103.710210.0010
Mysqli_queries0.004516.376030.0015
Looping result0.00000.088310.0000
Template Total0.00176.210.0017
Template load0.00093.406010.0009
Template processing0.00082.750310.0008
Override
Cache load0.00072.405910.0007
General
dbfile0.00031.167180.0000
String conversion0.00000.043740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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