Dnn.platform: 9.7.0 upgrade script does not fire when going from before 9.7.0 to 9.7.1

Created on 10 Sep 2020  路  5Comments  路  Source: dnnsoftware/Dnn.Platform

Description of bug

When upgrading from earlier than 9.7.0 to 9.7.1, the config merge script for 9.7.0 does not fire. This is probably caused by the lack of a 09.07.00.SqlDataProvider because that version did not have sql changes.

Possible workarounds

If you are doing a clean 9.7.1 install

No workaround needed, the normal install works fine.

If you are upgrading from 9.7.0 to 9.7.1

Nothing special is needed, this upgrade path will work.

If you are upgrading from any version before 9.7.0

  • Unzip the upgrade zip and add an empty text file named 09.07.00.SqlDataProvider in the Providers\DataProviders\SqlDataProvider folder.
  • Continue the upgrade as usual

If you have already upgraded to 9.7.1 before encountering this issue

  • Find the web.config file that is located in the root folder of the installation.
  • Create a copy of this file as a backup just in case.
  • Open the original web.config file that is in the root files of the installation in any text editor.
  • In the <sectionGroup name="dotnetnuke"> section add the following line:
<section name="tokens" requirePermission="false" type="DotNetNuke.Framework.Providers.ProviderConfigurationHandler, DotNetNuke" />
  • In the <dotnetnuke> section, add the following lines :
<tokens defaultProvider="CoreTokenProvider">
  <providers>
    <clear />
    <add name="CoreTokenProvider" type="DotNetNuke.Services.Tokens.CoreTokenProvider, DotNetNuke" />
  </providers>
</tokens>

Additional information

Token replace providers are a recent feature (Dnn 9.7.0) and is probably not yet used by many 3rd party modules. But if you do see other configured providers for tokens, you may want to consult with the 3rd party module vendor for instructions on how to best merge this config with theirs.

Affected version

  • [ ] 10.00.00 alpha build
  • [x] 09.07.01 release candidate
  • [ ] 09.07.00 latest supported release
New Bug

All 5 comments

Thank you for figuring this out and documenting the workaround @valadas 馃帀

You are welcome, the PR is in too

Is there a test for this? 馃ぃ

@hismightiness This one is a bit sticky...it was the cause of a prior issue rather than an issue with actual 9.7.1 releases.

Upgrade testing scenarios should/would have caught it

Oh, I know. I was giving David and Daniel a hard time based on a conversation we had from last night. 馃槈

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mnouraei picture mnouraei  路  5Comments

david-poindexter picture david-poindexter  路  4Comments

hismightiness picture hismightiness  路  5Comments

cklenk picture cklenk  路  5Comments

moorecreative picture moorecreative  路  4Comments