cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error import xml file from old word press to new godaddy word press

i want make import xml file from old word press to new godaddy word press, after click upload and submit showing error "This site can’t be reached", click refresh showing " Sorry, there has been an error.
File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your php. or by post_max_size being defined as smaller than upload_max_filesize in php"
XML file is 604KB. how to fix it?
Thank advance.

4 REPLIES 4
Helper VI
Helper VI

Re: Error import xml file from old word press to new godaddy word press

@maccabi01 that seems odd. I think by default the upload_max_filesize is 2MB, but you can change. Probably the error raises because a connectivity issue, or max_execution_time reached. I'd change the php  & WP settings.

To do that, you you should create a file named .user.ini in your html root with:

memory_limit = 1024M
max_execution_time = 320
max_input_time = 240
post_max_size = 120M
max_input_vars = 2000
file_uploads = 6
max_file_uploads = 20
upload_max_filesize = 100M

And also, you can edit the wp config file and add:

define( 'WP_MAX_MEMORY_LIMIT', '1024M' );

PS: If you are in Economy or Deluxe hosting, you should change the 1024M values to 512M. 

Hope it helps!

If you find my replies helpful, give me a like or kudo 🙂
And if I solved your issue, mark it as solution 😄

Re: Error import xml file from old word press to new godaddy word press

 

 

I have follow your instruction to add and create the user.ini, but the problem still exits,

Anything wrong with my step?

Helper VI
Helper VI

Re: Error import xml file from old word press to new godaddy word press

@maccabi01 does your file have a dot at the beginning of the name?

It should be .user.ini

 

Let me know if it solves it!

If you find my replies helpful, give me a like or kudo 🙂
And if I solved your issue, mark it as solution 😄

Re: Error import xml file from old word press to new godaddy word press

I have try it. Still same......