Support » Plugin: Simple Author Box » Fatal error: Uncaught ArgumentCountError: on function Simple_Author

  • Resolved santi6291

    (@santi6291)


    The following error is thrown for PHP versions 7.1 or higher, the plugin version this happens on is: 2.3.14

    Fatal error: Uncaught ArgumentCountError: Too few arguments to function Simple_Author_Box::replace_gravatar_image(), 4 passed in /var/www/html/wp-includes/class-wp-hook.php on line 288 and at least 5 expected in /var/www/html/wp-content/plugins/simple-author-box/inc/class-simple-author-box.php:114 Stack trace:
    #0 /var/www/html/wp-includes/class-wp-hook.php(288): Simple_Author_Box->replace_gravatar_image('<img src='https...', 176, 64, '')
    #1 /var/www/html/wp-includes/plugin.php(206): WP_Hook->apply_filters('<img src='https...', Array)
    #2 /var/www/html/wp-content/plugins/add-local-avatar/avatars.php(1446): apply_filters('get_avatar', '<img src='https...', 176, 64, '')
    #3 /var/www/html/wp-includes/admin-bar.php(279): get_avatar(176, 64)
    #4 /var/www/html/wp-includes/class-wp-hook.php(288): wp_admin_bar_my_account_menu(Object(WP_Admin_Bar))
    #5 /var/www/html/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters('', Array)
    #6 /var/www/html/wp-includes/plugin.php(544): WP_Hook->do_action(Array)
    #7 /var/www/html/wp-includes/a in /var/www/html/wp-content/plugins/simple-author-box/inc/class-simple-author-box.php on line 114
    • This topic was modified 1 year, 4 months ago by santi6291.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal error: Uncaught ArgumentCountError: on function Simple_Author’ is closed to new replies.