rodrigoprimo / social-connect

WordPress plugin for signup/login using social media providers.
http://wordpress.org/extend/plugins/social-connect/
GNU General Public License v3.0
73 stars 40 forks source link

Warning: Missing argument 5 for sc_filter_avatar() #45

Closed dipaksaraf closed 10 years ago

dipaksaraf commented 10 years ago

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

rodrigoprimo commented 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?

dipaksaraf commented 10 years ago

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

rodrigoprimo commented 10 years ago

If you have Add Local Avatar enabled it is likely that you have the same issue that vicchi described in the link you sent.

dipaksaraf commented 10 years ago

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.

rodrigoprimo commented 10 years ago

This fix should be done in Add Local Avatar. But thanks anyway for asking.