Opened 16 years ago
Closed 16 years ago
#8431 closed defect (bug) (fixed)
Publish button gives 404
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 2.7 | Priority: | high |
Severity: | major | Version: | 2.7 |
Component: | Administration | Keywords: | reporter-feedback |
Focuses: | Cc: |
Description
When I hit the "publish" or "update post" button in WordPress 2.7-almost-rc-9965 when either writing or editing a post, it returns me to the 'edit posts' list, and doesn't save the post at all.
I have to manually save a post (not publish), then quick-edit the post to change its status to published. Autosave came in very handy when I first discovered this problem.
This problem comes after I fixed a previous error. Hitting publish would send me to post.php (instead of edit.php) which got a 404. I edited post.php out of edit-posts.php (i believe) and replaced it with edit.php, which then worked properly until the next SVN update (i believe).
I have updated via SVN to 9981 with no difference, and even restored the relevant PHP files: edit.php edit-pages.php and edit-page-form.php to try and correct this issue.
Change History (5)
#3
@
16 years ago
- Summary changed from Publish button not saving post to Publish button gives 404
I reverted * in the wp-admin directory, and it reverted edit-form-advanced.php (that was the one that I'd edited before).
This brings back the earlier error. The publish button saves the post, but takes me to /wp-admin/post.php?action=edit which doesn't exist and produces the 404 error.
#4
@
16 years ago
- Keywords reporter-feedback added; publish submit save removed
That's strange. There is action=edit in post.php: http://trac.wordpress.org/browser/trunk/wp-admin/post.php#L120
post.php handles the redirects after publishing or saving a post depending on where it comes from (same for page.php for pages). Perhaps try reverting any changes to post-new, edit-form-advanced and post.php, then put an var_dump($_POST);exit;
just before the redirect to see what's going on.
Not seeing this in 9981. Publish and update are working properly. Have you done an svn revert on your edited files to ensure it's not your changes making this happen?