Publish and unpublish new content class

Author Message

Juan Asencio

Tuesday 13 April 2010 6:34:51 am

Hi,

I made a new content class which includes publish and unpublish dates, include the class ID on the content.ini.append.php of my siteaccess, run runcronjobs.php from ez directory, but I'm still no able to unpublish the famous article. I have tried to follow all the nice trades on the forum, but still I can't make it to work.

Any suggestions?

Thanks in advance,

Juan.-

Nicolas Pastorino

Wednesday 14 April 2010 1:18:29 am

Hi Juan!

A few regular questions for a start :

  • Which version of eZ Publish are you running ?
  • Have you properly passed the '-s' option to the runcronjobs.php scripts, making sure the right siteaccess is affected by the unpublish cronjob ?
  • Have you cleared the INI (or all) caches before running the workflow ?

Let us know,
Cheers !

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Gaetano Giunta

Wednesday 14 April 2010 1:34:30 am

Also, are you sure you're running the correct workflows? Which ones are you running?

Principal Consultant International Business
Member of the Community Project Board

Juan Asencio

Tuesday 11 May 2010 2:44:53 am

Guys, thank you for your replies.

Now is working. I was missing the right [UnpublishSettings] on the content.ini.append.php file. After doing my homework and reading the manual (http://ez.no/doc/ez_publish/technical_manual/4_x/features/cronjobs) I got it to work.

Cheers,

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

Main resources:

Total runtime1.1416 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 591.6797152.6406
Module start 'layout' 0.00480.0021 744.320339.4766
Module start 'content' 0.00681.1335 783.7969592.5547
Module end 'content' 1.14040.0012 1,376.351612.1406
Script end 1.1416  1,388.4922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.2629160.0002
Check MTime0.00120.1090160.0001
Mysql Total
Database connection0.00070.064810.0007
Mysqli_queries1.092495.6872630.0173
Looping result0.00050.0466610.0000
Template Total1.106296.920.5531
Template load0.00200.174420.0010
Template processing1.104296.721920.5521
Template load and register function0.00010.010310.0001
states
state_id_array0.00060.054710.0006
state_identifier_array0.01151.004520.0057
Override
Cache load0.00170.1486260.0001
Sytem overhead
Fetch class attribute can translate value0.00050.047230.0002
Fetch class attribute name0.00180.156460.0003
XML
Image XML parsing0.00110.095130.0004
class_abstraction
Instantiating content class attribute0.00000.001160.0000
General
dbfile0.00080.0665220.0000
String conversion0.00000.000540.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/li.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/li.tplEdit templateOverride template
1content/datatype/view/ezxmltags/ul.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ul.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 9

Time used to render debug report: 0.0001 secs