Skip to content

After PR #70 logs are full of errors with a missing sql field on SubjectPlacehold and others #74

Description

@valadas

Describe the bug

Placeholders were implemented in #70 and they work fine, however this is a form setting and does not exists in FeedbackInfo, so where trying to read those from each feedback item in the database, it fails filling up the logs.

Software Versions

  • DNN: 10.01.01
  • Module: 06.08.00

To Reproduce

Steps to reproduce the behavior:

  1. Install module
  2. Edit de settings to your desires
  3. Submit a feedback

Expected behavior

No errors should get logged.

Error log

Note: Debug DLL's

2025-10-14 00:00:16,510 [********][Thread:42][ERROR] DotNetNuke.Services.Exceptions.Exceptions - System.IndexOutOfRangeException: SubjectPlaceholder
   at System.Data.ProviderBase.FieldNameLookup.GetOrdinal(String fieldname)
   at System.Data.SqlClient.SqlDataReader.GetOrdinal(String name)
   at System.Data.SqlClient.SqlDataReader.get_Item(String name)
   at DotNetNuke.Modules.Feedback.FeedbackInfo.Fill(IDataReader dr)
   at DotNetNuke.Common.Utilities.CBO.FillObjectFromReader(Object objObject, IDataReader dr)

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