Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Profile Picture Error

edited March 2013 in Vanilla 2.0 - 2.8

It was just brought to my attention that when someone clicks on a users profile picture it just brings up a bunch of code, not the picture it'self. I tested it out and sure enough when viewing a users profile picture clicking it will just bring up what seems to be the images code vs. the image.

I tinkered around in the code but couldn't find anything that would specifically cause this. All the users use FB connect to sign up/in and their default profile pic is taken from FB.

Has this problem been seen before? I wasn't able to find anything easily in the forum already. Here is an image of what it looks like:
image

Comments

  • Options
    peregrineperegrine MVP
    edited March 2013

    what version of vanilla, argh! (this is getting to be a response i wish I didn't have to make).

    have you made custom mods,

    what plugins do you use related to pictures,

    and profile.

    Does it only happen with a particular users photo - if so the image could be corrupted.

    All the users use FB connect to sign up/in and their default profile pic is taken from FB.

        - I don't know how the facebook connect and pic transfer works, but is photo later stored in your uploads directory.  if so, is the image corrupted in the uploads directory.
    

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options
    edited March 2013

    Sorry about that, (I was hoping that this wasn't new, but something I couldn't locate.)

    I'm running 2.0.18.4

    Using default everything (including theme) with a few plugins (none customized).

    No plugins/mods for profile pictures other than the FB login plugin which grabs the users FB image from graph.

    Happening to all users photos who's picture is linked with FB & haven't uploaded their own.

    I checked the uploads directory and the only user images in there are the ones that were manually changed by users. None of the FB images are in there, as they are updated by graph whenever the users change their FB profile images.

  • Options
    422422 Developer MVP
    edited March 2013

    Just occured to me that could be the image the person uploaded lol

    check you have correct extensions for images in config enabled

    use firebug and look at the a href for the profile image, my guess is it has .php instead of .jpg or is otherwise malformed

    There was an error rendering this rich post.

  • Options

    Looking at it, it gives the image source as

    <a class="fancybox" href="http://graph.facebook.com/172200253/picture?width=200&amp;height=200"><img src="http://graph.facebook.com/172200253/picture?width=200&amp;height=200"></a>

    which resolves to the actual .jpg when requested, but doesn't seem to when fancybox tries to.

  • Options
    422422 Developer MVP

    is fancybox standard with vanilla, or is it a plugin you have added

    There was an error rendering this rich post.

  • Options
    edited March 2013

    I thought it was standard but a quick check of plugins shows that there is a fancybox plugin in use. When I disable it, you can't click on profile images any more, thus ends the problem.

  • Options
    422422 Developer MVP

    Cool

    There was an error rendering this rich post.

Sign In or Register to comment.