Skip to content

[Bug]: Cannot create a website #7425

Description

@b-creative

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

When trying to create a default or blank website, it gives the error:

The element 'settings' has invalid child element 'allowjsinhtmlmodule'. List of possible elements expected: 'siteloghistory, showquickmoduleaddmenu, dataconsentdelay, cookiemorelink, expirydate, dataconsentuserdeleteaction, timezoneoffset, dataconsentconsentredirect, hostfee, dataconsenttermslastchange, timetoautosave, enableautosave, currency, dataconsentactive, allowuseruiculture, enablebrowserlanguage, paymentprocessor, backgroundfile, dataconsentdelaymeasurement'.

This error is not visible in the Admin log.

It doesn't matter wether you choose a different language...

Steps to reproduce?

  1. Go to Manage>Sites
  2. Click on Add New Site
  3. Fill in the desired title and URL, and choose a website template
  4. Click on Create website
  5. You'll see an errorImage

The element 'settings' has invalid child element 'allowjsinhtmlmodule'. List of possible elements expected: 'siteloghistory, showquickmoduleaddmenu, dataconsentdelay, cookiemorelink, expirydate, dataconsentuserdeleteaction, timezoneoffset, dataconsentconsentredirect, hostfee, dataconsenttermslastchange, timetoautosave, enableautosave, currency, dataconsentactive, allowuseruiculture, enablebrowserlanguage, paymentprocessor, backgroundfile, dataconsentdelaymeasurement'.
6. the website is not created

Current Behavior

No response

Expected Behavior

That a website is created

Relevant log output

The element 'settings' has invalid child element 'allowjsinhtmlmodule'. List of possible elements expected: 'siteloghistory, showquickmoduleaddmenu, dataconsentdelay, cookiemorelink, expirydate, dataconsentuserdeleteaction, timezoneoffset, dataconsentconsentredirect, hostfee, dataconsenttermslastchange, timetoautosave, enableautosave, currency, dataconsentactive, allowuseruiculture, enablebrowserlanguage, paymentprocessor, backgroundfile, dataconsentdelaymeasurement'.

Anything else?

I tried to deselect the 'Allow Javascript in HTML Module'.
Image

This causes this portalsetting to appear in db table dbo.PortalSettings with a value False.
Image

After this I tried again but that doesn't do anything.

In DNN 10.3.2 there's no such setting... and I also just tested: creating a new site is no problem.

Workaround

Triggered by this discussion, I opened Blank Website.template and I deleted the setting <allowjsinhtmlmodule>False</allowjsinhtmlmodule>. After this I was able to create a website...

Affected Versions

10.3.3 (latest release)

What browsers are you seeing the problem on?

Chrome

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions