updateniceurls.php expected behaviour?

Author Message

STEVO +

Wednesday 03 June 2009 1:16:32 pm

Hi,

I've upgraded a site from 3.9.1 to 4.1.1

I've changed the WordSeparator setting to "dash" and run updateniceurls.php.

my urls have all changed however, the old urls don't redirect to the new urls. eg:

/site/my-url > goes to > /site/My-URL (good show)

however:

/site/my_url (the original url) gives a module not found.

Is this expected behaviour or have I borked up the upgrade?

Many thanks

Russell Michell

Thursday 04 June 2009 8:03:34 pm

Hey STEVO...

It seems the upgrade path might need to be "staged" between more versions (instead of 3.9 -> 4.1, go 3.9, 3.10, 4.0.1, 4.1)

See this post for more info:

http://ez.no/developer/forum/install_configuration/big_url_alias_problems_after_3_8_4_to_4_0_1_upgrade

Hope that helps you out,
Russ

Russell Michell, Wellington, New Zealand.
We're building! http://www.theruss.com/blog/
I'm on Twitter: http://twitter.com/therussdotcom

Believe nothing, consider everything.

STEVO +

Friday 05 June 2009 10:54:34 am

Hi Russ,

I'm pretty sure that's what I did, well, 3.9.1 > 3.10.1 > 4.1.1

I ran updateniceurls.php after moving to 3.10.1.

If anyone has moved from 3.9 to 3.10+ and changed their WordSeparator, I'd be interested to hear if their original urls are being redirected. or from the eZ crew if this is supposed to work.

for now i've had to hack index.php.

cheers

Steven E. Bailey

Saturday 06 June 2009 1:56:50 am

I had this same problem - which broke the indexed links and links that people had bookmarked.

I fixed it by running updateniceurls.php once with the default TransformationGroup and then again with TransformationGroup=urlalias_compat

(Afterwards going back to the default for new objects)

This appended the ezurlalias_ml table with the dir_name paths too and they then resolved.

Not sure if there isn't a better way to do this (actually I'd like to see some documentation on what this is supposed to be doing anyway).

The niceurls is a nice idea but it has been an unending frustration for me too.

Certified eZPublish developer
http://ez.no/certification/verify/396111

Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com

STEVO +

Friday 03 July 2009 6:42:16 am

Thanks Steven,

Just a note to say that everything turned out fine by:

reverting to [URLTranslator]TransformationGroup=urlalias_compat

running updateniceurls.php

reverting back [URLTranslator]TransformationGroup=urlalias

rerunning updateniceurls.php

loverly

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:41:03
Script start
Timing: Jan 18 2025 18:41:03
Module start 'layout'
Timing: Jan 18 2025 18:41:03
Module start 'content'
Timing: Jan 18 2025 18:41:04
Module end 'content'
Timing: Jan 18 2025 18:41:04
Script end

Main resources:

Total runtime0.8282 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 588.0391152.6406
Module start 'layout' 0.00570.0028 740.679739.4922
Module start 'content' 0.00850.8180 780.1719607.3828
Module end 'content' 0.82650.0017 1,387.554716.1406
Script end 0.8282  1,403.6953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.4481160.0002
Check MTime0.00140.1727160.0001
Mysql Total
Database connection0.00070.088310.0007
Mysqli_queries0.761691.9500650.0117
Looping result0.00070.0855630.0000
Template Total0.793295.820.3966
Template load0.00220.269820.0011
Template processing0.791095.499720.3955
Template load and register function0.00010.011910.0001
states
state_id_array0.00110.136910.0011
state_identifier_array0.00210.251320.0010
Override
Cache load0.00200.2406460.0000
Sytem overhead
Fetch class attribute can translate value0.00070.087930.0002
Fetch class attribute name0.00110.130580.0001
XML
Image XML parsing0.00140.171030.0005
class_abstraction
Instantiating content class attribute0.00000.0022100.0000
General
dbfile0.00110.1358290.0000
String conversion0.00000.001140.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
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs