wordpress修复插件

Are you seeing ‘Missing a temporary folder’ error on your WordPress site? This error makes it impossible to upload images, update themes and plugins, or update WordPress core. In this article, we will show you how to easily fix “Missing a temporary folder” error in WordPress.

您是否在WordPress网站上看到“缺少临时文件夹”错误? 此错误使得无法上传图像,更新主题和插件或更新WordPress核心。 在本文中,我们将向您展示如何轻松修复WordPress中的“缺少临时文件夹”错误。

是什么原因导致WordPress中的“缺少临时文件夹”错误? (What Causes The ‘Missing a Temporary Folder’ Error in WordPress?)

This error is caused by incorrect PHP settings on your WordPress hosting environment. There is a specific PHP setting that defines a temporary folder to be used by apps like WordPress to temporarily store data before saving it to the desired location.

此错误是由WordPress托管环境上错误PHP设置引起的。 有一个特定PHP设置定义了一个临时文件夹,供WordPress之类的应用程序使用,用于在将数据保存到所需位置之前临时存储数据。

WordPress needs access to this temporary folder when you upload an image, install or update a theme or plugin, or update WordPress core.

当您上传图像,安装或更新主题或插件或更新WordPress核心时,WordPress需要访问此临时文件夹。

If the location of this folder is not defined in your server’s PHP configuration, then WordPress will be unable to do any of these things and will show you ‘Missing a temporary folder’ error.

如果此文件夹的位置未在服务器PHP配置中定义,则WordPress将无法执行任何这些操作,并且会显示“缺少临时文件夹”错误。

Having said that, let’s see how to easily fix the ‘Missing a temporary folder’ error in WordPress.

话虽如此,让我们看看如何轻松修复WordPress中的“缺少临时文件夹”错误。

修复WordPress中丢失的临时文件夹错误 (Fix Missing Temporary Folder Error in WordPress)

For this tutorial, you will need to edit wp-config.php file in WordPress. If you haven’t done this before, then please see our guide on how to edit wp-config.php file in WordPress.

对于本教程,您将需要在WordPress中编辑wp-config.php文件。 如果您之前没有做过此操作,请参阅有关如何在WordPress中编辑wp-config.php文件的指南。

First, you will need to connect to your website using an FTP client or File Manager in cPanel dashboard of your hosting account.

首先,您需要使用托管帐户的cPanel仪表板中的FTP客户端或文件管理器连接到您的网站。

Next, you will need to locate the wp-config.php file and edit it.

接下来,您将需要找到wp-config.php文件并进行编辑。

You need to paste this code to the file just before the line that says ‘That’s all, stop editing! Happy blogging’.

您需要将此代码粘贴到文件上,即“就这样,停止编辑! 祝您博客愉快”


define('WP_TEMP_DIR', dirname(__FILE__) . '/wp-content/temp/');

Save your changes and upload the wp-config.php file back to your website.

保存您的更改,并将wp-config.php文件上传回您的网站。

Next, you need to go to /wp-content/ folder and create a new folder inside it. You need to name this new folder temp.

接下来,您需要转到/wp-content/文件夹并在其中创建一个新文件夹。 您需要将此新文件夹命名为temp

That’s all, you can now visit your WordPress admin area and try uploading an image.

就是这样,您现在可以访问WordPress管理区域并尝试上传图像。

故障排除 (Troubleshooting)

If this method doesn’t work, then check the directory permissions for your wp-content folder.

如果此方法不起作用,请检查wp-content文件夹的目录权限 。

Note: This error is caused by poorly configured hosting environment. The solution described above is just a workaround. You should still ask your hosting provider to fix this. If they don’t, then you should switch to one of these top WordPress hosting companies.

注意:此错误是由配置不正确的托管环境引起的。 上述解决方案仅是一种解决方法。 您仍然应该要求托管服务提供商解决此问题。 如果他们没有,那么您应该切换到这些顶级WordPress托管公司之一。

We hope this article helped you fix the ‘Missing a temporary folder’ error in WordPress. You may also want to bookmark our ultimate list of the most common WordPress errors and how to fix them.

我们希望本文能帮助您解决WordPress中的“缺少临时文件夹”错误。 您可能还想将最常见的WordPress错误以及如何修复这些错误的最终列表添加为书签。

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

如果您喜欢这篇文章,请订阅我们的YouTube频道 WordPress视频教程。 您也可以在Twitter和Facebook上找到我们。

翻译自: https://www.wpbeginner.com/wp-tutorials/how-to-fix-missing-a-temporary-folder-error-in-wordpress/

wordpress修复插件

wordpress修复插件_如何修复WordPress中的“缺少临时文件夹”错误相关推荐

  1. wordpress编辑插件_如何使用Tabify编辑屏幕插件减少WordPress帖子编辑器屏幕的拥挤

    wordpress编辑插件 Most of the WordPress users tend to create meta boxes to add custom piece of data to t ...

  2. linux wptmp文件分析,wordpress上传图片提示“缺少临时文件夹”的解决方法

    摘要:使用wordpress编辑器上传图片时出现了"缺少临时文件夹"的提示,该提示通常是由于服务器php配置的原因,如果之前上... 使用wordpress编辑器上传图片时出现了& ...

  3. 浏览器html5临时文件,电脑中清理浏览器临时文件夹的方法

    用户在电脑中浏览网页的时候,浏览器都会自动下载一些文件,虽然这些文件是临时的,但是如果长时间不清理,这些临时文件就会占用磁盘空间.接下来,系统城小编就带大家看看电脑中清理浏览器临时文件夹的具体方法. ...

  4. wordpress修复插件_关于WordPress及其修复方法的15个最烦人的事情

    wordpress修复插件 Like most things in life, WordPress also has it's fair share of annoying things. Deali ...

  5. wordpress修复插件_自动修复的20个最佳WordPress主题

    wordpress修复插件 Are you looking for the best WordPress themes for auto repair or car dealership busine ...

  6. wordpress发邮件_如何修复WordPress不发送电子邮件的问题

    wordpress发邮件 One of the most commonly asked questions on WPBeginner is how to fix WordPress not send ...

  7. wordpress插件_最好的WordPress购物车插件

    wordpress插件 WordPress is an extremely versatile platform, with a diverse range of capabilities. One ...

  8. wordpress会员插件_最好的免费WordPress会员插件

    wordpress会员插件 WordPress is an incredibly versatile CMS. You can use it to launch a blog, an online s ...

  9. wordpress图像大小_如何在WordPress中添加图像积分(逐步操作)

    wordpress图像大小 Recently, some of our readers asked us about how to properly add image credits in Word ...

  10. wordpress优化插件_专为移动设备优化的社交共享WordPress插件

    wordpress优化插件 Did you know that the majority of Internet users are browsing through websites on thei ...

最新文章

  1. 进程控制概念简介 多线程上篇(三)
  2. 组合框CComboBox响应函数
  3. 【PAT (Advanced Level) Practice】1093 Count PAT‘s (25 分)
  4. python运用在哪些地方_必看 | 2020年,Python十大应用领域介绍!
  5. BZOJ2081 [Poi2010]Beads
  6. 【计算机视觉】期刊整理
  7. Eclipse 安装插件
  8. CodeForces 698A - Vacations (Codeforces Round #363 (Div. 2))
  9. htmlselect保留上次选择内容_搬家买什么工具,搬家有什么技巧,搬家选择什么公司?...
  10. ubuntu14.04 安装adb 调试设备
  11. php一小时入门,php3小时快速入门-读书笔记
  12. unity简单的脚本 播放3D立体音效(近大远小效果)
  13. 基于ADS自带二极管的400Mhz倍频器设计
  14. Axure 进阶 | 制作携程网酒店“入住日期”与“退房日期”控件
  15. 强烈推荐这些值得下载的神仙工具,每一个都让人惊喜
  16. vba程序的vb6封装_调试VBA和VB6应用程序
  17. 2020年8月, E-Form++可视化源码组件库最新企业版本2020第 二版发布!
  18. vxe-table 实现复杂的表格功能。
  19. java技术栈 高清视频
  20. selenium项目实战(三):实现网页验证码识别

热门文章

  1. Python基础教学3:变量名和赋值
  2. 《杀死一只知更鸟》一本心灵成长之书,教会孩zi善待世界
  3. 利用亚马逊云免费搭建服务器的踩坑之旅-创建你的实例
  4. China Mobile”、“China Unicom”,请修改为中国移动、中国联通
  5. 我怎么就沦落到听新裤子的地步了呢?
  6. 深入浅出Yolo系列之Yolov5核心基础知识完整讲解
  7. Android获取本地IP
  8. LaTeX数学表达式
  9. 华为交换机5720常用命令
  10. matplotlib 绘制图中图