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 6: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 5: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/16/2008 9:04 PM
 

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/16/2008 9:08 PM
 

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


Chris Hammond
Director of Training Programs, DotNetNuke Corp.


I raising money for TeamLIVESTRONG, if you found my forum post helpful, perhaps you'd like to donate to my ride.
Benefiting LiveStrong
 
New Post
5/30/2008 6: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


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

Attend A Webinar
Free Demo Site
Download DotNetNuke Professional Edition Trial
Have Someone Contact Me
Have Someone Contact Me
Charlotte DoDNN

Like Us on Facebook Join our Network on LinkedIn Follow DNN Corporate on Twitter Follow DNN on Twitter

Advertisers

r2integrated
Telerik JustCode Free
Exact Target Exec Alert

DotNetNuke Scoop!

Sponsors

DotNetNuke Corporation

DotNetNuke Corp. is the steward of the DotNetNuke open source project, the most widely adopted Web Content Management Platform for building web sites and web applications on Microsoft. Organizations use DotNetNuke to quickly develop and deploy interactive and dynamic web sites, intranets, extranets and web applications. The DotNetNuke platform is available in a free Community and subscription-based Professional and Enterprise Editions with an Elite Support option. DotNetNuke Corp. also operates the DotNetNuke Store where users purchase third party apps for the platform.