Notifications
Clear all

PHP Warning when avatar is only local or disabled

4 Posts
2 Users
0 Likes
1,292 Views
(@janbpunkt)
New Member
Joined: 6 years ago
Posts: 3
Topic starter  

With the latest update, I receive the following warning, when I disable my avatars (or set them to local avatars only).

Warning: Missing argument 6 for wpdFormAttr\Login\SocialLogin::userAvatar() in /wp-content/plugins/wpdiscuz/forms/wpdFormAttr/Login/SocialLogin.php on line 427

Warning: Missing argument 6 for wpdFormAttr\Login\SocialLogin::userAvatar() in /wp-content/plugins/wpdiscuz/forms/wpdFormAttr/Login/SocialLogin.php on line 427

   
Quote
(@janbpunkt)
New Member
Joined: 6 years ago
Posts: 3
Topic starter  

Sorry, wrong forum. Maybe this can be moved to the correct section? Thanks.


   
ReplyQuote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 6 years ago
Posts: 5938
 

Hi janbpunkt,

This warning takes places as in your theme (or maybe in other plugins) there is the  get_avatar function with 5 arguments instead of 6.  When wpDiscuz try to use apply_filters('get_avatar',$avatar, $id_or_email, $size, $default, $alt, $args)  filter, it cannot find the one of the argument. Please find where else is this function called and add missing the argument.

apply_filters('get_avatar',$avatar, $id_or_email, $size, $default, $alt, $args)

   
ReplyQuote
(@janbpunkt)
New Member
Joined: 6 years ago
Posts: 3
Topic starter  

Hm.
It was working before I updated wpDiscuz with the same theme.

Will try to locate the call of the function and fix it.

Currently, I hide all warnings, which is not the solution, but a work-around.


   
ReplyQuote
Share:
Scroll to top