网站优化

网站优化

Products

当前位置:首页 > 网站优化 >

尝试更新WordPress插件时出错

GG网络技术分享 2025-03-18 16:12 4


问题描述:

Our web server hard disk went full overnight and all our sites crashed. We increased hard disk size and then sites were working okay.

Now we found out that we are unable to update plugins automatically from the plugins.php page. We are getting the following error:

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\'

See also screenshot: http://imgur.com/a/9969E

What do we need to do to rectify this?

图片转代码服务由CSDN问答提供

感谢您的意见,我们尽快改进~

功能建议

我们的网络服务器硬盘在一夜之间就满了,所有网站都崩溃了。 我们增加了硬盘大小,然后网站工作正常。</ p>

现在我们发现我们无法从plugins.php页面自动更新插件。 我们收到以下错误:</ p>

更新失败:无法安装软件包。 PCLZIP_ERR_MISSING_FILE(-4):缺少存档文件\'/tmp/woocommerce-customer-order-xml-export-suite-Wa6DIQ.tmp\'

nnn

参见截图: http://imgur.com/a/9969E </ p>

我们需要做什么 纠正这个?</ p>

</ div>

网友观点:

Once this happened to me but with a Windows Server. And I solved doing the following.

  1. I created a folder in wp-content named temp
  2. Then I edit the wp-config and below the following line

if ( !defined(\'ABSPATH\') )

define(\'ABSPATH\', dirname(__FILE__) . \'/\');
  1. I paste this line:
define(\'WP_TEMP_DIR\', ABSPATH . \'wp-content/tmp\');

And since that moment I stop using Windows as Servers LOL.. And moved to Linux

###

On your server, navigate to the /wp-content folder. Create a new folder inside it called TEMP.

Download /wp-config.php from your server to your computer. Open it up in a text editor, and beneath:

if ( !defined(\'ABSPATH\') )

define(\'ABSPATH\', dirname(__FILE__) . \'/\');

add the line

define(\'WP_TEMP_DIR\', ABSPATH . \'wp-content/TEMP\');

Taken from: http://birchenough.co.uk/pclzip_err_missing_file-4-missing-archive-file-cwindowstempwhatever-tmp/

标签:

提交需求或反馈

Demand feedback