Wordpress - Can't Upload Any Image

cocabom

Registered Member
Joined
Jun 26, 2010
Messages
97
Reaction score
26
Hi,

May I know how to fix these problem? I tried to upload image on my site but this error appear.

?? has failed to upload due to an error
File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your php.ini or by post_max_size being defined as smaller than upload_max_filesize in php.ini.



I already contact hosting provider but they said that their server not problem and this problem not come from them.. WTF..

Hope someone can help me..
 
As the error clearly says, you need to edit your PHP.ini file to allow uploading or modify upload size. Try uploading a very small image and see if it goes through. If you get the same error, then uploading is disabled and you need to enable it from php.ini
 
As the error clearly says, you need to edit your PHP.ini file to allow uploading or modify upload size. Try uploading a very small image and see if it goes through. If you get the same error, then uploading is disabled and you need to enable it from php.ini

Or ask your host if it's possible to change this.
Installed a new Plugin? Enough space on your hoster?
Not an special filename?
Sometimes it fixes himself...
Maybe deactivate all plugins and try again.
 
As the error clearly says, you need to edit your PHP.ini file to allow uploading or modify upload size. Try uploading a very small image and see if it goes through. If you get the same error, then uploading is disabled and you need to enable it from php.ini

How to edit that files?? Where is php.ini located??
 
[Incorrect advice here]. You can edit the php.ini file found in your website Cpanel/backend/server
 
Last edited:
Or ask your host if it's possible to change this.
Installed a new Plugin? Enough space on your hoster?
Not an special filename?
Sometimes it fixes himself...
Maybe deactivate all plugins and try again.

I already try all of this but still not working..:(
 
In other words, the file is too small to be uploaded.
Seriously? This made me laugh hard.

I already contact hosting provider but they said that their server not problem and this problem not come from them.. WTF..
What hosting are you using? What plugins are you using? Provide with more info.
 
Yes I misread the error message :o

My mistake. But only trying to help.

Seriously? This made me laugh hard.


What hosting are you using? What plugins are you using? Provide with more info.
 
Create a new file named "php.ini" and put the following code inside that file

Code:
memory_limit = 64M
upload_tmp_dir = "/home/user/public_html/tmp"
It will resolve your issue and you will not get memory limitation problems in the future.

P.S. Don't forget to change "user" with your username and also put the php.ini in your wp-admin folder, enjoy ;)
 
Last edited:
Seriously? This made me laugh hard.


What hosting are you using? What plugins are you using? Provide with more info.

I still not upload any plugins and using this hosting: http://www.fivio.com/

I already tried to re-install again my wordpress but this problem still can't solve..
 
Create a new file named "php.ini" and put the following code inside that file

Code:
memory_limit = 64M
upload_tmp_dir = "/home/user/public_html/tmp"
It will resolve your issue and you will not get memory limitation problems in the future.

P.S. Don't forget to change "user" with your username and also put the php.ini in your wp-admin folder, enjoy ;)

I already tried this just now but what I got was I cannot enter my wordpress admin anymore.. There are Internal Server Error appear.

How to handle it??
 
Back
Top