抱歉,您不能修改这篇文章。 WordPress发布文章失败解决办法

出现类似这样的错误提示 最简单解决办法
1.刷新页面 重新提交 如果继续出错 往下看
2.重新撰写文章 当然因为前面出错 可能需要从0重新编辑 如果还不行 继续
3.上2都不行,可能是环境出错,建议重启nginx/apache   php  mysql ,再不行 就是wp本身或者数据库出错了 就不是本文解决的范围了 

***

下面都是摘录

Sorry, you cannot edit this article. WordPress failed to publish an article solution

An error message like this appears, the simplest solution
1. Refresh the page and resubmit. If the error continues, look down
2. Re-write the article. Of course, because of the previous error, you may need to re-edit from 0. If it still doesn’t work, continue
3. The above 2 does not work, it may be due to an environment error. It is recommended to restart nginx/apache php mysql. If it does not work, it is that there is an error in the wp itself or the database, which is not the scope of this article.

***

The following are all excerpts
WordPress cannot publish new articles and pages, prompting you to be editing the page displaying the latest articles

Sometimes the publication of an article will fail or the article cannot be modified. In this case, it is usually because the content of the article contains code that WordPress cannot control or because of the new version of the WordPress editor itself. Finally, after looking for the reason for a long time, I found out why, here is the method

WordPress article publication failure or update failure solution
Method 1: Use the classic editor
Because the errors appear in the Gutenberg editor, we can change to the original editor
Install the second plugin classic editor in the WordPress plugin center

WordPress article publication failure or update failure solution
Then the default article editing interface will be changed to the classic editor, and save and publish again can be successful

WordPress article publication failure or update failure solution
However, using the classic editor is not the best method. After all, Gutenberg will become more and more powerful in the future, so we may still need the following method
Method 2: Correct the website address
Regarding the setting of the web page address, there are many options, such as www and https. Some novices may not be able to set these options correctly. My friend’s website is forced to https, but the WordPress site address has not been modified. This is the reason for the failure of the article publication. of
To unify its settings and website, https website must add https prefix

WordPress article publishing failure or update failure solution
After modifying the site address, you can use the Gutenberg editor again to publish and update articles

 

Recently, a user encountered this problem. When editing an article normally, the database was stuck. After restarting the server, clicking on the newly published article, the main editor disappeared, and a prompt "You are editing the page displaying the latest article."

When entering to publish a new article or new page, there is an error at the top: Creating default object from empty value

When you click to publish an article, there will be a prompt: you do not have permission to modify this article.

WordPress cannot publish new articles and pages, prompting you to be editing the page displaying the latest articles

After checking the information, this problem has been solved. Since this problem is not very common, there will be less information. Here we will record the solution as follows, so that you can better solve it.

1. Check your database configuration file my.cnf or my.ini
Open your mysql database configuration file:

The linux version is my.cnf, usually placed in /etc/my.cnf, /etc/mysql/my.cnf
My.ini under win is usually in the root directory of the installation directory

Open the configuration file and find the innodb_force_recovery parameter.

innodb_force_recovery affects the recovery status of the entire InnoDB storage engine. The default is 0, which means that all of them will be executed when recovery is needed

innodb_force_recovery can be set to 1-6, the larger number includes the effects of all the previous numbers. When the parameter value is greater than 0, select, create, and drop operations can be performed on the table, but operations such as insert, update, or delete are not allowed.

If your innodb_force_recovery parameter is not the default value of 0, you can modify it to the default value of 0, restart mysql and see if it works.

2. Repair your database tables
This problem may also be that in some cases, the mysql table is damaged, then you can repair the table. Generally, the configuration file will change unless you modify it yourself, and the database table damage is more common.

Posts and pages cannot be published because there is a problem with the post table, so we only need to repair the post table, enter your database management, left-click to select your post table, and right-click (see your database panel software for details Looks like), choose to repair the table, repair the complete, generally this problem can be resolved.

This problem is especially aimed at the fact that new articles can be published before, but cannot be published after the database is stuck and restarted, and the previously published articles can be edited. Such a state can generally be solved by repairing the database table.

WordPress无法新发布文章和页面,提示您正在编辑展示最新文章的页面

有的时候发布文章会出现发布失败或者无法修改文章,遇到这种情况一般是因为文章内容中包含Wordpress无法控制的代码或者因为新版Wordpress编辑器本身的原因。最后找了半天原因才发现因为啥,这里分享下方法

WordPress文章发布失败或更新失败解决方法
方法一:使用经典编辑器
因为错误都是在古腾堡编辑器中出现的,我们可以换成原版的编辑器
到WordPress插件中心安装第二个插件经典编辑器

WordPress文章发布失败或更新失败解决方法
然后默认的文章编辑界面就会改为经典编辑器,再次保存与发布都能成功

WordPress文章发布失败或更新失败解决方法
不过使用经典编辑器并不是一个最佳的方法,毕竟以后古腾堡越来越强大,所以我们可能还需要下面的方法
方法二:修正网站地址
关于网页地址的设置,有非常多的选择,比如www和https,一些新手可能无法正确的设置这些选项,朋友的网站就是强制了https,但是WordPress站点地址却没有修改,文章发布失败就是由这个引起的
将其设置和网站统一,https网站必须添加https前缀

WordPress文章发布失败或更新失败解决方法
修改站点地址后,就可以再次使用古腾堡编辑器发布与更新文章了

 

最近由用户遇到了这个问题,正常编辑文章时,数据库卡死,重启服务器之后,点击新发布文章,主编辑器消失,并提示“您正在编辑展示最新文章的页面。”

进入到发布新文章或者新页面时,顶部还有一个报错:Creating default object from empty value

当你点击发布文章时会有提示:您没有修改这篇文章的权限。

WordPress无法新发布文章和页面,提示您正在编辑展示最新文章的页面

经过一番查阅资料,目前这个问题已经解决,由于此问题不是很常见,因此资料会比较少,在此我们将解决方法记录如下,让你更好解决。

1.检查你的数据库配置文件my.cnf或my.ini
打开你的mysql数据库配置文件:

linux版本是my.cnf,一般会放在/etc/my.cnf,/etc/mysql/my.cnf
win下的是my.ini,一般会在安装目录的根目录

打开配置文件找到 innodb_force_recovery 参数。

innodb_force_recovery影响整个InnoDB存储引擎的恢复状况。默认为0,表示当需要恢复时执行所有的

innodb_force_recovery可以设置为1-6,大的数字包含前面所有数字的影响。当设置参数值大于0后,可以对表进行select,create,drop操作,但insert,update或者delete这类操作是不允许的。

如果你的innodb_force_recovery参数设不是默认值0,可以修改为默认值0,重启mysql 再看是否有效。

2.修复你的数据库表
这个问题也有可能是某些情况下,mysql的表受到了损坏,那么你可以修复表,一般情况下,配置文件除非自己修改会有所改变,而数据库表损坏是比较常见的。

文章和页面无法发布新的,是post表出现了问题,因此我们只需要修复post表即可,进入你的数据库管理,左键选取你的post表,右键(具体看你的数据库面板软件是什么样子的),选择修复表,修复完整一般这个问题即可得到解决。

这个问题特别针对于,以前可以发布新的文章,数据库卡死重启之后则不能发布,并且之前发布的文章可以编辑,这样的状态一般修复一下数据库表即可解决。

 

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。