Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] image exceeds the maximum upload size – but it’s only 11KB


  • ma3ry
    Participant

    @ma3ry

    I am using BuddyPress Profiles with eMember Membership plugins, but I can’t upload a Profile Photo even though it is only 11KB

    I have increased wp-config define(‘BP_AVATAR_ORIGINAL_MAX_FILESIZE’, 5120000);
    My server allows upload_max_filesize = 64M
    post_max_size = 64M

    This is not a server issue because I have a sister website running the same software and it has no problems.

    This is also not a matter of file size since I’m only trying to upload 11KB.

    I have tried it with all plugins deactivated and with twenty-fifteen theme.

    Any ideas?

    Thank you!

Viewing 10 replies - 1 through 10 (of 10 total)

  • Henry Wright
    Moderator

    @henrywright

    Hi @ma3ry

    Can you post the error message you’re getting?


    ma3ry
    Participant

    @ma3ry

    Thank you.

    headshot-2016-300px.jpg exceeds the maximum upload size for this site.


    Henry Wright
    Moderator

    @henrywright

    That’s a strange one. 11kb is tiny. Can you try another image? Perhaps make a copy of the profile image you used here on this forum.


    ma3ry
    Participant

    @ma3ry

    I have tried it with images from 4kb to 12 kb – jpg, gif and png. Nothing works. However I can take a pic of myself and it uploads perfectly.

    I can upload to Media Library without any problems. The only issues seems to be uploading a BuddyPress profile pic.

    Could one of my files be corrupt? Should I change some files? I don’t know what else to try.


    Henry Wright
    Moderator

    @henrywright

    Can you try ruling out your set up?

    Disable all plugins (aside from BuddyPress) and activate Twenty Fifteen. Then try uploading a profile pic. If that test works then we can safely say your server is working as it should be.


    ma3ry
    Participant

    @ma3ry

    As I said in my original post “I have tried it with all plugins deactivated and with twenty-fifteen theme.”

    However I just got another clue. I reinstalled BuddyPress and this time when I tried to upload an image I got the following different error.

    “Upload Failed! Error was: That photo is too big. Please upload one smaller than 200 B”

    200 bytes is pretty darned small. Why would this be?

    Does this info help at all?


    Henry Wright
    Moderator

    @henrywright

    Can you try adding this to your theme’s functions.php:

    add_filter( 'bp_core_avatar_original_max_filesize', function() {
        return 5120000; // 5mb
    } );

    ma3ry
    Participant

    @ma3ry

    OMG Henry! That FIXED IT!!!!! Hallelujah!!! Thank you so VERY, VERY MUCH!!!!


    Henry Wright
    Moderator

    @henrywright

    That’s great to hear 🙂

    I just bumped the value to 5mb. Feel free to change the 5120000 value to anything that suits you.


    ma3ry
    Participant

    @ma3ry

    Thank you Henry. I was going to make it 1 or 2 MB but then I’m just asking for lots of people to need help in re-sizing. I’ve got the space so perhaps I’ll leave it. 😉

    Thank you again so very, very much!!!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[Resolved] image exceeds the maximum upload size – but it’s only 11KB’ is closed to new replies.
Skip to toolbar