WordPress.org

Ready to get started?Download WordPress

Forums

Add Local Avatar
Clash with WP-FB-Autoconnect (2 posts)

  1. threemonkee
    Member
    Posted 2 years ago #

    Hi, I use Add Local Avatar with WP-FB-Autoconnect and it gives warning message:
    Warning: Missing argument 5 for jfb_wp_avatar() in [the_path] on line 277

    The warning message showed up everywhere any avatar shows up. Turns out it clashes with WP-FB-Autoconnect in the function.

    Is there any solution for this clash yet? Thank you before.

    http://wordpress.org/extend/plugins/add-local-avatar/

  2. giangel84
    Member
    Posted 2 years ago #

    Yes,
    I did a change in the code.

    1)Take the 277 line into Main.php file and find the fifth (5°) argument.
    2)delete the $alt variable.

    Example:

    Original function
    function jfb_wp_avatar($avatar, $id_or_email, $size, $default, $alt)

    Modified function
    function jfb_wp_avatar($avatar, $id_or_email, $size, $default)

    This allow you to fix the issue.
    Alt value error on <img> html tag isn't a big problem! :)
    Bye!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic