WordPress.org

Ready to get started?Download WordPress

Forums

Author Avatars List
Notice: Undefined index: action in AuthorAvatarsEditorButton.class.php (7 posts)

  1. mayuxi
    Member
    Posted 1 year ago #

    Thanks for the great plugin!

    I'm debugging my custome theme, so wp_debug switched on, and I got this "Notice" everytime:

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

    How can I fix this?

    http://wordpress.org/extend/plugins/author-avatars/

  2. mayuxi
    Member
    Posted 1 year ago #

    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!

  3. Pbearne
    Member
    Plugin Author

    Posted 1 year ago #

    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

  4. mayuxi
    Member
    Posted 1 year ago #

    >> 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.

  5. Pbearne
    Member
    Plugin Author

    Posted 1 year ago #

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

  6. Pbearne
    Member
    Plugin Author

    Posted 1 year ago #

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

  7. mayuxi
    Member
    Posted 1 year ago #

    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 :D

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.