DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

404 page issue. Unlogged appearance when reached

 5 Replies
 1 Subscribed to this topic
 40 Subscribed to this forum
Sort:
Author
Messages
New Around Here
Posts: 11
New Around Here

Hello,

I've just setup a 404 page for our DNN Website.
The page is setup to be viewable by All Users.
I've also setup a voluntarily broken link in a page for testing purposes.

When I click my broken test link, I get correctly redirected to the 404 page, but the page looks like I'm disconnected.
For example, the User.ascx Theme Object is loaded in all the Layout Templates of our website.
The 404 page uses one ot those Layout Templates, but when I access it through a broken link, User.ascx stops displaying my user name.
When I access the page through the Admin > Pages menu, it works just fine.

Same with other Theme Objects. Login.ascx doesn't even dispay anything. It usually displays "Login" or "Disconnect". Now it's just white space.

Does anyone know who to solve this issue?

Thank you
 

Senior Member
Posts: 1322
Senior Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
Lifesaver
Lifesaver
You're Life Saver!
New Poster
New Poster
Congrats on posting!
3 Engaged Reader
Engaged Reader
You are an engaged reader!
  • Accepted Answer

That is by design.

Because the 404 page can be called a lot, the page does as little processing as possible to prevent the system from getting overflooded.

It does behave like a normal page when you visit the page itself, but as soon as it serves a 404 page, it's pretty empty.
There is no way around this AFAIK.

New Around Here
Posts: 11
New Around Here
Thank you for your quick answer Timo.

I thought it was because we were using an older version of DNN (9.6.1).
I feel like this is something that might cause confusion for a user using the website.
In our installation, we have a lot of profiled pages that also dissapear from the menu when served a 404 page.

At least I know I can stop trying to debug this.

Have a great day!
Veteran Member
Posts: 349
Veteran Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
MVP
MVP
You're an MVP!
Engaged Reader
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader
Avid Reader art thou!
Actually, It was done on purpose for some reason, see https://github.com/dnnsof...Platform/issues/2216 for a bit of history on this.
But the good news is you can change that by passing ShowInErrorPage="true" on those skinObjects in your theme
Veteran Member
Posts: 349
Veteran Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
MVP
MVP
You're an MVP!
Engaged Reader
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader
Avid Reader art thou!
Now be warned, if you are on the 404 page unauthenticated, you login and return to the 404 page, which is strange (which I believe was the reasoning behind the original change)
Senior Member
Posts: 1322
Senior Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
Lifesaver
Lifesaver
You're Life Saver!
New Poster
New Poster
Congrats on posting!
3 Engaged Reader
Engaged Reader
You are an engaged reader!
Posted By Daniel Valadas on 7/19/2024 1:05 AM

But the good news is you can change that by passing ShowInErrorPage="true" on those skinObjects in your theme

Ah, thanks I did not know that TBH.

 

 

These Forums are for the discussion of the open source CMS DNN platform and ecosystem.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved