最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Cannot Update A Post, 404 Error

programmeradmin0浏览0评论

After months of leaving and deleting my WordPress site, I decided to try again. I downloaded the new version 4.7.3, installed and added a new post. So far so good.

I then went back to edit the post and the same error that I received before, cannot find the post; nothing to see here, message.

I cannot edit any new post that I create, but I can create a new post. The odd things are that I can modify the default message that is created on install by WordPress.

I deleted the database and the entire home directory multiple times. Deleted the .htaccess file and changed permalinks to no avail as well.

The setup is a fresh install with no plugins, no themes used except default. I tried switching between the different default also. Still, no dice.

Whenever I click the update, it returns a 404 error, page not found, as stated by Firefox dev tool. Add new does work. If I cick to edit a new post, it bring the page up in the editor. But as soon as I click update, 404 error.

This is the contents of the .htaccess file as by WordPress.

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

Update

I just noticed in one of the logs this error when I changed the permalink to plain. [Fri Mar 24 06:15:46 2017] [error] [client xxxxxxxx] File does not exist: /home/domain/public_html/403.shtml, referer: domain/wp-admin/post.php?post=14&action=edit

Any ideas?

After months of leaving and deleting my WordPress site, I decided to try again. I downloaded the new version 4.7.3, installed and added a new post. So far so good.

I then went back to edit the post and the same error that I received before, cannot find the post; nothing to see here, message.

I cannot edit any new post that I create, but I can create a new post. The odd things are that I can modify the default message that is created on install by WordPress.

I deleted the database and the entire home directory multiple times. Deleted the .htaccess file and changed permalinks to no avail as well.

The setup is a fresh install with no plugins, no themes used except default. I tried switching between the different default also. Still, no dice.

Whenever I click the update, it returns a 404 error, page not found, as stated by Firefox dev tool. Add new does work. If I cick to edit a new post, it bring the page up in the editor. But as soon as I click update, 404 error.

This is the contents of the .htaccess file as by WordPress.

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

Update

I just noticed in one of the logs this error when I changed the permalink to plain. [Fri Mar 24 06:15:46 2017] [error] [client xxxxxxxx] File does not exist: /home/domain/public_html/403.shtml, referer: domain/wp-admin/post.php?post=14&action=edit

Any ideas?

Share Improve this question edited Mar 24, 2017 at 10:45 nitefrog asked Mar 24, 2017 at 8:52 nitefrognitefrog 1214 bronze badges 2
  • Have you tried debugging? Otherwise, if WP is causing trouble with a clean install, you may want to talk to your hosting provider. – cjbj Commented Mar 24, 2017 at 10:18
  • Are you hosting it your self or who is hosting it? – Nate Commented Apr 29, 2020 at 18:58
Add a comment  | 

2 Answers 2

Reset to default 1

To do so .. You need to login to wordpress admin and then need to save the permalink again..

Just go to Settings >> Permalink

And save without doing any changes.. and that error should be gone..

You could try to reset the WordPress permalinks to see if this is causing the 404 error. Here is a useful article on how to reset your permalinks.

发布评论

评论列表(0)

  1. 暂无评论