Skip to content

Pre existing parameters not appearing, but still exist in database #22

Description

@AndyL123

Describe the bug

iFrame instances with parameters no longer appear to have any parameters (on Parameters tab) although they still exist in database (IFrame_Parameters table).

To Reproduce

  1. Go to an iFrame module which had parameters defined
  2. Access 'Edit Options'
  3. Check Parameters tab

Expected behavior

Pre-existing parameters still to be there and operable.

Screenshots

Error log

Attempting to re add a parameter fails (but could be because it already exists?) with:

Error: is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Modules.IFrame.Components.ParametersInfo.get_PortalInfo() --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] index) at PetaPoco.Database.PrepareExecuteInsert(String tableName, String primaryKeyName, Boolean autoIncrement, Object poco, PocoData pd, List1 names, List1 values, IDbCommand cmd) at PetaPoco.Database.ExecuteInsert(String tableName, String primaryKeyName, Boolean autoIncrement, Object poco) at PetaPoco.Database.Insert(Object poco) at DotNetNuke.Data.RepositoryBase`1.Insert(T item) at DotNetNuke.Modules.IFrame.Components.ParametersController.AddParameter(ParametersInfo parameter) at DotNetNuke.Modules.IFrame.UI.IframeOptions.UpdateParameterButton_Click(Object sender, EventArgs e) --- End of inner exception stack trace ---

Additional context

This is on DNN 9.4.1 with iFrame 8.1.2 - but I believe it started at DNN 9.4.0 with iFrame 8.1.1 (Ok at DNN 9.3.2, iFrame 8.1.1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions