Support » Plugin: Add Local Avatar » Avatar retrieval error causes internal server error

  • Hi there,

    Thanks for the plugin; it worked quite well for a while. Unfortunately I had to deactivate it just now because it broke the website with the following error (I replaced a few paths and other strings).

    2013/07/16 11:24:35 [error] 28651#0: *772478 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught exception 'Exception' with message 'Make sure you are passing in the correct parameters' in /narf/wp-content/plugins/add-local-avatar/TwitterAPIExchange.php:45
    Stack trace:
    #0 /narf/wp-content/plugins/add-local-avatar/avatars.php(173): TwitterAPIExchange->__construct(Array)
    #1 /narf/wp-content/plugins/add-local-avatar/avatars.php(1393): add_local_avatars->get_twitter_avatar('@sonicfan29d1')
    #2 /narf/wp-content/themes/silverorchid/includes/gazpo_loop.php(43): get_avatar('sonicfan2d91@...', '46')
    #3 /narf/wp-includes/template.php(409): require('/nar...')
    #4 /narf/wp-includes/template.php(383): load_template('/nar...', false)
    #5 /narf/wp-includes/general-template.php(128): locate_template(Array, true, false)
    #6 /narf/wp-content/themes/silverorchid/index.php(68): ge" while reading response header from upstream, client:, server:, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-fpm.sock:", host: ""

    @sonicfan29d1 does not exist, but @sonicfan2d91 does. I suspect the problem may be that the resulting retrieval error wasn’t caught and caused the 500 error, but I didn’t look into it. Hope this helps!

    All the best fluffiness,

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author peterwsterling


    Check the twitter id you have stored against that user.

    What do you mean? It doesn’t exist. The problem is that someone can apparently break the site by typoing their Twitter handle.

    As I said, though, I haven’t investigated whether that’s really the reason, it just looks that way from the error.

    Plugin Author peterwsterling


    When I tat with non-existent Twitter IDs it does not break. Has your on-going testing identified that somethings (perhaps another plugin or your hosting set-up) is the problem?

    Oh, sorry, there was no ongoing testing; I just asked everyone to set up Gravatars… Now I can’t reproduce the problem because I can’t figure out how to get it to load the Twitter avatar in the first place. It either displays the local one or falls back on Gravatar, which seems reasonable.

    This may be unrelated, but there must’ve been an input field #twitter_id in the dialog on the profile page, but I don’t see it anymore.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Avatar retrieval error causes internal server error’ is closed to new replies.