Forums / Install & configuration / updateniceurls.php expected behaviour?

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

eZ debug

Timing: Jan 18 2025 21:12:54
Script start
Timing: Jan 18 2025 21:12:54
Module start 'content'
Timing: Jan 18 2025 21:12:55
Module end 'content'
Timing: Jan 18 2025 21:12:55
Script end

Main resources:

Total runtime0.9932 sec
Peak memory usage4,096.0000 KB
Database Queries202

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 591.4688180.8203
Module start 'content' 0.00590.8297 772.2891612.4766
Module end 'content' 0.83560.1576 1,384.7656337.3750
Script end 0.9932  1,722.1406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.4195210.0002
Check MTime0.00150.1551210.0001
Mysql Total
Database connection0.00050.053210.0005
Mysqli_queries0.902890.89962020.0045
Looping result0.00300.29972000.0000
Template Total0.965497.220.4827
Template load0.00180.185620.0009
Template processing0.963597.009020.4818
Template load and register function0.00010.010810.0001
states
state_id_array0.00100.096310.0010
state_identifier_array0.00100.098920.0005
Override
Cache load0.00160.1572460.0000
Sytem overhead
Fetch class attribute can translate value0.00180.176540.0004
Fetch class attribute name0.00110.115580.0001
XML
Image XML parsing0.00440.447240.0011
class_abstraction
Instantiating content class attribute0.00000.0021100.0000
General
dbfile0.00590.5975400.0001
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs