question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dnn.Sites stays empty and gives Console errors

See original GitHub issue

Description of bug

Personbar Sites item stays empty and gives Console errors in the browser.

Steps to reproduce

  1. Install DNN
  2. Open Browser Console
  3. Open Personabar…Sites
  4. See error in console

Screenshots

image

Error information

09:34:30.156 TypeError: M(…).locale(…).fromNow is not a function value http://…/DesktopModules/admin/Dnn.PersonaBar/modules/Dnn.Sites/scripts/exportables/Sites/SitesListView.js?cdv=34:1

Related source file is Dnn.AdminExperience\ClientSide\Sites.Web\src_exportables\src\Components\ListView\index.jsx On line 155 it says: value: dayjs(portal.LastModifiedOnDate).locale(this.props.culture).fromNow() Here it says that the fromNow function is in the RelativeTime plugin of DayJS, but I can’t see why they’re not available.

Affected version

  • 10.00.00 alpha build
  • [x ] 09.09.00 build from latest develop-branch
  • [x ] 09.09.00 release candidate 2
  • 09.08.01 latest supported release

Affected browser

  • Chrome
  • Firefox
  • Safari
  • Internet Explorer 11
  • Microsoft Edge (Classic)
  • Microsoft Edge Chromium

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
skamphuiscommented, Feb 19, 2021

That makes sense then. I’ll keep an eye on the issue. Since it’s not in the release branch, it’s not that urgent yet, I guess.

1reaction
david-poindextercommented, Feb 19, 2021

@skamphuis any issue with Roles.Web would be a different issue because dayjs is not used there. It previously referenced moment, but it was never used. So, I simply removed the package.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Persona bar not displaying.
When looking at the developer console while using chrome, I see "Failed to load resource: the server responded with a status of 404...
Read more >
DNN 9.8 dnnModuleManager - Forums
Anytime some content manager tries to add a module the floating icon never turns up and remains invisible until Personabar > host> empty...
Read more >
DNN DevExpress error after refresh Server.Transfer cannot ...
Hi, Currently I Use DNN as my master page and create module using Devexpress. ... Empty) { ctrlTransactionDetail octrlTransactionDetail ...
Read more >
DNN Errors, DotNetNuke Development Mistakes
DotNetNuke is a CMS used to create dynamic professional looking websites, but sometimes DNN errors may occur that affect your site performance...
Read more >
DNN Extensions fail to load DNN 7.4.2 - paypal
My first DNN site. Please go easy. I'm trying to load some extensions (Blog & a PayPal extension). While the admin console show's...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found