Blog 7.0.0 RC1, Blog Settings, Some Templates Throw Object reference not set
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 56/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- javascript
- Domaine
- backend
Piste de recherche
Start by tracing PostInfo.PermaLink(TabInfo tab) and the GetProperty token path named in the stack trace; the report points to a null parent tab when templates render latestPosts[System]. Reproduce by switching templates in Blog Settings on the stated DNN and module versions, then check that the affected templates render without the null reference. The Admin Logs observation is described as a separate concern.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Describe the bug
Fresh DNN install, after getting the Blog set up and adding a post, I went into (module) Blog Settings and tried switching to other Templates. "latestPosts[System]" and a few others cause the following error after you click Update and the page tries to display the previously working list of blogs.
Error: Object reference not set to an instance of an object.
In: at DotNetNuke.Modules.Blog.Core.Entities.Posts.PostInfo.PermaLink(TabInfo tab) at DotNetNuke.Modules.Blog.Core.Entities.Posts.PostInfo.GetProperty(String strPropertyName, String strFormat, CultureInfo formatProvider, UserInfo AccessingUser, Scope AccessLevel, Boolean& PropertyNotFound) at DotNetNuke.Modules.Blog.Core.Templating.BaseCustomTokenReplace.replacedTokenValue(String strObjectName, String strPropertyName, String strFormat) at DotNetNuke.Modules.Blog.Core.Templating.BaseTokenReplace.ReplaceTokenMatch(Match m) at System.Text.RegularExpressions.RegexReplacement.Replace(MatchEvaluator evaluator, Regex regex, String input, Int32 count, Int32 startat) at System.Text.RegularExpressions.Regex.Replace(String input, MatchEvaluator evaluator) at DotNetNuke.Modules.Blog.Core.Templating.GenericTokenReplace.ReplaceTokens(String strSourceText) at DotNetNuke.Modules.Blog.Core.Templating.Template.ReplaceContents()
Looks like the PermaLink() throws when there is no parent tab (null).
Software Versions
- DNN: 10.04.01
- Module: 7.0.0 RC1
Expected behavior
All Templates should work (or old, non-useful ones should be removed?).
Error log
Interesting note - though the error displayed on the page, nothing was written to the Admin Logs. I feel like it should have been. Separate issue?
- Langage dominant
- JavaScript
- Étoiles
- 38
- Forks
- 41
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de DNNCommunity/DNN.Blog
-
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
DNNCommunity/DNN.Blog#231 ·
-
enhancement
Difficulté 3/5 1-2 jours Accessibilité débutants 45/100
DNNCommunity/DNN.Blog#223 ·
-
bug
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
DNNCommunity/DNN.Blog#208 · 2 commentaires ·
-
enhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 20/100
DNNCommunity/DNN.Blog#207 ·
-
Blog Comment Management ViewOuverteenhancement
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
DNNCommunity/DNN.Blog#205 ·
Toutes les issues de DNNCommunity/DNN.Blog
Issues similaires
-
enhancement good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
-
enhancement good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
blixvip/solana-token-meta#17 ·
-
enhancement good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
blixvip/solana-tx-parse#18 ·
-
bug good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
blixvip/solana-rpc-bench#18 ·
-
bug good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100