CodeGarden 10: The sixth annual Umbraco Developer Conference
June 23-25th 2010 - free ASP.NET MVC pre-conference. Register today!

'publish at' date not working

12/18/2009 4:17:11 AMAvatarLisa PhillipsLocation: Aucklandposts: 6Karma: 26

Hi there,

The website we've created will not publish on the date/time that we set. I have looked on the internet and seen that this was an issue that was raised and closed:

umbraco.codeplex.com/.../View.aspx?...Id=22816

1. Create a new folder
2. Add in our content
3. Press 'SAVE' in Properties
4. Set a date and time for this to publish.

What we've found is that going back into Umbraco, this does not publish and it removes the 'Publish At' date.

We've even tried publishing and unpublishing, then setting a date, (in case it was an issue with just saving).

Nothing seems to work.

Site is on Umbraco 4.0.3, and across two servers. (Neither of which show the folder as published).

Any help would be appreciated.

Thanks

Lisa

12/18/2009 12:17:30 PMAvatarLee KelleherLocation: Yatton, Bristol, UKposts: 451Karma: 1332
Comment with ID: 21620

Hi Lisa,

Swap around the last two steps:

  1. Create the content page
  2. Set the date/time "Publish at"
  3. Save the content (do not "Save and Publish")

It took me a while to figure out, NOT to press the "Save and Publish" button ... just Save it.

Good luck, Lee.

12/20/2009 10:21:43 PMAvatarLisa PhillipsLocation: Aucklandposts: 6Karma: 26
Comment with ID: 21688

Hi Lee,

Thanks for the advise. I tried that, but what happens is:

1. Create the content folder
2. Update the content
3. Set the date/time "Publish at"
4. Hit Save

After the date/time has passed, going back into Umbraco the folder is still unpublished, and the 'Last Edited' time is when I saved it, but the "Publish at" field is now empty.  The "Publish at" date is in the field up until the time set for it to publish. Its like it recognises once that date/time has occured and the date is then reset/removed, but the folder still does not publish.

Thanks

Lisa

12/21/2009 5:27:10 AMAvatarskiltzLocation: Wellington, New Zealandposts: 239Karma: 289
Comment with ID: 21699

You could possibly look in the UmbracoLog  database table and see if there is any errors in there.

12/21/2009 7:22:05 AMAvatarSebastiaan JanssenLocation: 2584GJ, The Hague, The Netherlandsposts: 572Karma: 1358
Comment with ID: 21701

It seems that this is a problem in 4.0.3, Calvin and Mat are having the same issue in this thread: our.umbraco.org/.../5934-Date-Picker-doesn't-work

 

12/22/2009 10:48:20 PMAvatarRodskeLocation: Auckland, New Zealandposts: 31Karma: 36
Comment with ID: 21831

I've had the same issue with sites on our NLB.

I don't think it relates to the "Date picker doesn't work" thread because the date is actually correctly save and able to be reloaded during the time before the "Publish At" date is hit.

12/22/2009 11:16:45 PMAvatarRodskeLocation: Auckland, New Zealandposts: 31Karma: 36
Comment with ID: 21833

The issue I get is...

Error publishing node: System.TypeInitializationException: The type initializer for 'umbraco.cms.businesslogic.datatype.controls.Factory' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object. at umbraco.BusinessLogic.Utils.TypeFinder.FindClassesOfType[T](Boolean useSeperateAppDomain) at umbraco.cms.businesslogic.datatype.controls.Factory.Initialize() at umbraco.cms.businesslogic.datatype.controls.Factory..cctor() --- End of inner exception stack trace --- at umbraco.cms.businesslogic.datatype.DataTypeDefinition.get_DataType() at umbraco.cms.businesslogic.property.Property.MakeNew(PropertyType pt, Content c, Guid versionId) at umbraco.cms.businesslogic.Content.createNewVersion() at umbraco.cms.businesslogic.web.Document.PublishWithResult(User u) at umbraco.cms.businesslogic.web.Document.Publish(User u) at umbraco.presentation.publishingService.CheckPublishing(Object sender)

The app pool has standard parameters (1 web garden), except for Identity, where we use an Active Directory user for integrated authentication to the db and umbracoUseDirectoryUrls & umbracoHideTopLevelNodeFromPath is set to true.

1/6/2010 8:31:49 PMAvatarMatthew TaylorLocation: Buffalo, NYposts: 2Karma: 22
Comment with ID: 22661

Hello,

We are having the same problem with load balanced 4.0.3 install.

We have updated Umbraco from 4.0.2 to the nightly release that was posted in the "Date picker doesn't work" thread. The update did not fix the issue with the "Publish at" feild going blank and the content remaining unpublished after the date/time has passed.

We were having a similar problem with the "Remove at" not unpublishing content properly but that appears to have been fixed after performing update.

2/8/2010 10:08:35 PMAvatarGareth EvansLocation: Auckland, New Zealandposts: 4Karma: 24
Comment with ID: 25718

We are having the same or a similar problem with two IIS7.5 (2008 R2) web nodes load balancing.

We've set up the balancing correctly as everything is being published when you do it by hand.

I've observed that the items appear to be published, but are not actually publsihed when I go to the live site.

We have definitely upgraded to 4.0.3, as we did this on all (40 or so) umbraco instances to fix this specific issue - which the release notes indicated was fixed.

I can't see anything in umbracoLog but I do see this quite frequently:

Error removing node from umbraco index: 'System.IO.IOException: No sub-file with id _10c.f12 found     at Lucene.Net.Index.CompoundFileReader.OpenInput(String id)     at Lucene.Net.Index.SegmentReader.OpenNorms(Directory cfsDir)     at Lucene.Net.Index.SegmentReader.Initialize(SegmentInfo si)     at Lucene.Net.Index.SegmentReader.Get(Directory dir, SegmentInfo si, SegmentInfos sis, Boolean closeDir, Boolean ownDir)     at Lucene.Net.Index.IndexReader.AnonymousClassWith.DoBody()     at Lucene.Net.Store.Lock.With.Run()     at Lucene.Net.Index.IndexReader.Open(Directory directory, Boolean closeDirectory)     at umbraco.cms.businesslogic.index.Indexer.ContentIndexReader()     at umbraco.cms.businesslogic.index.Indexer.RemoveNode(Int32 Id)'

Which I don't think is related.

The "hotfix" linked to from the linked post above (which is just a nightly build) is now 404'ing.

Gareth

2/9/2010 8:45:59 AMAvatarSebastiaan JanssenLocation: 2584GJ, The Hague, The Netherlandsposts: 572Karma: 1358
Comment with ID: 25742

I don't have a solution for the publish at problem, however Gareth, you might want to consider installing Win2008 SP2 on your server as it seems to have fixed the indexing problem you're having. After the install run /umbraco/reindex.aspx to fix your indexes. 

2/12/2010 4:50:35 AMAvatarGareth EvansLocation: Auckland, New Zealandposts: 4Karma: 24
Comment with ID: 26151

Didn't think of this, but until this problem is fixed with publishing content - this is what i've done...

added a new date field to my document type

wrote xslt to only show the items which should be published

and published everything

<xsl:variable name="currentDate" select="umbraco.library:CurrentDate()"/>
<xsl:variable name="articleDate" select="$currentPage/data[@alias='showContentIfAfter']"/>

<xsl:if test="(string($articleDate) = '' or (string($articleDate) != '' and umbraco.library:DateGreaterThan($currentDate, $articleDate)))">

 

Pages:

Please login or Sign up To post replies