• I currently have my website hosted at NameCheep. Considering I haven’t updated it in years and it gets 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 docker app, and tried uploading the .xml file. However, every time I do I get 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_size being defined as smaller than upload_max_filesize in php.ini.

    To rectify this issue, I tried updating the “upload_max_filesize” and “post_max_size” 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 changes stayed in effect after I restarted the container. However, still am getting the error message, and WordPress’s Site Health plug is still reporting “Upload max filesize = 2M” and “PHP post max size = 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 back 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 @appleguideweb,
    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 clicking on Install Now button. For now we have Run Importer click on that button and upload xml file as you want to import.

    Thanks

    Hi @appleguideweb
    Thanks 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 docker container and check your site health.

    php_value upload_max_filesize 256M
    php_value post_max_size 256M

    Let us know if this resolves the issue.

    Regards,
    Mashiur R.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.