I'm struggling from an error on WordPress 3.8.1.
Whenever I try to upload a media to a post, it does not add, it says An error occurred in the upload. Please try again later..
But the weirder thing is that it is shown on dashboard/media/library even after this issue.
I also cannot see uploaded attached media to my posts (edit post / [add media button]) / media library / uploaded to this post, but in dashboard/media/library section , these old uploaded images are shown properly that which is uploaded to what post.
I have tried the followings:
- Re-installed both my local version and en_US from both update manager and manually
- Deleted
wp-includesandwp-adminfolders and replaced them manually. - I have checked chown and chmod of the
wp-content/uploadsfolder. To make sure they are working, I have deletedwp-content/uploads/2014folder, and after first upload that shows this error, the folder is created with right chown and chmod and files were there (wp-content/uploads/2014/01/26/file with resolutions.jpg) - I have deleted unneeded plugins, deactivated all plugins and themes, switched back to WordPress's default plugin, I have even reset active plugins json object at wp_options from SQL, did not help.
- I have enabled php error logs, nothing related is shown
- I have altered the
WP_DEBUGdefinition totrue, I have even definedWP_DEBUG_DISPLAYtotrue, no help. - When I try to add from
wp-admin/media-new.php, using multi uploader, file is freezing at "Crunching…" step, but old browser upload works flawlessly. - I'm managing the VPS and hosting the blog myself with CentOS 6.5 x64.
safe_modeis set asoff. There is not amod_securityoption in my php.ini. Myupload_max_filesizeinphp.iniis set to20M,memory_limitis256M, only 3 sites are hosted and memory is quite empty while testing these. This also happens even with 50kb .jpg images, so this should not be related. - I have re-uploaded all wordpress files from a clean downloaded zip, no help.
- I have tried adding
AddType x-mapp-php5 .php .php4to the end of.htaccessas suggested here, that did not help at all.
The thing is that, I have tried a clean installation to another domain on the same server, it is working as it should.
What could be the problem? How can I fix this?
Thanks in advance,