• Recently SOME roles within WordPress were able to upload media are now getting an error with uploads (jpgs).

    “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.”

    The php.ini is set at:
    upload_max_filesize = 64M;
    post_max_size = 64M;

    I recently added the following to the php.ini:
    memory_limit = 128M;
    max_excecution_time = 600;
    max_input_time = 600;

    In the wp-config.php it is set at:
    /** Memory Limit */
    define(‘WP_MEMORY_LIMIT’, ’64M’);

    I did create a phpinfo.php file and everything looks right.

    In the admin or editor roles, we can upload the same images without an issue. The permissions on the author role didn’t change. I use User Role Editor, and do not see any changes. Therefore I believe it is a WordPress issue. Where do I find the permissions for Media Uploads?

    Thank you,
    Jim

Viewing 1 replies (of 1 total)
  • If you didn’t make changes before the issue cropped up, it could’ve a change on your server. Just because you change your php.ini doesn’t mean you will get that much memory. Your host can limit it to a lower value.

    Is suggest you give your host a call and see if they can shed some light on this.

Viewing 1 replies (of 1 total)

The topic ‘Some roles can't upload media’ is closed to new replies.