Opened 14 years ago
Closed 14 years ago
#22489 closed defect (bug) (duplicate)
If no pages, except for the Sample page, exist, automatically creating a new page fails when enabling a static front page.
| Reported by: | ldebrouwer | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 3.5 |
| Severity: | normal | Keywords: | has-patch needs-testing |
| Cc: | Focuses: |
Description
If no pages, except for the Sample page, exist, automatically creating a new page fails when enabling a static front page. This is due to $_POST[ 'page_on_front' ] not existing and not having the value "new".
How to reproduce:
- Install a fresh checkout of trunk.
- Go to Setting > Reading
- Check "Show a page instead of your latest posts"
- Hit "Save changes"
Attachments (1)
Change History (3)
#1
@
14 years ago
Also reported in ticket:16379:84 and can be fixed with ticket:16379:16379.9.patch.
However, the UI may be changed again soon, so the fix wasn't committed yet.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
This fixes the problem. It creates a hidden input "page_on_front" with value "new".