Making WordPress.org

Opened 6 years ago

Last modified 6 years ago

#3781 new defect (bug)

The Views for 'My @Mentions' and 'My Posts' give 'Page Not Found' message which is misleading

Reported by: garrett-eclipse's profile garrett-eclipse Owned by:
Milestone: Priority: normal
Component: Make (Get Involved) / P2 Keywords:
Cc:

Description

Hello,

Trying the views for 'My @Mentions' and 'My Posts' give you a 'Page Not Found' error;
https://i.imgur.com/PIWD0Vu.png

I'm not sure if this is simply because I have no @Mentions or Posts, but if that's the case maybe a more informative message would make sense than 'Page Not Found' such as 'No Posts' or 'No @Mentions' so it's not just seen as a 404 error.

Links for mine;
My @Mentions - https://make.wordpress.org/core/?mentions=garrett-eclipse
My Posts - https://make.wordpress.org/core/author/garrett-eclipse

Thanks

Attachments (1)

Screen Shot 2018-08-29 at 1.18.59 PM.png (300.9 KB) - added by garrett-eclipse 6 years ago.
Page Not Found - My Posts

Download all attachments as: .zip

Change History (3)

@garrett-eclipse
6 years ago

Page Not Found - My Posts

#1 @dd32
6 years ago

Just to confirm, this is indeed because you have no posts and no mentions.

P2's behaviour is to just use a WordPress post archive page, which by default shows a 404 when no posts match.

We could extend the theme to show a better message in this case, similar to how the search results is displayed: https://make.wordpress.org/core/?s=something-that-will-never-match

#2 @garrett-eclipse
6 years ago

Hi @dd32

That's exactly correct, I don't have any posts or mentions which is what causes the 404 page and that's misleading.

I took a look at the example search with no results and feel that's exactly what's needed here.

Thank you

Note: See TracTickets for help on using tickets.