#24294 closed defect (bug) (invalid)
empty post title generates 404 error
| Reported by: | marcopanichi | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Permalinks | Version: | 3.5.1 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
How to generate the error:
1) Settings > Permalink > set Article name
2) new post
3) leave the title empty > write something in the body
4) Publish (a numeric permalink is set because the title is empty)
5) fill in the title > set a category X > Update
6) go to the website > go to category X
7) click on the post title
Expected:
- I see the article
Real result:
- I see 404 page
Notes:
My category.php code is taken from Twenty Twelve template, so the title is rendered by the_permalink() function:
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'fawola' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
Change History (3)
#2
@
13 years ago
- Milestone → Awaiting Review
- Resolution duplicate
- Status closed → reopened
Sorry, I misread.
It's still basically the same issue as #5305 though. The permalink is being saved initially as numeric and you're expecting it to change from numeric to a slug when you add a real title. Are permalinks supposed to change when you update a post's title?
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Duplicate of #5305.
There is a known issue with numeric-only permalinks.