WordPress.org

Ready to get started?Download WordPress

Forums

Add Local Avatar
Avatar retrieval error causes internal server error (5 posts)

  1. Telofy
    Member
    Posted 9 months ago #

    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: 108.162.221.239, server: www.derpyhoovesnews.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-fpm.sock:", host: "www.derpyhoovesnews.com"

    @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,
    Telofy

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

  2. peterwsterling
    Member
    Plugin Author

    Posted 9 months ago #

    Check the twitter id you have stored against that user.

  3. Telofy
    Member
    Posted 9 months ago #

    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.

  4. peterwsterling
    Member
    Plugin Author

    Posted 7 months ago #

    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?

  5. Telofy
    Member
    Posted 7 months ago #

    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.

Reply

You must log in to post.

About this Plugin

About this Topic