Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Open Core Testi...Open Core Testi...DNN 8 Beta: Error with Html.HtmlTextController.GetWorkflowDNN 8 Beta: Error with Html.HtmlTextController.GetWorkflow
Previous
 
Next
New Post
12/21/2015 12:38 AM
 

I get an odd set of errors in the new DNN 8 beta when I make some updates.

Error: DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Modules.Html.HtmlTextController.GetWorkflow(Int32 ModuleId, Int32 TabId, Int32 PortalId) at DotNetNuke.Modules.Html.HtmlModule.OnInit(EventArgs e) --- End of inner exception stack trace ---

An error has occurred. DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Modules.Html.HtmlTextController.GetWorkflow(Int32 ModuleId, Int32 TabId, Int32 PortalId) at DotNetNuke.Modules.Html.HtmlModule.get_ModuleActions() at DotNetNuke.UI.Modules.ModuleInstanceContext.LoadActions(HttpRequest request) at DotNetNuke.UI.Modules.ModuleInstanceContext.get_Actions() at DotNetNuke.UI.Containers.ActionBase. (EventArgs e) --- End of inner exception stack trace ---
Error: DotNetNuke.Services.Exceptions.ModuleLoadException: The UPDATE statement conflicted with the FOREIGN KEY constraint "FK_HtmlText_WorkflowStates". The conflict occurred in database "GotThisIdea", table "dbo.WorkflowStates", column 'StateID'. The statement has been terminated. ---> System.Data.SqlClient.SqlException: The UPDATE statement conflicted with the FOREIGN KEY constraint "FK_HtmlText_WorkflowStates". The conflict occurred in database "GotThisIdea", table "dbo.WorkflowStates", column 'StateID'. The statement has been terminated. at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at PetaPoco.Database.Execute(String sql, Object[] args) at DotNetNuke.Data.PetaPoco.PetaPocoHelper.ExecuteNonQuery(String connectionString, CommandType type, String sql, Object[] args) at DotNetNuke.Modules.Html.Components.DataProvider.UpdateHtmlText(Int32 ItemID, String Content, String Summary, Int32 StateID, Boolean IsPublished, Int32 LastModifiedByUserID) at DotNetNuke.Modules.Html.HtmlTextController.UpdateHtmlText(HtmlTextInfo htmlContent, Int32 MaximumVersionHistory) at DotNetNuke.Modules.Html.HtmlTextController.GetTopHtmlText(Int32 moduleId, Boolean isPublished, Int32 workflowId) at DotNetNuke.Modules.Html.HtmlModule. (EventArgs e) --- End of inner exception stack trace ---

David O'Leary
Efficion Consulting
 
New Post
12/21/2015 6:01 AM
 
it looks like there is missing a workflow state in your database.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
12/21/2015 11:50 AM
 

I have 2 sites that I've upgraded for the last 4 or so releases and they both have the same data in the WorkflowStates table:

StateID    WorkflowID    StateName    Order    IsActive    Notify
1    1    Published    1    1    0
2    2    Draft    1    1    0
3    2    Published    3    1    0

What should they have?

David O'Leary
Efficion Consulting
 
New Post
12/28/2015 6:04 PM
 
I just logged this upgrade bug with the DNN bug-tracker. I get it also after I upgraded from a 1 page v7 test site. In view mode, the content of the page disappears and have a blank page, but in edit mode I get the same error.
 
New Post
12/29/2015 9:06 AM
 
We have identified the issue and patched it in the main dev branch.  The team is looking into a temporary sql script which would solve the issue for those who upgraded to the beta.

Joe Brinkman
DNN Corp.
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Open Core Testi...Open Core Testi...DNN 8 Beta: Error with Html.HtmlTextController.GetWorkflowDNN 8 Beta: Error with Html.HtmlTextController.GetWorkflow


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out