简体   繁体   English

Wordpress 错误:“上传的文件无法移动到 wp-content/uploads”

[英]Wordpress error: 'The uploaded file could not be moved to wp-content/uploads'

I've tried updating permissions to every possible combination for both the wp-content folder and also the uploads folder within it and it hasn't remedied the issue.我已经尝试为 wp-content 文件夹和其中的 uploads 文件夹更新每个可能组合的权限,但它没有解决这个问题。

I also saw in a few threads of similar issues that adding我还在一些类似问题的线程中看到了添加

define('FTP_PUBKEY','/home/wp-user/wp_rsa.pub');
define('FTP_PRIKEY','/home/wp-user/wp_rsa');
define('FTP_USER','wp-user');
define('FTP_PASS','');
define('FTP_HOST','127.0.0.1:22');

to the wp-config file could help, so I tried that and now my site is getting an error 500 and not loading at all despite me having since removed the above code.到 wp-config 文件可能会有所帮助,所以我尝试了,现在我的网站收到错误 500 并且根本没有加载,尽管我已经删除了上面的代码。

I know this question has been asked before but I've tried most of the solutions and have only managed to make the problem worse... any suggestions how to get the site working again after my blunder?我知道以前有人问过这个问题,但我已经尝试了大多数解决方案,但只是设法使问题变得更糟......有什么建议可以在我犯错后让网站再次运行吗?

Posting incase this happens to anyone else.发布以防其他人发生这种情况。 The hosting account for the site was at its data limit so the error for uploading was because there was no space to upload the files to and not the expected read/wright permissions.该站点的托管帐户处于其数据限制,因此上传错误是因为没有空间可以将文件上传到而不是预期的读/写权限。

When I updated the code on the page, instead of saving it saved the page as a blank template because again - no room left to save the file to.当我更新页面上的代码时,没有保存它,而是将页面保存为空白模板,因为再次 - 没有空间可以保存文件。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Wordpress上传的文件无法移动到wp-content / uploads - Wordpress The uploaded file could not be moved to wp-content/uploads Wordpress (wp-cli):无法导入文件。 原因:上传的文件无法移动到 wp-content/uploads。 权限错误? - Wordpress (wp-cli): Unable to import file. Reason: The uploaded file could not be moved to wp-content/uploads. Permissions error? 上传的文件无法移动到wp-content / uploads / 2019/06 - The uploaded file could not be moved to wp-content/uploads/2019/06 上传文件无法移动到 wp-content/uploads 错误 - The upload file could not be moved to wp-content/uploads error 上传的文件无法移动到 wp-content/uploads/2015/01。 图片上传问题 - The uploaded file could not be moved to wp-content/uploads/2015/01. issue on image upload 媒体文件上载到/ wp-content而不是在子目录中安装的WordPress实例中的/ wp / wp-content - Media file uploads go to /wp-content instead of /wp/wp-content in a subdirectory-installed instance of WordPress WordPress SFTP自动更新-找不到wp-content目录 - Wordpress sftp automatic update - Could not find the wp-content directory 尝试在Wordpress中上载图像时,错误“无法创建目录/ wp-content / uploads”的所有可能的解决方法是什么? - What are all the possible fixes to the error 'Unable to create directory /wp-content/uploads' when trying to upload images in Wordpress? 新安装的Wordpress 3.9抛出错误:上传图像时“无法创建目录wp-content / uploads / 2014/09” - New install Wordpress 3.9 is throwing error: “Unable to create directory wp-content/uploads/2014/09” when uploading an image Nginx - wordpress fpm - 在 wp-content/uploads 中存储的图像上获取 404(到 EFS 的符号链接) - Nginx - wordpress fpm - getting 404 on images stored in wp-content/uploads (symbolic link to EFS)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM