Missing a temporary folder problem while image upload

本秂侑毒 提交于 2020-07-02 03:14:05

问题


showing 'Missing a temporary folder.' problem

added below code in wp-config.php file

define('WP_TEMP_DIR', dirname(FILE) . '/wp-content/temp/'); also Created the Temp Folder inside wp-content

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

Missing a temporary folder


回答1:


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.

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

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



来源:https://stackoverflow.com/questions/57797965/missing-a-temporary-folder-problem-while-image-upload

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!