Publish Later module throws an exception

Topics: Troubleshooting
May 8, 2012 at 5:31 PM


I am  getting an exception while using Publish Later module. This is what I get -


Server Error in '/' Application.

Sequence contains more than one element

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: Sequence contains more than one element

Source Error:

Line 31:         else {
Line 32:             <img class="icon" src="@Href("~/Modules/Orchard.PublishLater/Content/Admin/images/scheduled.gif")" alt="@T("Scheduled")" title="@T("The page is scheduled for publishing")" /><text>  @T("Scheduled") </text>
Line 33:             @Display.DateTime(((DateTime?)Model.ScheduledPublishUtc).Value.ToLocalTime(), T("M/d/yyyy h:mm tt"))
Line 34:         }&nbsp;&#124;&nbsp;</li>
Line 35:     }

Can anyone please shed some light on this?

May 8, 2012 at 5:36 PM

It looks like an old bug which has been fixed in 1.4. What version are you using ?

May 8, 2012 at 6:32 PM

I am using 1.4 only.

May 8, 2012 at 6:39 PM

I checked and it has been fixed in 1.4.1, at revision number 8c07a05b3c8d.

May 8, 2012 at 6:58 PM

ok, thanks. I'll try to re fetch the latest module and see if that resolves the issue.