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

Avatars not working

All of the sudden my forums show a broken image for my avatar http://vehiclefits.com/forums/
I went to re-upload an avatar and selected 50KB jpeg, it says: "You cannot save images of this type (2)."

Where would I start to debug this?

Comments

  • Options
    peregrineperegrine MVP
    edited October 2013

    Welcome to the Community.

    read the tutorial on

    http://vanillaforums.org/discussion/22666/how-to-upload-music-sound-and-movie-files

    and read this at some point - it will be helpful

    http://vanillaforums.org/discussion/23130/forum-post-ettikett-etiquette

    it is all related to your problem.

    and post the config statements you have related to uploads

    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

    So I removed the following nginx rule designed to stop hotlinking:

    location ~*.(jpg|jpeg|gif|png)$ {

        #       valid_referers none blocked vehiclefits.com *.vehiclefits.com;
        #        if ($invalid_referer) {
        #               return   403;
        #       }
        #}
    

    That rule did not break any images anywhere on my site, except Vanilla forums. It worked exactly as intended otherwise. It also only blocked the image avatar & not the theme files.

    However the image still appears broken on my profile edit page, and it still doesn't let users upload a new avatar, instead saying "cannot save images of this type (2)" - what is the significance of the (2)? That is not a very friendly error message. Are jpegs in fact blocked? If so what formats are allowed? etc..

  • Options
    peregrineperegrine MVP
    edited October 2013

    @joshribakoff

    in addition to this

    http://vanillaforums.org/discussion/comment/194484/#Comment_194484

    check your phpinfo.

    this plugin allows you to view phpinfo in dashboard

    http://vanillaforums.org/addon/versioncheck-plugin

    look at the settings for gd - check if everything is enabled correctly for jpeg support.

    gd
    
    GD Support  enabled 
    JPEG Support    enabled 
    

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

Sign In or Register to comment.