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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Import Module Definition in DNN 4.8 impossibelImport Module Definition in DNN 4.8 impossibel
Previous
 
Next
New Post
1/13/2008 10:04 PM
 

I found the problem and the solution!!

There are entries in the ModuleContols table that takes care of the "magic" that I was missing that links the Module Action to the control that should handle it.  In this case, including "Import" in the URL causes the ImportModuleDefintions control to handle the request.  I'm sure many others are aware of this, but I'm a DNN newbie.  Anyway, the fix...

There appears to be a bug in \Providers\DataProviders\SqlDataProvider\04.06.00.SqlDataProvider

The important lines are:

declare @ModuleDefID int

select @ModuleDefID = ModuleDefID
from   {databaseOwner}{objectQualifier}ModuleDefinitions
where  FriendlyName = 'Module Definitions'
IF NOT EXISTS (SELECT ModuleControlID FROM {databaseOwner}{objectQualifier}ModuleControls WHERE ModuleDefID = ModuleDefID AND ControlKey = N'Import')
BEGIN
insert into {databaseOwner}{objectQualifier}ModuleControls ( ModuleDefID, ControlKey, ControlTitle, ControlSrc, IconFile, ControlType, ViewOrder, HelpUrl, SupportsPartialRendering )
values ( @ModuleDefID, 'Import', 'Import Module Definition', 'Admin/ModuleDefinitions/ImportModuleDefinition.ascx', NULL, 3, NULL, NULL, 0 )
END
GO

The "IF NOT EXISTS" line should reference the @ModuleDefID variable.  The unfortunate part is that this error will never throw an error and thus go undetected.  Apparently for a very long time.

So the corrected script is:

declare @ModuleDefID int

select @ModuleDefID = ModuleDefID
from   {databaseOwner}{objectQualifier}ModuleDefinitions
where  FriendlyName = 'Module Definitions'
IF NOT EXISTS (SELECT ModuleControlID FROM {databaseOwner}{objectQualifier}ModuleControls WHERE ModuleDefID = @ModuleDefID AND ControlKey = N'Import')
BEGIN
insert into {databaseOwner}{objectQualifier}ModuleControls ( ModuleDefID, ControlKey, ControlTitle, ControlSrc, IconFile, ControlType, ViewOrder, HelpUrl, SupportsPartialRendering )
values ( @ModuleDefID, 'Import', 'Import Module Definition', 'Admin/ModuleDefinitions/ImportModuleDefinition.ascx', NULL, 3, NULL, NULL, 0 )
END
GO

You'll have to replace the stuff in curly brackets with the settings appropriate to your installation.

Has this bug really gone unnoticed and unfixed since 4.6.0?  Weird.

 
New Post
1/15/2008 9:59 AM
 

Hi,

Did you add the bug in Gemini?

You can find it in http://support.dotnetnuke.com/Main.aspx . Add a bug under DNN Core Framework Public. When you describe the problem (/steps to reproduce),  and include the original and changed code, they normally are verry quick in testing the bug and checking in code.

Thanks,
Leo.

 
New Post
4/17/2008 12:04 AM
 

Has anyone been about to figure this out? I have installed and reinstalled and had my hosting provider install but it seems something is missing. I am not able to import a module. I am using 4.8.0.2. I love DNN and am so frustrated because I have been struggling with this for about 4 weeks. Will someone please have mercy on me?

Thank you.

 
New Post
4/17/2008 12:08 AM
 

dnelson, are you trying to import content into a module, or install a module?


Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
5/30/2008 9:54 AM
 

So i have updatet to 4.8.3 and the bug is already here - You can't import a Module Definition - I'm not as god as tsedon and can change some things in the scripts - so i need a Patch from the MASTERS!!!! Please help

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Import Module Definition in DNN 4.8 impossibelImport Module Definition in DNN 4.8 impossibel


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