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

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...after DNN 7 upgrade I can't add a new module to a page after DNN 7 upgrade I can't add a new module to a page
Previous
 
Next
New Post
12/21/2015 11:35 AM
 

Hello Sebastian,

I restored, updated my Blogmodule which was probably outdated and tried executing TurboDNN again. I still got a catastrophic error- the site is down and I will have to restore: This is the error i got before the crash.


System.Data.SqlClient.SqlException (0x80131904): The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "FK_Feedback_Modules". The conflict occurred in database "dotnetnuke2", table "dbo.Modules", column 'ModuleID'. at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) at System.Data.SqlClient.SqlInternalConnection. (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.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, 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 DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script) ClientConnectionId:cebbb77a-6405-449b-a0c6-9d128113da46 Error Number:547,State:0,Class:16 -- drop AF foregn keys with known issues: IF EXISTS (SELECT * FROM Sys.Foreign_Keys WHERE Parent_Object_id = OBJECT_ID(N'dbo.[activeforums_ForumTopics]') AND name = N'FK_activeforums_ForumTopics_activeforums_Replies') ALTER TABLE dbo.[activeforums_ForumTopics] DROP CONSTRAINT [FK_activeforums_ForumTopics_activeforums_Replies] -- make sure, all constraints are enabled IF (ServerProperty(N'EngineEdition') != 5) --Check for not running on SQL Azure EXEC sp_msforeachtable "ALTER TABLE ? WITH CHECK CHECK CONSTRAINT all" System.Data.SqlClient.SqlException (0x80131904): Cannot find either column "dbo" or the user-defined function or aggregate "dbo.HasChildTab", or the name is ambiguous. at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) at System.Data.SqlClient.SqlInternalConnection. (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.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, 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 DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script) ClientConnectionId:b3d708b3-5513-4232-8537-b71bc1103895 Error Number:4121,State:1,Class:16 IF dbo.[sys_currentDNNVersion]() < 70400 Exec (N' CREATE VIEW dbo.[vw_Tabs] AS SELECT T.TabID, T.TabOrder, T.PortalID, T.TabName, T.ParentId, T.[Level], T.TabPath, T.UniqueId, T.VersionGuid, T.DefaultLanguageGuid, T.LocalizedVersionGuid, T.IsVisible, dbo.FilePath(T.IconFile) AS IconFile, dbo.FilePath(T.IconFileLarge) AS IconFileLarge, T.DisableLink, T.Title, T.Description, T.KeyWords, T.IsDeleted, T.SkinSrc, T.ContainerSrc, T.StartDate, T.EndDate, T.Url, CASE WHEN dbo.HasChildTab(T.TabID) = 1 THEN N''true'' ELSE N''false'' END AS HasChildren, -- I would prefer returning a Bit value T.RefreshInterval, T.PageHeadText, T.IsSecure, T.PermanentRedirect, T.SiteMapPriority, CI.ContentItemID, CI.[Content], CI.ContentTypeID, CI.ModuleID, CI.ContentKey, CI.Indexed, CI.StateID, T.CultureCode, T.CreatedByUserID, T.CreatedOnDate, T.LastModifiedByUserID, T.LastModifiedOnDate FROM dbo.Tabs AS T LEFT JOIN dbo.ContentItems AS CI ON T.ContentItemID = CI.ContentItemID ') ELSE Exec(N' CREATE VIEW dbo.[vw_Tabs] AS SELECT T.TabID, T.TabOrder, T.PortalID, T.TabName, T.ParentId, T.[Level], T.TabPath, T.UniqueId, T.VersionGuid, T.DefaultLanguageGuid, T.LocalizedVersionGuid, T.IsVisible, T.HasBeenPublished, dbo.FilePath(T.IconFile) AS IconFile, dbo.FilePath(T.IconFileLarge) AS IconFileLarge, T.DisableLink, T.Title, T.Description, T.KeyWords, T.IsDeleted, T.SkinSrc, T.ContainerSrc, T.StartDate, T.EndDate, T.Url, CASE WHEN dbo.HasChildTab(T.TabID) = 1 THEN N''true'' ELSE N''false'' END AS HasChildren, -- I would prefer returning a Bit value T.RefreshInterval, T.PageHeadText, T.IsSecure, T.IsSystem, T.PermanentRedirect, T.SiteMapPriority, CI.ContentItemID, CI.[Content], CI.ContentTypeID, CI.ModuleID, CI.ContentKey, CI.Indexed, CI.StateID, T.CultureCode, T.CreatedByUserID, T.CreatedOnDate, T.LastModifiedByUserID, T.LastModifiedOnDate FROM dbo.Tabs AS T LEFT JOIN dbo.ContentItems AS CI ON T.ContentItemID = CI.ContentItemID ') System.Data.SqlClient.SqlException (0x80131904): Cannot find either column "dbo" or the user-defined function or aggregate "dbo.SuperuserTabID", or the name is ambiguous. at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) at System.Data.SqlClient.SqlInternalConnection. (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.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, 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 DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script) ClientConnectionId:aac96bb8-dc03-4682-ab4b-7f9817530b58 Error Number:4121,State:1,Class:16 IF dbo.[sys_currentDNNVersion]() < 70202 Exec(N' CREATE VIEW dbo.[vw_Portals] AS SELECT P.PortalID, P.PortalGroupID, P.PortalName, dbo.[FilePath](P.LogoFile) AS LogoFile, P.FooterText, P.ExpiryDate, P.UserRegistration, P.BannerAdvertising, P.AdministratorId, P.Currency, P.HostFee, P.HostSpace, P.PageQuota, P.UserQuota, P.AdministratorRoleId, P.RegisteredRoleId, P.Description, P.KeyWords, dbo.[FilePath](P.BackgroundFile) AS BackgroundFile, P.GUID, P.PaymentProcessor, P.ProcessorUserId, P.ProcessorPassword, P.SiteLogHistory, U.Email, P.DefaultLanguage, P.TimezoneOffset, P.AdminTabId, P.HomeDirectory, P.SplashTabId, P.HomeTabId, P.LoginTabId, P.RegisterTabId, P.UserTabId, P.SearchTabId, dbo.SuperuserTabID() AS SuperTabId, P.CreatedByUserID, P.CreatedOnDate, P.LastModifiedByUserID, P.LastModifiedOnDate, P.CultureCode FROM dbo.[vw_PortalBase] P LEFT JOIN dbo.[Users] U ON P.AdministratorId = U.UserId ') ELSE Exec (N' CREATE VIEW dbo.[vw_Portals] AS SELECT P.PortalID, P.PortalGroupID, P.PortalName, dbo.FilePath(P.LogoFile) AS LogoFile, P.FooterText, P.ExpiryDate, P.UserRegistration, P.BannerAdvertising, P.AdministratorId, P.Currency, P.HostFee, P.HostSpace, P.PageQuota, P.UserQuota, P.AdministratorRoleId, P.RegisteredRoleId, P.Description, P.KeyWords, dbo.FilePath(P.BackgroundFile) AS BackgroundFile, P.GUID, P.PaymentProcessor, P.ProcessorUserId, P.ProcessorPassword, P.SiteLogHistory, U.Email, P.DefaultLanguage, P.TimezoneOffset, P.AdminTabId, P.HomeDirectory, P.SplashTabId, P.HomeTabId, P.LoginTabId, P.RegisterTabId, P.UserTabId, P.SearchTabId, P.Custom404TabId, P.Custom500TabId, dbo.SuperUserTabID() AS SuperTabId, P.CreatedByUserID, P.CreatedOnDate, P.LastModifiedByUserID, P.LastModifiedOnDate, P.CultureCode FROM dbo.[vw_PortalBase] AS P LEFT JOIN dbo.[Users] AS U ON P.AdministratorId = U.UserID ') System.Data.SqlClient.SqlException (0x80131904): Invalid object name 'dbo.vw_Portals'. at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) at System.Data.SqlClient.SqlInternalConnection. (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.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, 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 DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script) ClientConnectionId:d36e2fdc-6ba2-499b-97da-d6743d9cf07b Error Number:208,State:1,Class:16 -- DNN-4610: Use new helper function IF dbo.[sys_currentDNNVersion]() < 70202 Exec(N' CREATE VIEW dbo.[vw_PortalsDefaultLanguage] AS SELECT PortalID, PortalGroupID, PortalName, LogoFile, FooterText, ExpiryDate, UserRegistration, BannerAdvertising, AdministratorId, Currency, HostFee, HostSpace, PageQuota, UserQuota, AdministratorRoleId, RegisteredRoleId, Description, KeyWords, BackgroundFile, GUID, PaymentProcessor, ProcessorUserId, ProcessorPassword, SiteLogHistory, Email, DefaultLanguage, TimezoneOffset, AdminTabId, HomeDirectory, SplashTabId, HomeTabId, LoginTabId, RegisterTabId, UserTabId, SearchTabId, SuperTabId, CreatedByUserID, CreatedOnDate, LastModifiedByUserID, LastModifiedOnDate, CultureCode FROM dbo.[vw_Portals] WHERE CultureCode = DefaultLanguage ') ELSE EXEC (N' CREATE VIEW dbo.[vw_PortalsDefaultLanguage] AS SELECT PortalID, PortalGroupID, PortalName, LogoFile, FooterText, ExpiryDate, UserRegistration, BannerAdvertising, AdministratorId, Currency, HostFee, HostSpace, PageQuota, UserQuota, AdministratorRoleId, RegisteredRoleId, Description, KeyWords, BackgroundFile, GUID, PaymentProcessor, ProcessorUserId, ProcessorPassword, SiteLogHistory, Email, DefaultLanguage, TimezoneOffset, AdminTabId, HomeDirectory, SplashTabId, HomeTabId, LoginTabId, RegisterTabId, UserTabId, SearchTabId, Custom404TabId, Custom500TabId, SuperTabId, CreatedByUserID, CreatedOnDate, LastModifiedByUserID, LastModifiedOnDate, CultureCode FROM dbo.[vw_Portals] WHERE CultureCode = DefaultLanguage ')

 
New Post
12/23/2015 1:39 PM
 

Hi Sebastian,

sorry to pester you again but here are the last updates: I managed to upgrade my installation to 7.2.2.

After a DB backup I tried once more to execute the TurboDNN742 script in order to fix the permission issue that might be causing the installation vulnerability but I got the same old catastrophic error.

The first time I got  this error: Incorrect syntax near ‘MERGE’. You may need to set the compatibility level of the current database to a higher value to enable this feature. See help for the SET COMPATIBILITY_LEVEL option of ALTER DATABASE. I tried solving the problem by restoring the database (the application worked but the Host-> Extension page was throwing an error) and then by executing this statement on my DB ALTER DATABASE database_name SET COMPATIBILITY_LEVEL = 100

After this I tried running the script again but this time I got this other error The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "FK_Feedback_Modules".

Any idea how to fix this? The sites are up and running but the Host -> Extensions page is still throwing an exception hence I suppose I will have to restore.

 

 
New Post
12/24/2015 6:27 AM
 

Apart from not being able to run the TurboDNN scripts, upgrading to DNN 7.2.2 didn't do any good as far as making the controlbar work.

I checked all the web.config lines dealing with telerik and they all look identical to those appearing in the web.config file of a 7.2.2 New install pack.

I tried using the controlbar on a website that uses the DarkKnight skin which is the default skin for DNN 7.2.2 and I got the same problem so I guess I can rule out the fact of the skin using its own Jquery version too.

I'm out of options at this point. Not that it's a crippling problem but something is sure not working as it should.

I'm going to stick to the RIBBONBAR for the time being hoping I'm not missing out on something important.

Cheers

 
New Post
2/24/2016 6:38 AM
 

Ok, got XXS SQL injected again... tried updating the one module that looked like the possible culprit the e-commerce module I'm using but now I'm stuck due to my previous problem. I still can't add modules to my web pages! Each time I try the stupid poput module window resets itself.

Is there a way to use a less sophisticated method to add modules to a page? Is there a workaround I can use?

Other question: where is the window for assigning premium modules to a website and not to another one gone? I can't seem to find it in the new interface. Could this be the problem? When looking at the website Website Settings -> Host Settings I see I have 105 premium modules checked... whatever that means. Does it mean I can use them on this website?

Please, I need urgent help. The problem seems to have nothing to do with the skin since it's happening with any skin now. I need an urgent workaround cause I'm have empty pages on my main webiste.

Thanks to anyone willing to help

 
New Post
2/24/2016 5:38 PM
 
Edoardo Antonini wrote:

Hi Sebastian,

sorry to pester you again but here are the last updates: I managed to upgrade my installation to 7.2.2.

After a DB backup I tried once more to execute the TurboDNN742 script in order to fix the permission issue that might be causing the installation vulnerability but I got the same old catastrophic error.

The first time I got  this error: Incorrect syntax near ‘MERGE’. You may need to set the compatibility level of the current database to a higher value to enable this feature. See help for the SET COMPATIBILITY_LEVEL option of ALTER DATABASE. I tried solving the problem by restoring the database (the application worked but the Host-> Extension page was throwing an error) and then by executing this statement on my DB ALTER DATABASE database_name SET COMPATIBILITY_LEVEL = 100

After this I tried running the script again but this time I got this other error The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "FK_Feedback_Modules".

Any idea how to fix this? The sites are up and running but the Host -> Extensions page is still throwing an exception hence I suppose I will have to restore.

sorry, I missed this post before.

If Merge fails, the compatibility level of your database is set to SQL Server 2005 or less, please run TurboDBConfig742.sql, it should fix it (you need to be logged in with dbowner permission).

Regarding the "FK_Feedback_Modules" issue, there are items in Feedback table with a ModuleID, which doesn't belong any more to an existing module.

You may fix by running

DELETE FROM dbo.Feedback WHERE ModuleID NOT IN (SELECT ModuleID FROM dbo.Modules)

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...after DNN 7 upgrade I can't add a new module to a page after DNN 7 upgrade I can't add a new module to a page


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