update/common/scripts/updateniceurls.php does not work

Author Message

Martin Burger

Friday 27 August 2004 2:08:04 am

Hello,

I'm using eZ publish 3.4.1 and included a hack for translating german umlauts in nice urls:

diff -u -r1.1.1.1 ezurlalias.php
--- classes/ezurlalias.php      16 Aug 2004 12:08:42 -0000      1.1.1.1
+++ classes/ezurlalias.php      27 Aug 2004 08:51:24 -0000
@@ -657,6 +657,12 @@
     function convertToAlias( $urlElement, $defaultValue = false )
     {
         $urlElement = strtolower( $urlElement );
+
+        // HACK BY MARTIN BURGER / NETBEYOND
+        // Translate german sz and umlauts
+        $NB_trans = array ("ß" => "ss", "ä" => "ae", "ö" => "oe", "ü" => "ue", );
+        $urlElement = strtr( $urlElement, $NB_trans );
+
         $urlElement = preg_replace( array( "#[^a-z0-9_ ]#",
                                            "/ /",
                                            "/__+/",

To use this hack I want to run the updateniceurls.php, but it fails:

php -C update/common/scripts/updateniceurls.php

Fatal error: eZ publish did not finish it's request
The execution of eZ publish was abruptly ended, the debug output is present below.

Even without the hack the script fails.

Any ideas?

Regards, Martin

http://www.netbeyond.de/

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 15:01:35
Script start
Timing: Jan 18 2025 15:01:35
Module start 'layout'
Timing: Jan 18 2025 15:01:35
Module start 'content'
Timing: Jan 18 2025 15:01:36
Module end 'content'
Timing: Jan 18 2025 15:01:36
Script end

Main resources:

Total runtime0.9796 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.0048 588.0547152.6406
Module start 'layout' 0.00480.0029 740.695339.4766
Module start 'content' 0.00780.9697 780.1719469.2969
Module end 'content' 0.97750.0020 1,249.46888.2813
Script end 0.9795  1,257.7500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3343160.0002
Check MTime0.00150.1481160.0001
Mysql Total
Database connection0.00050.052710.0005
Mysqli_queries0.935695.5173460.0203
Looping result0.00050.0494440.0000
Template Total0.940196.020.4700
Template load0.00180.185920.0009
Template processing0.938395.783320.4691
Template load and register function0.00040.042810.0004
states
state_id_array0.00210.214910.0021
state_identifier_array0.00290.297920.0015
Override
Cache load0.00140.1432120.0001
Sytem overhead
Fetch class attribute can translate value0.00100.098810.0010
Fetch class attribute name0.00120.124520.0006
XML
Image XML parsing0.00120.124510.0012
class_abstraction
Instantiating content class attribute0.00000.000420.0000
General
dbfile0.00240.2436160.0001
String conversion0.00000.000640.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs