DNNCommunity / DNNCommunity/DNN.Media

[BUG] Module (view control) throws exception under DNN 10.2.1

Open
#40 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
3
Forks
5
PR merge metrics
No merged PRs in 30d

Description

## Describe the bug
A Media module 5.0.0 instance, that was previously configured to show an image, and was working OK under DNN 9.13.6, now throws an exception when the site is upgraded to DNN 10.2.1

## Software Versions
- DNN: 10.02.01
- Media Module: 05.00.00

## Expected behavior
The module should render the configured image when running in a DNN 10.x site.

## Error log

**ModuleId**:10968
**ModuleDefId**:160
**FriendlyName**:Contact Information
**ModuleControlSource**:DesktopModules/Media/MediaModule.ascx
**AbsoluteURL**:/Default.aspx
**DefaultDataProvider**:DotNetNuke.Data.SqlDataProvider, DotNetNuke
**ExceptionGUID**:6ff94e0f-bbc8-4b22-b86c-4a9a85858a91
**AssemblyVersion**:10.2.1
**PortalId**:16
**UserId**:22
**TabId**:349
**RawUrl**:/Contact-Information
**Referrer**:https://dnn-test.company.com/
**UserAgent**:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36
**ExceptionHash**:UtSVPDzUeysw2t2UYh0MvAqZEwo=
**Message**:Method not found: 'DotNetNuke.Entities.Portals.PortalSettings DotNetNuke.Entities.Portals.PortalController.GetCurrentPortalSettings()'.
**StackTrace**:
**InnerMessage**:Method not found: 'DotNetNuke.Entities.Portals.PortalSettings DotNetNuke.Entities.Portals.PortalController.GetCurrentPortalSettings()'.
**InnerStackTrace**:
at DotNetNuke.Modules.Media.MediaInfo.get_WebFriendlyUrl()
at DotNetNuke.Modules.Media.MediaMarkUpUtility.GetImageMarkUp(MediaInfo Media, ModuleInfo ModuleConfig)
at DotNetNuke.Modules.Media.MediaController.DisplayMedia(Int32 moduleId, Int32 tabId, Boolean isEditable, ModuleInfo config, PortalSettings settings)
at DotNetNuke.Modules.Media.MediaModule.BindData()
at DotNetNuke.Modules.Media.MediaModule.Page_Load(Object sender, EventArgs e)
**Source**:
**FileName**:
**FileLineNumber**:0
**FileColumnNumber**:0
**Method**:

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.