Closed dipaksaraf closed 10 years ago
I can't reproduce this warning on my local environment. My first guess is that your theme or a plugin you have enabled overrides get_avatar() function and calls apply_filters('get_avatar') with just four argument instead of five.
Could you disable all plugins, switch to the default theme and check if you get the same warning?
Can you have a look at this discussion if this help in this context:
http://wordpress.org/support/topic/get_avatar-filter-hook-missing-5th-argument
If you have Add Local Avatar enabled it is likely that you have the same issue that vicchi described in the link you sent.
Yes, this is the reason I was wondering, if the fix is to be done in social-connect plugin or add local avatar plugin. So shared the link with you, since the warning is appearing when the debug mode is on, else on live site it is not showing this warning.
Any thoughts?
Date: Thu, 6 Mar 2014 09:57:09 -0800 From: notifications@github.com To: social-connect@noreply.github.com CC: dipaksaraf@hotmail.com Subject: Re: [social-connect] Warning: Missing argument 5 for sc_filter_avatar() (#45)
If you have Add Local Avatar enabled it is likely that you have the same issue that vicchi described in the link you sent.
— Reply to this email directly or view it on GitHub.
This fix should be done in Add Local Avatar. But thanks anyway for asking.
I am not sure if this is an issue or wrong configuration, but I am getting the following waring message:
Warning: Missing argument 5 for sc_filter_avatar() in /XXXX/public_html/development/wp-content/plugins/social-connect/social-connect.php on line 293
Can you suggest where the problem is?
Thanks Dipak