Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Attachment Extension 1.4
This discussion has been closed.
Comments
First question: I've not got time to look at it in detail at the moment but can tell you where to look. In the last update Jazzman added a whole set of error-handling checks. Look at the beginning of function CreateThumb around line 176. You're obviously getting the third error message. You're getting the big picture because Jazzman added a line in GetAttachmentsString to check if the thumbnail exists - if not it shows the main image.
Second question: You mean the ATTACHMENT_ALLOWED_FILETYPES array, I guess? The upload and the matching against file type is handled by vanilla in Framework.Class.Uploader.php (the error message you get is from there). If you take out GIF you can't upload gif images with a .GIF file extension in capital letters. The file and the thumbnail is saved on the server with the extension in lower case using strtolower.
if( $ImageType = "jpg") $ImageType = "jpeg";
this must be
if( $ImageType == "jpg") $ImageType = "jpeg";
I've uploaded a new release: version 1.2c
I'm still thinking about how to get a relative path in the Lightbox javascript, because this:
$Head->AddScript('blah.js?root=' . urlencode($this->Context->Configuration['WEB_ROOT']))
doesn't work... The Vanilla class rejects it and returns '0'
Strange how you're the first guy to experience this though. It's up to jakob/jazzman i guess.
what are the permissions of the /uploads folder and who's the owner of /uploads and /uploads/thumbs?