#1 WordPress forum plugin created by gVectors Team

wpForo – WordPress Forum Plugin
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation

Forum

Home | Forum

wpDiscuz - WordPress Comment Plugin
  • Forums
  • Members
  • Recent Posts
Forums
Main Support Forums
How-to and Troubles...
Avatar Image Too Bi...
 
Share:
Share
Tweet
Share
Notifications
Clear all

Script [Solved] Avatar Image Too Big Maximum Allowed Size is 2MB

    Last Post
RSS

colbytech
Posts: 4
 colbytech
Topic starter
February 3, 2019 8:25 pm
(@colbytech)
New Member
Joined: 3 years ago

I don't know why, I have a couple of users that are trying to upload avatars into the system that are larger than 2MB.  I am wondering why they can't do this?  My site is set to an 8MB maximum upload size; however, it seems that avatars don't follow this parameter.  I have done searches and cannot find an answer for avatar file size.

Any clue on this?  WPForo must be reading the limitation from somewhere, it gives the error as a pop-up on the top right (like a subscription of other notification from the forum).

Topic Tags
avatar error avatar size avatar issues
12 Replies
Sofy
Posts: 4057
Sofy - Facebook Sofy - Twitter
 Sofy
Admin
February 4, 2019 10:31 am
(@sofy)
Support Team
Joined: 4 years ago

Hi @colbytech,

Please let us know the server "post_max_size" value.  You can find it in Dashboard > Forums > Settings > Topics & Posts Tab.

 

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

Reply
colbytech
Posts: 4
 colbytech
Topic starter
February 4, 2019 12:38 pm
(@colbytech)
New Member
Joined: 3 years ago

It is 8MB.

UploadSize8MB.png
Reply
colbytech
Posts: 4
 colbytech
Topic starter
February 11, 2019 8:06 pm
(@colbytech)
New Member
Joined: 3 years ago

Just wondering if there has been any resolution to this?

Reply
Sofy
Posts: 4057
Sofy - Facebook Sofy - Twitter
 Sofy
Admin
February 13, 2019 2:01 pm
(@sofy)
Support Team
Joined: 4 years ago

Hi @colbytech,

Sorry for the delay. 

We'll add a new filter wpforo_avatar_upload_max_filesize in next version release. You'll be able to change the avatar upload size, and set it as you like. For now, wpForo doesn't allow to upload the images bigger than 2MB. Please wait for the next update. 

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

Reply
8 Replies
Bertrand
 Bertrand
(@bertrand)
Joined: 1 year ago

New Member
Posts: 1
May 2, 2021 9:34 am
Reply toSofySofy

Hi,

I'm new here but interested in the max. size avatar image upload matter. Some of my uers have had problems trying to upload their image. Has anything been done in the last 3 years ? I can't find anything on my back end panel...

Thank you,

B.

Reply
Robert
 Robert
Admin
(@robert)
Joined: 6 years ago

Support Team
Posts: 8968
Robert - Twitter
May 4, 2021 6:07 am
Reply toBertrandBertrand
Sofy

@bertrand,

Yes, the hook had been added. You can use it and increase the max avatar size using the hook code below. Put it in the functions.php file of your current active WordPress theme or install the Code Snippets plugin and insert the code as a new code snippet. It'll increase the max avatar size to 5MB, you can change it in the code:

add_filter('wpforo_avatar_upload_max_filesize', function ($size){
return (5*1048576); //5MB
});

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

Reply
Walehub
 Walehub
(@walehub)
Joined: 11 months ago

Active Member
Posts: 12
January 6, 2022 7:20 pm
Reply toRobertRobert
Bertrand
Sofy

@robert It didn't work. The error is the attached screenshot.

 Screenshot_20220106-201737.png
Reply
Chris
 Chris
Admin
(@chris)
Joined: 10 months ago

Support Team
Posts: 1368
January 7, 2022 12:20 pm
Reply toWalehubWalehub
Robert
Bertrand
Sofy

@walehub,

The issue comes that You hadn't added the code properly, or made changes in the PHP file.

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

Reply
Walehub
 Walehub
(@walehub)
Joined: 11 months ago

Active Member
Posts: 12
January 9, 2022 7:00 pm
Reply toChrisChris
Walehub
Robert
Bertrand
Sofy

@chris How do I properly add it? I copied and pasted exactly as it was there

Reply
Chris
 Chris
Admin
(@chris)
Joined: 10 months ago

Support Team
Posts: 1368
January 10, 2022 12:01 pm
Reply toWalehubWalehub
Chris
Walehub
Robert
Sofy

@walehub,

I have checked the hook, and it works correct, in the screenshot you provided is written syntax error, which means that there is a missing symbol, wrong symbol, wrong name etc. but not the hook which Robert has provided. The hook works correct.

 

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

Reply
Walehub
 Walehub
(@walehub)
Joined: 11 months ago

Active Member
Posts: 12
January 19, 2022 12:28 pm
Reply toChrisChris
Walehub
Chris
Walehub
Sofy

@chris thank you..

By the way, where do the uploaded avatars go? I can't find it in attachments. In case I want to delete some avatars, I don't see a way to do that.

Reply
Chris
 Chris
Admin
(@chris)
Joined: 10 months ago

Support Team
Posts: 1368
January 19, 2022 2:30 pm
Reply toWalehubWalehub
Chris
Walehub
Chris
Sofy

@walehub,

This is the Avatar path: /wp-content/uploads/wpforo/avatars/

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

Reply
  All forum topics
  Previous Topic
Next Topic  
Related Topics
  • Show Likers with their avatar
    7 hours ago
  • Disk usage error
    2 months ago
  • Ongoing issue with Avatar Images
    2 months ago
  • Avatars Not Uploading
    2 months ago
  • How to fix user details spacing in post (MOBILE only)
    4 months ago
Topic Tags:  avatar (40), error (25), avatar size (4), avatar issues (6),

Forum Search

Join Us!

Download wpForo plugin
on WordPress.org

wpForo Addons

wpforo-private-messages wpforo-advanced-attachments-128x128 wpforo-embeds-128x128 wpForo User Custom Fields addon wpForo – Blog Cross Posting addon wpForo Ads Manager wpForo – WooCommerce Memberships Integration wpForo Emoticons wpForo – Tenor GIFs Integration
View all Addons »

Recent Topics

  • How to prevent forum users from PASTING / posting multiple colors and font sizes...??

    By Noved, 13 hours ago

  • purchase of add on and it says payment pending

    By ReddBeard, 1 day ago

  • Costume text and image on every forum

    By Vijiki, 2 days ago

  • Forum topics and pages not indexing

    By Vijiki, 2 days ago

  • Can't send confirmation email from topics when suscribe for new topic

    By gilbau, 2 days ago

  • Can't add shortcodes to wpForo

    By avorai, 2 days ago

Topic Tags

  • translation49
  • css49
  • plugin conflict48
  • seo45
  • new features44
  • buddypress42
  • ultimate member40
  • avatar40
  • forum40
  • moderation38
  • login38
  • registration36
  • threaded layout35
  • cache33
  • editor32
  • menu32
  • shortcode31
  • spam29
  • phrases28
  • forum accesses28
View all tags (2163)

Recent Posts

  • RE: Show Likers with their avatar

    Have now found the correct code 😀 are these 3 lines ...

    By Tutrix, 7 hours ago

  • RE: How to prevent forum users from PASTING / posting multiple colors and font sizes...??

    @noved add this to custom css #wpforo #wpforo-wrap ...

    By Tutrix, 10 hours ago

  • RE: Costume text and image on every forum

    @vijiki There is no wpForo2 for the moment. Also forget...

    By dimalifragis, 23 hours ago

  • RE: Can't add shortcodes to wpForo

    @avorai So, SAC.PHP is crashing and it is wpForo the ca...

    By dimalifragis, 23 hours ago

  • RE: purchase of add on and it says payment pending

    Hi @reddbeard, Please move this topic to gVectors Sup...

    By Robert, 1 day ago

  • RE: Can't send confirmation email from topics when suscribe for new topic

    @gilbau, wpForo uses WordPress wp_mail() function. wp...

    By Robert, 2 days ago

  • RE: Forum topics and pages not indexing

    So all is ok from wpForo site. I have nothing to add he...

    By Robert, 2 days ago

Share:
Share
Tweet
Share
  Forum Statistics
20 Forums
9,757 Topics
49.5 K Posts
6 Online
43.7 K Members

Latest Post: Show Likers with their avatar Our newest member: claudettecrotea Recent Posts Unread Posts Tags

Forum Icons: Forum contains no unread posts Forum contains unread posts

Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Powered by wpForo | Copyright © 2016-2022 gVectors Team
Copyright Registration Service - Click here for more information or to register work
wpForo is Registered with the IP Rights Office
Copyright Registration Service

Ref: 4477265538
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation