4

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?

4
  • 1
    the error itself states the problem, did you checked upload_max_filesize? are you working on local server like xampp etc? Feb 19, 2017 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, 2017 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? Feb 19, 2017 at 17:02
  • i added my answer below with a brief Feb 19, 2017 at 17:25

2 Answers 2

3

You need to 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
0
1

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

1
  • 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, 2018 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.