updateniceurls error with $hasChanged = $node->updateSub...

Author Message

florian bellenger

Thursday 11 December 2008 2:05:47 pm

Hi,

I made a mistake : I launched the script updateniceurls and I forgot to change "$hasChanged = $node->updateSubTreePath(false);". After that, there were a lot of broken urls, more than before. Is my mistake enough to explain that?

Afterwards, I launched an other version of the script (I have too web site wich are using the same database) wich had been modified before ("$hasChanged = $node->updateSubTreePath(false);" replaced by "$hasChanged = $node->updateSubTreePath(true);")

I thought that it was going to repair anything but things became worst. Would you have expected that? (I didn't restore my database before.)

I truncated ezurlalias_ml everytime I had to lauch the script.

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 31 2025 04:27:53
Script start
Timing: Jan 31 2025 04:27:53
Module start 'layout'
Timing: Jan 31 2025 04:27:53
Module start 'content'
Timing: Jan 31 2025 04:27:54
Module end 'content'
Timing: Jan 31 2025 04:27:54
Script end

Main resources:

Total runtime0.9993 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 588.2813151.2266
Module start 'layout' 0.00460.0021 739.507836.6797
Module start 'content' 0.00670.9917 776.1875822.6406
Module end 'content' 0.99830.0009 1,598.82817.7969
Script end 0.9993  1,606.6250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.3012160.0002
Check MTime0.00130.1255160.0001
Mysql Total
Database connection0.00060.060710.0006
Mysqli_queries0.955695.6192460.0208
Looping result0.00050.0523440.0000
Template Total0.965796.620.4828
Template load0.00250.249020.0012
Template processing0.963296.383520.4816
Template load and register function0.00160.163110.0016
states
state_id_array0.00230.229310.0023
state_identifier_array0.00130.130020.0006
Override
Cache load0.00190.185980.0002
Sytem overhead
Fetch class attribute can translate value0.00070.069310.0007
Fetch class attribute name0.00160.162410.0016
XML
Image XML parsing0.00010.012010.0001
class_abstraction
Instantiating content class attribute0.00000.000510.0000
General
dbfile0.00280.2761100.0003
String conversion0.00000.000740.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 4
 Number of unique templates used: 4

Time used to render debug report: 0.0001 secs