A common error in all versions of WordPress.
The uploaded file could not be moved to /home/public_html/wp-content/uploads/
When? – The error appears at uploadthe files via WordPress / dashboard / write post .
Why? – Because the blog was moved (FILES + database) from one server to another and lost attributes / Permissions folders (chmod). (This is a particular case. The reasons can be others)
The solution is very simple. We edit the following line in PHP.ini:
safe_mode_gid=ON
We then change the folder's permissions “uploads”.
chmod 777 wp-content/uploads
Pleasant fun! :)