Forums / General / URL's show with underscores in them

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.

eZ debug

Timing: Jan 19 2025 01:14:26
Script start
Timing: Jan 19 2025 01:14:26
Module start 'content'
Timing: Jan 19 2025 01:14:27
Module end 'content'
Timing: Jan 19 2025 01:14:27
Script end

Main resources:

Total runtime0.7510 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 590.8672180.8359
Module start 'content' 0.00630.7421 771.7031586.8125
Module end 'content' 0.74840.0026 1,358.515642.1016
Script end 0.7510  1,400.6172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00280.3717140.0002
Check MTime0.00120.1640140.0001
Mysql Total
Database connection0.00050.063410.0005
Mysqli_queries0.708594.3338630.0112
Looping result0.00060.0853610.0000
Template Total0.721196.020.3606
Template load0.00170.229320.0009
Template processing0.719495.789220.3597
Template load and register function0.00030.038910.0003
states
state_id_array0.00110.151010.0011
state_identifier_array0.00150.200920.0008
Override
Cache load0.00140.1872200.0001
Sytem overhead
Fetch class attribute can translate value0.00090.125030.0003
Fetch class attribute name0.00100.130160.0002
XML
Image XML parsing0.00150.195730.0005
class_abstraction
Instantiating content class attribute0.00000.001760.0000
General
dbfile0.00100.1347230.0000
String conversion0.00000.000930.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs