Wordpress核心更新失败(4.1至4.1.1)


Wordpress Core Update Fail (4.1 to 4.1.1)

我目前有Wordpress 4.1,正在尝试更新到4.1.1。

我过去曾通过"控制面板">"更新"模块进行过多次更新。这一次,当我尝试更新时,输入FTP密码后会遇到一个空白页面。

"空白"页并非完全空白。显示面板的顶部和左侧菜单,但内容区域为空白。页面的URL是@HOME/wp-admin/update-core.php?action=do core upgrade&amp_wpnonce=7b6cf80aad

我已经尝试使用默认主题,以及禁用所有插件。没有什么变化。

有一次,我在谷歌Chrome控制台上发现了这些错误:

Failed to clear temp storage: It was determined that certain files are unsafe for access within a Web application, or that too many calls are being made on file resources. SecurityError
Failed to create temp file 2 : It was determined that certain files are unsafe for access within a Web application, or that too many calls are being made on file resources.

这只发生在核心更新中。我仍然可以安装/删除插件,没有问题。还有哪些因素会以这种方式影响核心更新?

您可以尝试将您的ftp凭据放入wp-config.php文件:

define( 'FTP_USER', 'ftpusername' );
define( 'FTP_PASS', 'ftppassword' );
define( 'FTP_HOST', 'ftp.hostname.net:21' );

来源:https://wordpress.org/support/topic/cant-upgrade-vom-41-to-411?replies=10#post-6589194

只需将以下代码添加到主题function.php中即可。

define('FS_METHOD', 'direct');

添加此代码后,Wordpress不询问FTP详细信息。您可以从这里获得更多详细信息。

并给予777对CCD_ 2目录的权限。

然后检查一下,我希望它能起作用。

将PHP处理程序切换到FastCGI或PHP-FPM,问题就消失了。