• Can you help us troubleshoot the 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.”

    We get this consistently whenever we user the SFTP plugin to upload a file from a local drive.

    We do NOT encounter this error when we upload a plugin via the SFTP plugin from wordpress plugin directory.

    Linux RHEL ES release 4
    Apache/2.0.64 (Unix)
    MySQL client version: 5.1.45
    php5.3
    PHP extension: mysqli

    upload_max_filesize = 64M
    post_max_size = 64M

    SuexecUserGroup domain_admin domain_admin

    Tried:
    – changing user group (domain_admin;apache apache;apache)
    – changing permission from 755 to 775 and 777

    Error log:
    [error] [client IP] PHP Warning: An unexpected error occurred. Something may be wrong with www.remarpro.com or this server’s configuration. If you continue to have problems, please try the support forums. (WordPress could not establish a secure connection to www.remarpro.com. Please contact your server administrator.) in /home/domain_admin/www/domainname.com/wp-admin/includes/translation-install.php on line 59, referer: https://domain_alias.com/wp-admin/plugins.php

    also in /wp-includes/update.php on line 295, 119, 457
    /wp-admin/includes/plugin-install.php on line 83

  • The topic ‘File is empty error trying to upload files via sftp’ is closed to new replies.