contribution "Archive"

Author Message

Aurore Hublé

Monday 30 October 2006 12:15:22 am

Hi,

I have a problem with the contribution archive (move object outdated). It runs well on 3.7 but not on 3.8.
This code seems not work :

$nodes =& eZContentObjectTreeNode::subTree( array( 'ClassFilterType' => 'include',
                                                       'ClassFilterArray' => $classIDList), $subtreeNodeIDList ); 
echo(count($nodes)); 

return zero.

Anybody have the same problem ?

Łukasz Serwatka

Monday 30 October 2006 12:32:14 am

It was created and tested under 3.8.x. First check if:

- $classIDList - must be an array with class ids or identifiers
- $subtreeNodeIDList - must be an integer of your subtree

Perhaps your ini settings are wrong, typo?

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Aurore Hublé

Monday 30 October 2006 12:38:06 am

There are with goods values.
And

nodes =& eZContentObjectTreeNode::subTree( false, $subtreeNodeIDList ); 

gives the same result

Łukasz Serwatka

Monday 30 October 2006 12:40:54 am

Which version of 3.8 do you have installed? I will test it.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Łukasz Serwatka

Monday 30 October 2006 1:06:16 am

FYI: It works fine with trunk rev. 17317 (3.9.0beta1)

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Aurore Hublé

Monday 30 October 2006 1:21:04 am

I have 3.8.0.

Aurore Hublé

Tuesday 31 October 2006 3:12:24 am

ok it's runs !

I definitly understand nothing to cronjob. I add in cronjob.ini:

[CronjobSettings]
ExtensionDirectories[]=archive
Scripts[]=archive.php

[CronjobPart-archive]
Scripts[]
Scripts[]=archive.php

And it works... Magic

Łukasz Serwatka

Tuesday 31 October 2006 7:10:00 am

Did you enable extension in site.ini.append.php or via admin interface? Those settings are set in extension and you don't need to change it. Only what you have to do to enabled extension and change content.ini.append.php in extension settings.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Aurore Hublé

Thursday 02 November 2006 12:52:48 am

I enabled extension via admin interface.

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 03:32:10
Script start
Timing: Jan 31 2025 03:32:10
Module start 'layout'
Timing: Jan 31 2025 03:32:10
Module start 'content'
Timing: Jan 31 2025 03:32:11
Module end 'content'
Timing: Jan 31 2025 03:32:11
Script end

Main resources:

Total runtime1.2306 sec
Peak memory usage8,192.0000 KB
Database Queries75

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 588.0313151.1953
Module start 'layout' 0.00520.0050 739.2266220.6563
Module start 'content' 0.01021.2197 959.88284,511.3203
Module end 'content' 1.22990.0006 5,471.203115.8750
Script end 1.2305  5,487.0781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.3129160.0002
Check MTime0.00140.1109160.0001
Mysql Total
Database connection0.00090.072310.0009
Mysqli_queries1.128791.7198750.0150
Looping result0.00060.0489730.0000
Template Total1.175495.520.5877
Template load0.00240.196020.0012
Template processing1.172995.317720.5865
Template load and register function0.00130.108510.0013
states
state_id_array0.00220.181010.0022
state_identifier_array0.00200.166220.0010
Override
Cache load0.00200.1633380.0001
Sytem overhead
Fetch class attribute can translate value0.00200.161720.0010
Fetch class attribute name0.00190.1565100.0002
XML
Image XML parsing0.00070.059320.0004
class_abstraction
Instantiating content class attribute0.00000.0022130.0000
General
dbfile0.00170.1358180.0001
String conversion0.00000.000840.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
9content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
14content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 35
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs