folders objects unaccessible - duplicate key violates unique constraints ezurlalias1051_key (postgres)

Author Message

Baur Aibek

Sunday 28 March 2004 9:17:50 pm

hi people

i have multiple sites single installation of EZpublish 3.3-3 (Postgres, FreeBSD)

some times when i create folder or another objects they are not accesses via alias

for example i have several folder in root folder.
some of them work fine but some of them are not accessed

site/index.php/site_admin/node_56 - error module not found
site/index.php/site_admin/content/view/full/56 - works

i can edit the folder but can't view it.
i cudn't find any regularity, pattern or rule of the error occurence.
only possible solution for now is to remove the folder and create it again, but this also works only in some cases.

i've found out that there the error is also shown in postgres log : duplicate key violates unique constraints ezurlalias1051_key.

seems to me the problem is with table ezurlalias

cud u please say what to do?

or at least please explain how this alias allocation works, which php script inesrts into ezurlalias table and what logic is base of alias and url objects or any other tips. may be it'll help to find solution.

Baur Aibek

Saturday 03 April 2004 1:37:49 am

<b>sequence.sql.template</b> - solved the problem.

run sequence.sql.template, but:
take into account that first select is just an example
and the second is generating list of select expressions.
remove both.

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 06:15:00
Script start
Timing: Jan 31 2025 06:15:00
Module start 'layout'
Timing: Jan 31 2025 06:15:00
Module start 'content'
Timing: Jan 31 2025 06:15:00
Module end 'content'
Timing: Jan 31 2025 06:15:00
Script end

Main resources:

Total runtime0.0151 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.0052 588.6328151.2734
Module start 'layout' 0.00520.0038 739.906336.8203
Module start 'content' 0.00900.0046 776.726690.1406
Module end 'content' 0.01360.0015 866.867229.9922
Script end 0.0151  896.8594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002315.2011140.0002
Check MTime0.00106.9288140.0001
Mysql Total
Database connection0.00149.137010.0014
Mysqli_queries0.002919.461630.0010
Looping result0.00000.178010.0000
Template Total0.00117.210.0011
Template load0.00085.476510.0008
Template processing0.00031.710510.0003
Override
Cache load0.00063.898310.0006
General
dbfile0.00031.669680.0000
String conversion0.00000.061440.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