Howto remove drafts and archived versions

Author Message

Massimiliano Collavo

Tuesday 25 November 2008 4:39:51 am

Hi everybody , this is my first post on ez.no

I've a problem with a content versions( ezpublish version 3.10.1)

The system returns this alert when publishing a content.

"Could not make new version.The limit for version history is exceeded, og no archived versions can be removed by the system".

In content.ini I have set DeleteDrafts[]= enabled , but i can't delete the oldest versions, because I don't have access to editing the draft or the published version.

thank's
maxi

Ivo Lukac

Tuesday 25 November 2008 5:35:12 am

Hello,

You can use bin/php/flatten.php to delete old versions.

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Massimiliano Collavo

Tuesday 25 November 2008 7:18:22 am

Thank's Ivo,

I ran the command but didn't work.
Returned a very long error . I am writing here only the last 3 lines.

 

PHP Warning:  Function registration failed - duplicate name - mysql_tablename in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_table_name in Unknown on line 0
PHP Warning:  mysql:  Unable to register functions, unable to load in Unknown on line 0
Missing NAME value ( could be contentobject, contentclass, workflow, role or all )
 

Can you help me, please?

maxi

Ivo Lukac

Wednesday 26 November 2008 6:31:33 am

Did you try it like this?

php bin/php/flatten.php  contentobject 

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

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

Main resources:

Total runtime0.0247 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.0075 588.0469152.6406
Module start 'layout' 0.00750.0025 740.687539.4766
Module start 'content' 0.01000.0119 780.164193.4922
Module end 'content' 0.02190.0028 873.656334.3047
Script end 0.0247  907.9609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002510.2792140.0002
Check MTime0.00114.3928140.0001
Mysql Total
Database connection0.00187.470710.0018
Mysqli_queries0.002711.095030.0009
Looping result0.00000.053110.0000
Template Total0.00208.210.0020
Template load0.00083.421610.0008
Template processing0.00124.794510.0012
Override
Cache load0.00062.458110.0006
General
dbfile0.00020.963580.0000
String conversion0.00000.032840.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