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.
|