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

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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

Author Message

Martin Burger

Friday 27 August 2004 2:08:04 am

Hello,

I'm using Exponential 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: Exponential did not finish it's request
The execution of Exponential was abruptly ended, the debug output is present below.

Even without the hack the script fails.

Any ideas?

Regards, Martin

http://www.netbeyond.de/