Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #453391

    Hi there

    I am getting this error while trying to upload demo

    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 or by post_max_size being defined as smaller than upload_max_filesize in php.ini.

    I have tried using the .htaccess method, I have also tried creating a user.ini file and creating a php.ini file (i have no access to php.ini as I am on a shared hosting) and putting them in the root folder and also inside the wp-admin folder, but none of these methods work.

    The weird thing is the php.ini method worked on my main domain, but would not work on my other domains (which is on the same hosting). Can you look into this?

    Thanks!

    #453518

    Hi!

    Put a phpinfo.php file in your install to check the value of the post_max_size and upload_max_filesize settings. If your php.ini configuration is indeed not working you’ll need to contact your hosting provider to change that for you.

    Regards,
    Josue

    #453536

    Hi Josue

    Here’s what I get

    post_max_size 48M
    upload_max_filesize 32M

    I did contact GoDaddy hosting support about this, and they told me I can easily override the settings on my php.ini by using a user.ini file or putting a line of code on my wp_config file. So far none of these methods work.

    Any suggestions?

    #453543

    Hi,

    Can you please create me a WordPress administrator account? post it here as a private reply.

    Regards,
    Josue

    #453547
    This reply has been marked as private.
    #453549

    By the way, let me just mention again that the php.ini file I used which has a value of 64M for both post_max and upload_max did work on my main domain. I placed it inside the wp-admin folder. I have no idea why it won’t work on my other domains within the same hosting account.

    #453812

    Hey!

    I think it’s best if you contact your hosting provider regarding the issue. This is clearly a server related issue so their help will be substantial. Anyway, if you can increase the wp memory limit, it might help. Please refer to this link: http://www.wpbeginner.com/wp-tutorials/fix-wordpress-memory-exhausted-error-increase-php-memory/

    Best regards,
    Ismael

    #454558

    Got it. I will get in touch with my hosting provider and update you on this. Thanks!

    #454793

    We looking forward to hearing from you :)

    Regards,
    
Josue

    #455037

    Hey everyone!

    My hosting provider (GoDaddy) finally figured it out for me. Here’s what they asked me to do

    1. I changed my PHP version to 5.5 (cpanel under software > select PHP version)
    2. I created a .user.ini file (notice the ‘dot’ before the word user as opposed to just user.ini) inside my public_html folder
    3. Put in the necessary codes
    4. All fixed!

    Before this both user.ini file and php.ini didn’t do the trick. According to the support agent I spoke to user.ini only works for php 5.2 and 5.3 while 5.4 and 5.5 should be php.ini if you need to change some php settings.

    I hope this fix will help other people having post_max_size and max_file_upload issues with their hosting provider. I literally went through a ton of resources on the web but no one mentioned that choosing the right PHP version actually mattered. This was one of the main reasons (I think) the previous user.ini and php.ini file I created didn’t work. Plus I don’t know why ‘dot user dot ini’ worked and ‘user dot ini’ didn’t.

    Thanks everyone!

    • This reply was modified 9 years, 5 months ago by Archie.
    #455191

    Hey!

    Thank you for sharing your solution, we are glad all is working fine now :)
    Let us know if you have any other questions or issues and have a great weekend!

    Cheers!
    Yigit

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Demo Import Still Not Working’ is closed to new replies.