NiceURLs not so nice...

Author Message

Hakim Bouras

Tuesday 11 March 2008 11:19:30 am

Hello,

It is getting a nightmare to have the script "updateniceurls.php" working...

I am trying to do my migration from 3.10.1 to 4.0 and I end up (whatever I have tried for many hours now) 10 Kb of errors in the log file of the "updateniceurls.php", and many lines of error in my ez site after my migration...

The type of errors I get in EZ after the migration (have almost a hundred of errors like this one...)

<i>eZContentObjectTreeNode::pathWithNames() failed to fetch path of node 997, falling back to generated url entries. Run updateniceurls.php to fix the problem.</i>

I have tried to rerun the script many times, went through the forum, but did not get the chance to find a solution.

The different type of errors I got after running the updateniceurls.php are (each time I had reset the "is_imported" flag in the ezurlalias table) :

<i>Found the alias 'partners/members/equipment/viscosimeter' with ID 780 which points to 'eznode:716' but that content-object/node does not exist in the database</i>

Shall I then just remove the entry with ID 780 in the ezurlalias table and rerun the script ?

<i>Found the alias 'public' with ID 1627 which points to 'eznode:1020' but that URL already exists, however the existing URL has the action 'eznode:1601'</i>

I can see two "public" entry in the ezurlalias table, one marked as "internal" and the other not. What to do ? Shall I remove one of this entry ?

<i>The referenced path 'partners/members/institutes/cemef' can not be found among the new URL alias entries, url entry ID is 85</i>

What shall I do with this type of error ?

<i>Invalid source wildcard 'partners/documents/', item is skipped, URL entry ID is 1561</i>

And for this one ?

<i>The wildcard url 'partners/resources' cannot be created since the path already exists</i>

???

---------------------------------

<b>My config is as follow:</b>
Apache 2.2.6, PHP 5.2.5, MySQL 5.0.45
EZ Publish 4.0
MySQL DB in utf-8

i18n.ini.append.php

[CharacterSettings]
Charset=utf-8

site.ini.append.php

[URLTranslator]
Translation=enabled
WordSeparator=underscore
TransformationGroup=urlalias

[RegionalSettings]
Locale=eng-GB
ContentObjectLocale=eng-GB
TextTranslation=disabled

Any help to understand these errors and clues to find solution will be very appreciated. Even if I have to go through the MySQL DB to do some cleaning...

Thank you,
Hakim

Łukasz Serwatka

Wednesday 12 March 2008 7:46:49 am

Hi,

Before going deeper in to details ...

If you are running 3.10 and you don't experiencing problems with url aliases then there is no need to run this script.

Also, your regional settings seems to be wrong, missing are

[RegionalSettings]
...
SiteLanguageList[]
SiteLanguageList[]=eng-GB
...

Settings above are used by various kernel scripts.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Hakim Bouras

Wednesday 12 March 2008 8:51:26 am

Hello Łukasz,

Thank you for your reply.

I updated my language list, reset the is_impoted flag and rerun the script but still get the same error.log file (with the same errors as above).

I used my 3.10 database, migrate to v4 without applying the updateniceurls script, and I do not have anymore the errors in the debug of my ez web site.

But in 3.10, my TransformationGroup was "urlalias_compat". How can I change it now to "urlalias" (as it is recommended by EZ) without running the updateniceurl script ? And what about the inconstancies found by the script ? (shall I just close my eyes ?)

Thanks,
Hakim

Jean-Luc Nguyen

Wednesday 20 August 2008 2:27:06 am

I experienced the same problem, it is a ez publish 4.0.0 bug, I had to upgrade to 4.0.1 version, upgrade the database and it fixed the url problem.

bug #13140: http://issues.ez.no/IssueView.php?Id=13140

http://www.acidre.com

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