Ticket #6539 (closed defect (bug): fixed)
404 page does not appear when using static home page
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 2.6 |
| Component: | General | Version: | 2.5 |
| Severity: | normal | Keywords: | has-patch tested |
| Cc: |
Description
If an installation is configured to have the home page set to a static page, with the "Front page" set but the "Posts page" unset, instead of the 404 template showing up when necessary, all pages are loaded and displayed.
Attachments
Change History
-
attachment
query-404.diff
added
- Keywords has-patch added
On r7591 I'm not seeing a error, if I enter garbage in the browser's navigation bar I get the 404 page as expected. Is there anything in particular that it should be doing?
I encountered this after upgrading from 2.3.3, and reproduced it on a clean 2.5 installation. The patch corrected the issue.
- Milestone changed from 2.6 to 2.5.1
I'm not sure whether it's cool for a non-developer to change milestones, but here goes.
- Milestone changed from 2.5.1 to 2.6
Usually we milestone for the current development version (or the next one if no patch is attached) and once it's comitted and deemed important enough it will be backported for a maintenance release.
- Status changed from new to closed
- Resolution set to fixed
- Milestone changed from 2.6 to 2.5.1
This is one looked safe for 2.5.1, committed.
comment:13
follow-up:
↓ 14
tenpura — 4 years ago
The patch typecasts $reqpage to integer temporarily only when 404. This way it won't break setting posts page.
comment:14
in reply to:
↑ 13
tenpura — 4 years ago
The patch typecasts $reqpage to integer temporarily only when 404. This way it won't break setting posts page.
The patch typecasts $reqpage to string.
comment:15
tenpura — 4 years ago
I updated 6539.patch. It does almost the same thing, but less code.
-
attachment
6539.patch
added
Patch for 2.5 branch. Typecasts $reqpage to string to make the conditional work properly.
-
attachment
6539-modified.patch
added
Patch 6539.patch didn't work for me. Merged the additional equal sign fix from the query-404.diff patch and tested working on WordPress 2.5.1.
comment:16
ryan — 4 years ago
- Owner changed from anonymous to ryan
- Status changed from reopened to new
comment:17
ryan — 4 years ago
comment:18
ryan — 4 years ago
- Status changed from new to closed
- Resolution set to fixed

Patch for fix