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:
wp-includes
and wp-admin
folders and replaced them manually.wp-content/uploads
folder. To make sure they are working, I have deleted wp-content/uploads/2014
folder, 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
)WP_DEBUG
definition to true
, I have even defined WP_DEBUG_DISPLAY
to true
, no help.wp-admin/media-new.php
, using multi uploader, file is freezing at "Crunching…
" step, but old browser upload works flawlessly.safe_mode
is set as off
. There is not a mod_security
option in my php.ini. My upload_max_filesize
in php.ini
is set to 20M
, memory_limit
is 256M
, 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.AddType x-mapp-php5 .php .php4
to the end of .htaccess
as 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,
You may be here because you can't upload images to your WordPress site. The most common reasons your Media Library has stopped working properly are incompatible plugins and/or themes, WordPress HTTP error, and improperly set file permissions.
It's possible that you're seeing an HTTP error when uploading images to WordPress because you've exceeded your PHP memory limit. That means your server doesn't have enough available memory for the upload process to complete successfully.
See if custom post type has any files that are in UTF-8. If you change it to ANSI, that should help, if thats an issue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With