Wordpress 核心更新失败(4.1 到 4.1.1)
Wordpress Core Update Fail (4.1 to 4.1.1)
我目前使用的是 Wordpress 4.1,正在尝试更新到 4.1.1。
我过去通过仪表板 > 更新模块更新过几次。这一次,当我尝试更新时,我在输入 FTP 密码后看到了一个空白页面。
"blank" 页面并非完全空白。仪表板的顶部和左侧菜单显示,但内容区域是空白的。页面的URL为@HOME/wp-admin/update-core.php?action=do-core-upgrade&_wpnonce=7b6cf80aad
我试过使用默认主题,以及禁用所有插件。没有任何变化。
有一次,我在 Google 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.
这仅发生在核心更新中。我仍然可以 install/delete 插件没问题。还有哪些其他因素会以这种方式影响核心更新?
只需将以下代码添加到您的主题中即可 function.php
。
define('FS_METHOD', 'direct');
添加此代码后 Wordpress 不会询问 FTP 详细信息。可以获得more detail from here.
并授予 uploads
目录 777 权限。
然后检查我希望它能正常工作。
将您的 PHP 处理程序切换到 FastCGI 或 PHP-FPM,问题就消失了。
您可以尝试将您的 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
我目前使用的是 Wordpress 4.1,正在尝试更新到 4.1.1。
我过去通过仪表板 > 更新模块更新过几次。这一次,当我尝试更新时,我在输入 FTP 密码后看到了一个空白页面。
"blank" 页面并非完全空白。仪表板的顶部和左侧菜单显示,但内容区域是空白的。页面的URL为@HOME/wp-admin/update-core.php?action=do-core-upgrade&_wpnonce=7b6cf80aad
我试过使用默认主题,以及禁用所有插件。没有任何变化。
有一次,我在 Google 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.
这仅发生在核心更新中。我仍然可以 install/delete 插件没问题。还有哪些其他因素会以这种方式影响核心更新?
只需将以下代码添加到您的主题中即可 function.php
。
define('FS_METHOD', 'direct');
添加此代码后 Wordpress 不会询问 FTP 详细信息。可以获得more detail from here.
并授予 uploads
目录 777 权限。
然后检查我希望它能正常工作。
将您的 PHP 处理程序切换到 FastCGI 或 PHP-FPM,问题就消失了。
您可以尝试将您的 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