First time I faced this problem & trying to find out solution but it seems to me that it happens very few and that is why no more solution has been found like this & that is why I am here.

WordPress Import Message:

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 am getting above message when trying to import a previously imported file like the bellow image. Could you please tell me how to solve this?

enter image description here

I already tried to find the solution by googling but could not yet?

  • 1
    the error itself states the problem, did you checked upload_max_filesize? are you working on local server like xampp etc? – Arsalan Mithani Feb 19 '17 at 16:52
  • yes, i am working in localhost but i exported the file from live server. but where is the file size declaration? -thanks – Shihab Feb 19 '17 at 16:56
  • learn how to google : See this, tell me one more thing how much space is left in your dirve where you've installed local server? – Arsalan Mithani Feb 19 '17 at 17:02
  • i added my answer below with a brief – Arsalan Mithani Feb 19 '17 at 17:25

The error itself states the problem, increase the upload limit in your php.ini.

To increase the maximum upload file size, open your php.ini file in the "xampp/php/php.ini" directory. search for upload_max_filesize and increase the value like :

upload_max_filesize = 128M

Try googling the errors first to find the solution, you are not only one who faced this issue try pasting the exact error so you can find the relevant results. See the search here

| improve this answer | |

In order to fix this problem, you need to navigate into your cpanel and change the PHP functions to increase the size.

Source: https://www.youtube.com/watch?v=lGJrlvV_vQ4

| improve this answer | |
  • In the comments on the question, it was stated that this was happening in a localhost context. I don't think cpanel was the issue here. – Pat J Apr 17 '18 at 14:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.