Getting rid of "__1" in urls

Author Message

Deane Barker

Wednesday 24 August 2005 1:58:57 pm

I had two objects named the same thing ("residential") in the same location in the subtree. So the URL for the second object is:

/residential__1

I deleted the first one, but the second one still has the "__1" suffix on it.

How can I get rid of this and have it revert to just "residential"? I need to somehow tell the system that the first node named "residential" is gone and the second node can use that namespace now.

Deane

Mark Marsiglio

Wednesday 24 August 2005 5:22:41 pm

I think you just need to run the updateniceurls.php script in the updates/common/scripts folder. Look in the upgrade docs for syntax to run (can't remember which version it was in - probably 3.5)

or here - http://ez.no/community/forum/developer/update_common_scripts/re_update_common_scripts

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

Deane Barker

Thursday 25 August 2005 12:37:06 pm

Thanks for the response, Mark. Sadly, that didn't change anything.

Xavier Dutoit

Friday 26 August 2005 12:13:07 am

Have you emptied the trash ?

When you delete an object and put it into the trash, it keeps its url (/residential).

Erase it from the cache and it should do the trick.

Alternatively, you could rename residential (with url __1) to temp save, and then change it again to residential. The url shouldn't have the __1 at the end.

X+

http://www.sydesy.com

Deane Barker

Friday 26 August 2005 7:28:04 am

Yeah, emptied the trash, cleared the cache, edited and saved the object, cleared the cache again, ran the update script again, cleared the cache again...nothing.

I just won't let go of that URL.

Nathan Kelly

Monday 10 October 2005 12:19:29 am

Had the same problem, Xavier's idea worked perfectly, just change the name of the node then clear cache, trash and drafts then rename it to the original.

Problem solved!

Pardon me while I burst into flames...

Bruce Morrison

Monday 10 October 2005 4:48:12 pm

Can someone from eZ add this to the FAQs??? and make them visiable in the community section of the site instead of being hidden under Products?

http://ez.no//products/ez_publish_cms/documentation/faq

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

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 19:18:19
Script start
Timing: Jan 18 2025 19:18:19
Module start 'layout'
Timing: Jan 18 2025 19:18:19
Module start 'content'
Timing: Jan 18 2025 19:18:20
Module end 'content'
Timing: Jan 18 2025 19:18:20
Script end

Main resources:

Total runtime0.7273 sec
Peak memory usage4,096.0000 KB
Database Queries75

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 589.0234152.6250
Module start 'layout' 0.00710.0031 741.648439.4453
Module start 'content' 0.01020.7154 781.0938710.1953
Module end 'content' 0.72560.0016 1,491.289116.1797
Script end 0.7272  1,507.4688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.5009160.0002
Check MTime0.00160.2230160.0001
Mysql Total
Database connection0.00090.124610.0009
Mysqli_queries0.644988.6721750.0086
Looping result0.00090.1227730.0000
Template Total0.695895.720.3479
Template load0.00190.256420.0009
Template processing0.693995.411620.3469
Template load and register function0.00010.015110.0001
states
state_id_array0.00040.057110.0004
state_identifier_array0.00140.186720.0007
Override
Cache load0.00160.2184370.0000
Sytem overhead
Fetch class attribute can translate value0.00090.119550.0002
Fetch class attribute name0.00140.1990120.0001
XML
Image XML parsing0.01191.640450.0024
class_abstraction
Instantiating content class attribute0.00000.0037140.0000
General
dbfile0.01071.4758390.0003
String conversion0.00000.001040.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
7content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 27
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs