updateniceurls.php and __1

Author Message

Grégoire Paris

Thursday 09 October 2008 6:44:42 am

Hello,
I'm trying to fix a problem with ugly urls on a website using eZ Publish 3.6.1
Some url are ending with __1, so I wrote a shell script in order to list them, and see which are caused by duplicates, and which are not. Here is the SQL request the script is performing

SELECT chemin_version_$DBSUP
        EXISTS (	SELECT path_identification_string
		FROM $DBSOURCE.ezcontentobject_tree  
		WHERE path_identification_string LIKE SUBSTRING(chemin_version_$DBSUP,1,LENGTH(chemin_version_$DBSUP)-3)) AS doublon
FROM (
            SELECT path_identification_string AS chemin_version_$DBSUP
            FROM $DBSOURCE.ezcontentobject_tree
            WHERE path_identification_string LIKE '%\_\_1'
            ) AS tab_1;

I ran my script before and after running updateniceurl.php and only one path was fixed. I tried analysing the code, but I could not understand the code in ezchartransform.php...
So the question is : Is my request good enough to detect duplicates I should delete before running updateniceurls.php (i.e. is there another table I should check) ? Or is there a bug which makes this difficult to fix?

EDIT : For one of these objects with __1 in their alias, removing the __1 resulted in a redirection to another node in the same directory :s:s:s
Thanks in advance for your help.

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

Main resources:

Total runtime0.0191 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.0067 589.0234152.6250
Module start 'layout' 0.00670.0034 741.648439.4453
Module start 'content' 0.01010.0069 781.093889.4141
Module end 'content' 0.01690.0022 870.507830.3047
Script end 0.0191  900.8125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002714.0376140.0002
Check MTime0.00126.1597140.0001
Mysql Total
Database connection0.00084.304310.0008
Mysqli_queries0.003216.792030.0011
Looping result0.00000.188310.0000
Template Total0.00178.710.0017
Template load0.00094.670910.0009
Template processing0.00084.032510.0008
Override
Cache load0.00063.032510.0006
General
dbfile0.002412.799480.0003
String conversion0.00000.073640.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