Skip to:
Content
Pages
Categories
Search
Top
Bottom

Avatar upload error (different than sticky post)

  • when uploading an image thats too big, i get the following error:

    Fatal error: Out of memory (allocated 41680896) (tried to allocate 2448 bytes) in /home/njsurfing/www/www/users/wp-admin/includes/image.php on line 162

    Thats fine for me, but my users wont understand. is there anyway to make it that if they upload an image too big that buddypress makes it smaller so that they can use it?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Have a look at https://codex.buddypress.org/how-to-guides/changing-internal-configuration-settings/ (“avatar specific settings”).

    However, that’s a PHP memory limit which you might want to see if you can increase on your host. It currently appears to be 40Mb-ish? Try setting to at least 64Mb, as such (in wp-settings.php) by doing this:

    define(‘WP_MEMORY_LIMIT’, ’64M’);

    even if its 64mb, wouldnt it quickly fill up if users added a bunch of 2mb pics? is there an option to say, sorry this image is too large, it needs to be xyz size to be posted here? or an option to have it resized automatically?

    thanks for your help, i am looking into the 64mb setting though.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Avatar upload error (different than sticky post)’ is closed to new replies.
Skip to toolbar