URL's show with underscores in them

Author Message

Herman Hardenbol

Tuesday 07 February 2006 1:00:18 am

Suddenly my url's have underscores and numbering in them like this:

index.php/news/events__1/concert

Does anyone know why and how to get rid of them? Thanks for any help.

Thomas Nunninger

Tuesday 07 February 2006 1:13:54 am

Hi,

probably you have to objects in your news folder called events. The double underscore and the numbering is the way to distinguish them...

Have a nice day

Thomas

Mark Marsiglio

Tuesday 07 February 2006 6:41:55 am

Look for a script in /update/common/scripts/ called updateniceurls.php. The __1 is created when two items with the same name/url_alias are created, but often the original is removed and you are left with ugly URLs.

updateniceurls.php is a script that will recreate the URLs and get rid of any __1s where there is no longer a duplicate.

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

Herman Hardenbol

Thursday 09 February 2006 2:53:09 am

Thanks a lot for your help. I probably did have two nodes with the same name at first and deleted one of them and I did not know about the updateniceurls.php script.

I have cleared the trash (as I read somewhere else this could be of influence), cleared the cache, run the script, cleared the cache again, but nothing happened. The script showed me a nice dotted progress bar, no errors anywhere, no logfiles. I have forced it to look at my site_access with the -s switch. I would like to know what went wrong in my ezpublish 3.6.2/suse 9.3/mysql 4.1.15-nt installation. Could it be a buggy.

I did a little trick to solve it for now: just renamed events to event and then back to events again.

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

Main resources:

Total runtime0.0176 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 588.1328151.2109
Module start 'layout' 0.00620.0044 739.343836.6641
Module start 'content' 0.01060.0052 776.007890.0313
Module end 'content' 0.01580.0018 866.039133.9922
Script end 0.0176  900.0313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002513.9569140.0002
Check MTime0.00126.5534140.0001
Mysql Total
Database connection0.00094.891110.0009
Mysqli_queries0.005028.072030.0017
Looping result0.00000.079710.0000
Template Total0.00137.210.0013
Template load0.00105.662810.0010
Template processing0.00031.512310.0003
Override
Cache load0.00073.849110.0007
General
dbfile0.00021.389380.0000
String conversion0.00000.040540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs