Ticket #8244 (closed defect (bug): fixed)

Opened 2 months ago

Last modified 2 months ago

404 Pages not working, forwarding to Archive

Reported by: kye172 Assigned to: anonymous
Priority: normal Milestone: 2.7
Component: General Version: 2.7
Severity: normal Keywords: 404, not found
Cc:

Description

If you type

example.com/somepagenothere

It'll forward to Archive template but display no content, just imports header/sidebar/footer

If you type

example.com/somethingnothere/somepagenothere

It'll display a correct 404

This issue persists in all 2.7 Beta's up to Beta 3 tested so far

Change History

11/16/08 17:11:02 changed by kye172

Also, if you type

example.com/acategorythatdoesexist/somepageorpostnothere

It'll return a 404 properly

11/19/08 06:36:25 changed by markjaquith

  • status changed from new to closed.
  • resolution set to worksforme.
  • milestone deleted.

Cannot reproduce. http://example.com/randomfoobar returns a 404 header and 404 message.

Please re-open with more information about your permalink structure and any other relevant information.

11/20/08 07:17:33 changed by kye172

  • status changed from closed to reopened.
  • resolution deleted.

Example on my server:

http://www.kye.me/wordpress/blaa

Doesn't return a correct 404 (even checked the HTTP Headers), it thinks it's a category for some reason

http://www.kye.me/wordpress/blaa/blaaaa

Returns correct 404

Permalink structure is /%category%/%postname%

All versions of 2.7 up to 2.7-beta3-9791 tested so far, same problem, all plugin's off and on multiple themes (inc default theme as example)

Wordpress 2.6.3 and below work properly on the same server returning correct headers, even tested Wordpress 2.7 on another server and it has the same problem

11/20/08 16:21:39 changed by jeremyclark13

I can confirm this as well with the same permalink structure. Except for me it shows a blank page not trying to use a template at all. No errors in the logs either.

(follow-up: ↓ 10 ) 11/20/08 17:22:24 changed by mrmist

Yeah, with the non-standard permalink with %category% the behaviour is to show "There's no articles in this category yet" whether it's a category or not.

Whether it's a big deal or not probably depends on what your theme does in those instances, and whether you're really that bothered about 404s being sent.

11/20/08 17:35:50 changed by ryan

Note that 2.7 does not issue a 404 if the category exists but has no posts. Prior to 2.7 404 is returned for this case.

11/20/08 19:43:14 changed by jeremyclark13

But shouldn't it issue a 404 for a nonexistent category?

11/20/08 20:23:18 changed by ryan

Yes, it should 404 if it doesn't exist. I just mentioned the new behavior in case it applies.

11/20/08 20:23:50 changed by ryan

  • milestone set to 2.7.

(in reply to: ↑ 5 ) 11/21/08 16:34:34 changed by kye172

Replying to mrmist:

Yeah, with the non-standard permalink with %category% the behaviour is to show "There's no articles in this category yet" whether it's a category or not. Whether it's a big deal or not probably depends on what your theme does in those instances, and whether you're really that bothered about 404s being sent.

Whether or not the theme gives a blank page or not is the way the theme is coded, I've tried it with several themes now diagnosing the problem

Starting to become an issue for me as I've just switched a Joomla site over to Wordpress and Google isnt ditching the old links as they arent returning 404's

11/24/08 06:14:40 changed by ryan

  • status changed from reopened to closed.
  • resolution set to fixed.

(In [9859]) Return null if queried object not found. fixes #8244