AI Assistant
Notifications
Clear all

PHP Warning when avatar is only local or disabled

4 Posts
2 Users
0 Reactions
1,801 Views
(@janbpunkt)
New Member
Joined: 8 years ago
Posts: 3
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
  [#2426]

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: 8 years ago
Posts: 3
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

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



   
ReplyQuote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 8 years ago
Posts: 6645
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

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: 8 years ago
Posts: 3
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

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