WordPress.org

Ready to get started?Download WordPress

Forums

Add Local Avatar
Warnings when clicking the 'update avatar' button from the side (2 posts)

  1. surveysayz
    Member
    Posted 3 years ago #

    After a successful run with the free Add Local Avatar plugin, I purchased the additional sidebar widget for its front end functionality. I receive the following warning (x5) with each click of the 'update avatar' button (add or delete).

    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'stdClass::has_cap' was given in /home/cleaninstall/public_html/wp-includes/capabilities.php on line 1036

    The avatar will still be uploaded or removed, but it seems to require a manual page refresh when trying to add and delete an avatar, back to back. Otherwise it takes two tries. Although, I expect that may be a side effect of the warnings being rendered.

    To rule out compatibility issues with other plugins or corrupted databases, I've tested this on a fresh install of WP 3.1.3 (new account, new DB) with these being the only two plugins active and installed.

    I've reproduced this locally and on a remote server, and verified it's display on several networks, platforms and browsers.

    The author believes it's an issue with my PHP warning level messages and as a final suggestion, he's recommended that I add the following to the widget plugin:

    <?php error_reporting (E_ALL ^ E_NOTICE); ?>

    or with the following parameter:

    E_ALL ^ (E_NOTICE | E_WARNING)

    The server is running PHP 5.2.17 and set to the default recommended value for error reporting (6135).

    Neither bits of code have been effective in 'hiding' the warnings, which could indicate a server issue or user err, however, this is also the only plugin that I've run across, in dozens of plugins and sites, that has warnings to display, where the default level of error reporting would be an issue.

    Surely, there must be a better solution than changing my level of error reporting to hide the warnings, for this one plugin.

    If this were happening in a free plugin, I probably would have abandoned it and moved on, but because it's a paid plugin, I thought it would be worth mentioning.

    Does this look familiar to anybody or am I the only one?

    Thank you for your time!

    SS

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

  2. Kevin
    Member
    Posted 2 years ago #

    I'm having this same problem. I have to upload the avatar twice in order for it to work from the side widget. Were you able to figure out the problem?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic