-
AuthorPosts
-
June 2, 2015 at 9:34 pm #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!
June 3, 2015 at 3:39 am #453518Hi!
Put a phpinfo.php file in your install to check the value of the
post_max_size
andupload_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,
JosueJune 3, 2015 at 4:00 am #453536Hi Josue
Here’s what I get
post_max_size 48M
upload_max_filesize 32MI 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?
June 3, 2015 at 4:10 am #453543Hi,
Can you please create me a WordPress administrator account? post it here as a private reply.
Regards,
JosueJune 3, 2015 at 4:14 am #453547This reply has been marked as private.June 3, 2015 at 4:16 am #453549By 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.
June 3, 2015 at 3:03 pm #453812Hey!
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,
IsmaelJune 4, 2015 at 4:01 pm #454558Got it. I will get in touch with my hosting provider and update you on this. Thanks!
June 4, 2015 at 11:10 pm #454793We looking forward to hearing from you :)
Regards,
JosueJune 5, 2015 at 10:45 am #455037Hey 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, 6 months ago by Archie.
June 5, 2015 at 5:37 pm #455191 -
AuthorPosts
- The topic ‘Demo Import Still Not Working’ is closed to new replies.