DNNCommunity / DNNCommunity/DNN.Blog

Blog Module and Site Groups

Open
#187 0 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
39
Forks
41
PR merge metrics
No merged PRs in 30d

Description

## Describe the bug
Blog Module 6.5.2 doesn't work with Site Groups.

## Software Versions
- DNN: 09.09.01
- Module: 06.05.02

## To Reproduce
Steps to reproduce the behavior:
1. Create a site group with two sites(A&B) in it
2. Add blog module to a site A
3.GO to Site B and try to add Blog Modules from Site A
4. After adding the module: A critical error has occurred. Please check the Admin Logs for further details.

The Admin Log shows 4 errors, the first of which is shown below. Notice that it's looking for data in Portals\1\Blogs\Data. The blog module is in /Portals/0 as this is part of a Site broup

Check
08/30/2021 14:49:51
General Exception
host
A
AbsoluteURL /Default.aspx DefaultDataProvider DotNetNuke.Data.SqlDataProvi

AbsoluteURL:/Default.aspx

DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke

ExceptionGUID:7f7c5773-aff4-4db4-b16a-f3b0af20a4bb

AssemblyVersion:

PortalId:-1

UserId:-1

TabId:-1

RawUrl:

Referrer:

UserAgent:

ExceptionHash:5H7VA/8H30wCvj19Hp7yi9rIyDg=

Message:Could not find a part of the path 'C:\Users\Joe\Documents\Websites\dnn.9.9.1\Website\Portals\1\Blog\Files\2\164'.

StackTrace:

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileSystemEnumerableIterator`1.CommonInit()
at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost)
at System.IO.DirectoryInfo.InternalGetFiles(String searchPattern, SearchOption searchOption)
at DotNetNuke.Modules.Blog.Integration.BlogModuleController.CheckupOnImportedFiles(Int32 moduleId)
at DotNetNuke.Modules.Blog.Blog.Page_Init1(Object sender, EventArgs e)
at System.Web.UI.Control.OnInit(EventArgs e)
at DotNetNuke.Entities.Modules.PortalModuleBase.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.AddedControl(Control control, Int32 index)
at DotNetNuke.UI.Modules.ModuleHost.InjectModuleContent(Control content)
at DotNetNuke.UI.Modules.ModuleHost.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
at DotNetNuke.UI.Containers.Container.get_ModuleControl()
at DotNetNuke.UI.Containers.Container.ProcessModule()
at DotNetNuke.UI.Skins.Pane.InjectModule(ModuleInfo module)

InnerMessage:

InnerStackTrace:

Source:mscorlib

FileName:

FileLineNumber:0

FileColumnNumber:0

Method:

Server Name: Surface-Joe

## Expected behavior
Module should find the Site Group module

## Screenshots
If applicable, add screenshots to help explain your problem.

## Error log
**Note: Debug DLL's**
Please replace the current extension DLL's with the debug DLL's (if these are available with the release) and reproduce the error with the debug DLL's before pasting the error log.

Paste the error log that is related to this issue.

## Additional context
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.