WordPress.org

Support

Support » Plugins and Hacks » Author Avatars List » Notice: Undefined index: action in AuthorAvatarsEditorButton.class.php

Notice: Undefined index: action in AuthorAvatarsEditorButton.class.php

Viewing 6 replies - 1 through 6 (of 6 total)
  • Also found a depricated call:

    Function: wp_specialchars()
    Used in wp-content/plugins/author-avatars/lib/FormHelper.class.php on line 242.

    > Deprecated in version 2.8.

    Use esc_html() instead.

    Hope it will help to improve the plugin!

    Plugin Author Paul Bearne

    @pbearne

    I will have look at both of these

    did swooping for the esc_html() fix the undefined index?

    Thanks for sending them to me

    Paul

    >> did swooping for the esc_html() fix the undefined index?

    No, it’s not, because these are two separate problem. But of course it fixed this “depricated call” notice.

    >> “Undefined index: action in /wp-content/plugins/author-avatars/lib/AuthorAvatarsEditorButton.class.php on line 46”

    I fixed it like this, add
    $action = isset($_GET['action']) ? $_GET['action'] : null;
    before
    if ($action == $p && !isset($_POST['action'])) {
    at line 46

    Notice is gone, so it’s solved, but not sure if reason is fixed.

    Plugin Author Paul Bearne

    @pbearne

    I have added the fix’s to the head version of the plugin and it will be in the next update

    Plugin Author Paul Bearne

    @pbearne

    Mayuxi send me a link so can include it in the credit for the fix

    Thanks, I hope it helped.

    It’s http://magazeta.com, but website will be open again on January 1st. I will post link to your plugin in /about/ page in “Special Thanks” section 😀

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Notice: Undefined index: action in AuthorAvatarsEditorButton.class.php’ is closed to new replies.
Skip to toolbar