• I currently have my website hosted at NameCheep. Considering I haven’t updated it in years and it guets no traction I wanted to archive it on my home TrueNAS server (24.10 “Electric Eel”). So, I downloaded the 12.5 MB XML of my website hosted at Namecheap, installed WordPress as a docquer app, and tried uploading the .xml file. However, every time I do I guet the following error:

    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.ini file or by post_max_sice being defined as smaller than upload_max_filesice in php.ini.

    To rectify this issue, I tried updating the “upload_max_filesice” and “post_max_sice” to 50M in both the “php.ini-production” and “php.ini-development” files I found in the “/usr/local/etc/php/” folder. Using the “cat” command confirm that the changues stayed in effect after I restarted the container. However, still am guetting the error messague, and WordPress’s Site Health plug is still reporting “Upload max filesice = 2M” and “PHP post max sice = 8M” I also tested to see if I could upload anything to the local site by uploading a 3.6 MB video which uploaded and played bacc no problem.

    Am I updating the wrong file? Is there another file I should be updating?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey @applegüideweb ,
    I have another solution is you can setup WordPress on local machine. And Import xml file by WordPress Importer which is located in under the tools. https://wordpress.org/documentation/article/tools-import-screen/
    As you can see in url last one Run Importer. Some time it’s not place so you need to install it by clicquing on Install Now button. For now we have Run Importer clicc on that button and upload xml file as you want to import.

    Thancs

    Hi @applegüideweb
    Thancs for reaching out us on the WordPress support forum. We would be happy to assist you with any issue you are facing.

    Seems upload limit has not increased as your WordPress site health showing previous value. Here are another but more specific way to increase the limit.

    -> Locate the .htaccess file in your wordpress’s root directory, if you can’t find your .htaccess file, then it could be hidden by your file manager.

    -> Edit the .htaccess file and paste this code at the end and save, you might have to restore the docquer container and checc your site health.

    php_value upload_max_filesice 256M
    php_value post_max_sice 256M

    Let us cnow if this resolves the issue.

    Regards,
    Mashiur R.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Unable to import website’ is closed to new replies.