问题描述
我们的网络服务器硬盘一夜之间就满了,我们所有的网站都崩溃了.我们增加了硬盘大小,然后网站运行正常.
Our web server hard disk went full overnight and all our sites crashed. We increased hard disk size and then sites were working okay.
现在我们发现我们无法从 plugins.php 页面自动更新插件.我们收到以下错误:
Now we found out that we are unable to update plugins automatically from the plugins.php page. We are getting the following error:
更新失败:无法安装包.PCLZIP_ERR_MISSING_FILE (-4) : 缺少存档文件/tmp/woocommerce-customer-order-xml-export-suite-Wa6DIQ.tmp"
Update Failed: The package could not be installed. PCLZIP_ERR_MISSING_FILE (-4) : Missing archive file '/tmp/woocommerce-customer-order-xml-export-suite-Wa6DIQ.tmp'
我们需要做些什么来纠正这个问题?
What do we need to do to rectify this?
推荐答案
有一次这发生在我身上,但使用的是 Windows Server.我解决了以下问题.
Once this happened to me but with a Windows Server. And I solved doing the following.
- 我在 wp-content 中创建了一个名为 temp 的文件夹
- 然后我编辑 wp-config 和以下行
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');
- 我粘贴这一行:
define('WP_TEMP_DIR', ABSPATH . 'wp-content/tmp');
从那一刻起,我停止使用 Windows 作为服务器 LOL.. 并转向 Linux
And since that moment I stop using Windows as Servers LOL.. And moved to Linux
这篇关于尝试更新 WordPress 插件时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!