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.

Problem with pictures (avatars and uploads)

2456

Comments

  • peregrineperegrine MVP
    edited April 2014

    @meshugy

    how big are the attachments file size wise? are they jpeg or gif?
    what version of php and gd?

    will it work for a small gif?

    and your version of vanilla is?

    if you run phpinfo. you could create a file to run it, or it is available in ther version check plugin

    it should show you which ini files is loaded (I believe).

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

  • how big are the attachments file size wise?

    I have set the max to 100M, but any size has this problem.

    are they jpeg or gif?

    Any image type fails to create a thumbnail.

    what version of php and gd?

    php 5.3

    What's gd?

    will it work for a small gif?

    no

    and your version of vanilla is?

    2.1b2 with Fileupload 1.7.1

    thanks!

  • peregrineperegrine MVP
    edited April 2014

    I just noticed int the past in some configurations the gd library fails to convert thumbnails on very large jpg

    but you say any file (e.g. a 50k gif will not create thumbnail. correct.

    what other plugins are you using?

    if you run phpinfo. you could create a file to run it, or it is available in the version check plugin

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

    it should show you which ini files is loaded (I believe). gd , etc info.

    point me to a discussion link where you tried to add an attachment on your forum.

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

  • @peregrine said:
    I just noticed int the past in some configurations the gd library fails to convert thumbnails on very large jpg

    but you say any file (e.g. a 50k gif will not create thumbnail. correct.

    Correct, no thumbs of any kind are being created.

    what other plugins are you using?

    Quite a lot!

    if you run phpinfo. you could create a file to run it, or it is available in the version check plugin

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

    it should show you which ini files is loaded (I believe). gd , etc info.

    It says I have GD version bundled (2.1.0 compatible)

    point me to a discussion link where you tried to add an attachment on your forum.

    http://www.djangobooks.com/forum/discussion/13019/burnadette-s-blues-diz-disley#latest

  • Ok

    an 8mb mp3 file is not really going to create a thumbnail. thumbnails are compressed image files.

    you see the mp3 file on your server? correct. what folder is it in exactly?

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

  • peregrineperegrine MVP
    edited April 2014

    also disable the

    forum/plugins/ResizedImageLightbox/

    and see if it changes anything.

    I never tried to upload an mp3 before. just paste links. If you ask me, you didn't? but allowing people to upload 8 mb files and 20mb files on your server is going to eat up your space on your server, if it gets done pretty frequently. And later will make back of your uploads folder huge.

    can you upload a gif for me in one of your discussions.

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

  • I wasn't expecting a thumbnail for the MP3.

    I tried disabling the Resizedimagelightbox but no luck.

  • peregrineperegrine MVP
    edited April 2014

    an you upload a gif for me in one of your discussions.

    so I can see what that looks like.

    you are getting a image src link of ""

    I want to see what you get with a gif.
    and point me to a discussion where that is.

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

  • peregrineperegrine MVP
    edited April 2014

    you've got a bug somewhere :)

    <img width="100%/" src="">
    

    the width is malformed which leads me to the reason why the src is messed up.

    disable the autolink and image resize and any other plugin that is related to body content.

    what you will probably need to do is decho through the fileupload plugin to see what variables look like.

    do your testing on gifs or small txt files. they will be the easiest to debug.

    when you disable those plugins, see if you can upload a gif again. because any fix you do may possible not fix the broken one that are already done.

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

  • you could see if 1.8.2 works. don't know haven't tried it

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

  • I disabled all the plugins and I still have the same problem.

    Where should I look next?

  • where would I find 1.8.2? I only see 1.8.1 and that doesn't work with 2.1b2

  • peregrineperegrine MVP
    edited April 2014

    my mistake I meant 1.8.1

    check your media table and see if it lists recent uploads.

    then see if it lists the thumpath.

    it only makes a thumbnail if necessary in the thumbnails folder.

    but your hover should the anchor link to the file in the uploads folder
    and if a thumbnail was made your image source will point to the thumbnail location.

    so see if media table has the mp3 and the gif you just uploaded

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

  • meshugymeshugy ✭✭
    edited April 2014

    yes, the recent uploads are listed in the media table but no thumbnail link is displayed.

  • peregrineperegrine MVP
    edited April 2014

    what does it say for thumbpathin the media table?

    NULL or something else.

    but once again very small images will have NO thumbpath - they don't need one.

    load an image that is 600 x 600 or thereabouts. that image definitely needs a thumpath, but not all images need one and non-images don't need any.

    gotta do some things for a few hours. maybe tomorrow I could help you, if someone else doesn't.

    see if it shows up in default theme.

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

  • all the the thumbpaths are Null

    thanks for your help, i hope I can find a solution.

  • peregrineperegrine MVP
    edited April 2014

    see if it shows up in default theme.

    also look for the mp3 file in the media table and see if the Path points to

    /FileUpload/xx/xxxxxxxxxxxxxx.mp3

    also make sure

    uploads/thumbnails/Fileupload allows files to be written to it and

    make sure it has same permissions and owner as

    uploads/Fileupload

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

  • same issue with default theme.

  • see above comment

    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.