Not signed in (Sign In)

Categories

Vanilla 1.1.5 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorfaraz_k86
    • CommentTimeJun 26th 2007
     # 101
    k thankx for the reply but i dont understand any of this.

    what is mime, and how can i fix this problem?

    from what i understand is that it does not support attachments in .zip, how can i fix this where in the script should i edit this??
    •  
      CommentAuthorToni
    • CommentTimeJun 27th 2007
     # 102
    OK. Navigate (via your FTP Client) to the folder 'extensions' inside this folder there's a folder called 'Attachments' - open it. Inside this 'Attachments' folder there's a file called 'default.php' - open it (any Text Editor should do).

    There you see lines like:
    'application/zip' => array('zip', 'ZIP'),

    Add your disired filetypes. (^ This line, if it isn't there) Also, inside this same file (default.php) search all instances of 'MINE' and replace them with 'MIME', it's a typo. Maybe that's why it doesn't work for you 'cause ZIP should be a default.

    Save the file and try again to upload a .zip. I have no idea if this will work since I learned all that by reading THIS thread... Maybe someone could confirm I'm not talking bs...?!

    Good luck.
    • CommentAuthorfaraz_k86
    • CommentTimeJun 27th 2007
     # 103
    @Toni

    thanks a lot for ur help i got it working :)

    the line u provided was already there in default.php, but it dit help me,

    i checked out the error it gave and edited the line application/download and added .zip extension to it.

    thx a lot dude ur a life saver
    •  
      CommentAuthorToni
    • CommentTimeJul 2nd 2007
     # 104
    Alright, I got another one that's a little tricky, thus for I need help. Please.

    What I want to do is upload files with the Attachment plugin and define that,
    if it's a certain filetype it posts the path (URL) to the upload instead of a postbackaction.

    Then the result should be that, if someone uploads an Mp3, the JQmedia plugin turns it into a Player.
    Am I on the right track? Do you think it's possible?
    If I would accomplish this I would be one step closer to the perfect board.
    We certainly need a player for uploaded files. Any alternative solutions? Thanks!!!
    •  
      CommentAuthor[-Stash-]
    • CommentTimeJul 3rd 2007
     # 105
    Chris Passeno:
    Is there an easy way to change the CSS for Attachments to allow my images (I've got inline images, jquery, thickbox, attachments, mulitple files) to show up in two columns?

    I'm trying to use it as an impromptu gallery.

    http://www.passeno.com/community/?CategoryID=14
    In response to this question, it would be nice as an option.

    It currently makes sense as it is since when you have non-pictures, a vertical list makes the most sense, but it would be a great little switch to flick :) Maybe even have it conditional - if attachments are only pictures, float the thumbnails inline.

    Nice idea - any chance of this as an update Jazzman?
  1.  # 106
    Minor (very minor) complaint: The add-on doesn't have a readme.html file.
    • CommentAuthorRocky
    • CommentTimeAug 6th 2007 edited
     # 107
    Edited to delete previous post. Problems have been healed.
    • CommentAuthordyohn
    • CommentTimeAug 6th 2007
     # 108
    Thank you for the Attachments and the In-Line Images extensions. I installed them without incident and they work beautifully. My forum membership is raving about the added functionality. Now I may need to purchase more server hard drive space. :) Thanks!
    • CommentAuthorjstueve
    • CommentTimeAug 9th 2007
     # 109
    Found an issue with two Vanilla forums using a single DB.

    The retrieve or links use the standard database extension, regardless of which database has attachments installed.

    Hard to describe, but let me attempt.

    One forum has a database extension of Issues_ and the other the standard LUM_

    I've enabled the extension in the Issues forum, and upload files, uploads fine.
    Trying to download the extension fails, because there is no record in the database (the record is in the Issues_ database, but not the LUM_database)

    its strange, any suggestions?
    • CommentAuthorhalo_12
    • CommentTimeAug 30th 2007
     # 110
    It seems as thought 1.4 had thumbnial functionality, but this one does not. Can anyone suggest the best thumbnail addon in their opinion to work with this mod please?

    Cheers.
  2.  # 111
    Are you using inline images?
    • CommentAuthorhalo_12
    • CommentTimeAug 30th 2007
     # 112
    Yes i am.
  3.  # 113
    Does that not do thumbnailing? I'm pretty sure it will.
    •  
      CommentAuthor[-Stash-]
    • CommentTimeAug 31st 2007
     # 114
    If it's setup correctly, Inline Images (with Attachments 2) does and will do thumbnailing of images. Just go to the Inline Images extension settings and change the Max Width to something like 125 - that will give you nice thumbnails.
  4.  # 115
    Okay... I'm getting this error when I try to access a discussion after I turn on this extension...

    -----------------

    Notice: Undefined index: Attachment in /home/pushing1/public_html/library/Framework/Framework.Functions.php on line 522

    Notice: Undefined index: Attachment in /home/pushing1/public_html/library/Framework/Framework.Class.SqlBuilder.php on line 117

    Notice: Undefined index: Attachment in /home/pushing1/public_html/library/Framework/Framework.Class.SqlBuilder.php on line 117

    Notice: Undefined index: Attachment in /home/pushing1/public_html/library/Framework/Framework.Class.SqlBuilder.php on line 117

    Notice: Undefined index: Attachment in /home/pushing1/public_html/library/Framework/Framework.Class.SqlBuilder.php on line 117

    Notice: Undefined index: Attachment in /home/pushing1/public_html/library/Framework/Framework.Class.SqlBuilder.php on line 117

    Notice: Undefined index: Attachment in /home/pushing1/public_html/library/Framework/Framework.Class.SqlBuilder.php on line 117

    Notice: Undefined index: Attachment in /home/pushing1/public_html/library/Framework/Framework.Class.SqlBuilder.php on line 117

    Notice: Undefined index: Attachment in /home/pushing1/public_html/library/Framework/Framework.Class.SqlBuilder.php on line 117

    Notice: Undefined index: Attachment in /home/pushing1/public_html/library/Framework/Framework.Class.SqlBuilder.php on line 117

    Notice: Undefined index: Attachment in /home/pushing1/public_html/library/Framework/Framework.Class.SqlBuilder.php on line 117

    Notice: Undefined index: Attachment in /home/pushing1/public_html/library/Framework/Framework.Class.SqlBuilder.php on line 117

    Notice: Undefined index: Attachment in /home/pushing1/public_html/library/Framework/Framework.Class.SqlBuilder.php on line 117

    Notice: Undefined index: Attachment in /home/pushing1/public_html/library/Framework/Framework.Class.SqlBuilder.php on line 251
    A fatal, non-recoverable error has occurred
    Technical information (for support personel):

    Error Message
    An error occurred while retrieving attachments.
    Affected Elements
    AttachmentManager.RetrieveAttachments();

    The error occurred on or near: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'as AttachmentID, a. as UserID, a. as DiscussionID, a. as CommentID, a. as Ti' at line 1

    For additional support documentation, visit the Lussumo Documentation website at: lussumo.com/docs

    -------------------

    Any ideas on what could cause this?
    • CommentAuthorithcy
    • CommentTimeSep 1st 2007
     # 116
    look in your conf/database.php file. you should see these lines:
    $DatabaseTables['Attachment'] = 'Attachment';
    $DatabaseColumns['Attachment']['AttachmentID'] = 'AttachmentID';
    $DatabaseColumns['Attachment']['UserID'] = 'UserID';
    $DatabaseColumns['Attachment']['DiscussionID'] = 'DiscussionID';
    $DatabaseColumns['Attachment']['CommentID'] = 'CommentID';
    $DatabaseColumns['Attachment']['Title'] = 'Title';
    $DatabaseColumns['Attachment']['Description'] = 'Description';
    $DatabaseColumns['Attachment']['Name'] = 'Name';
    $DatabaseColumns['Attachment']['Path'] = 'Path';
    $DatabaseColumns['Attachment']['Size'] = 'Size';
    $DatabaseColumns['Attachment']['MimeType'] = 'MimeType';
    $DatabaseColumns['Attachment']['DateCreated'] = 'DateCreated';
    $DatabaseColumns['Attachment']['DateModified'] = 'DateModified'

    if you don't see them, check the permissions on that file. make sure it is writable, and try disabling and re-enabling the extension.
    • CommentAuthorChadFenwick
    • CommentTimeSep 1st 2007 edited
     # 117
    I think I know the problem, I have my database.php in a different location. Guess it doesn't know that! Doh! ^_^

    I'll do that now...

    ----

    It worked by the way... Sweet, thanks.
    • CommentAuthorbshultz
    • CommentTimeSep 5th 2007 edited
     # 118
    When posting a new discussion, I get a blank page if the Attachment Extensions hits an error. After some digging, I found that the function in question wasn't calling the WarningCollector.

    To get the expected warning/error message, change the following code in default.php from:
    // Save Attachments
    function DiscussionForm_SaveDiscussionAttachments(&$DiscussionForm) {
    $Discussion = &$DiscussionForm->DelegateParameters['ResultDiscussion'];
    $AttachmentManager = &$DiscussionForm->DelegateParameters['AttachmentManager'];
    $AttachmentManager->DiscussionID = $Discussion->DiscussionID;
    $AttachmentManager->Comment = &$Discussion->Comment;
    $AttachmentManager->SaveAttachments();
    }

    to:

    // Save Attachments
    function DiscussionForm_SaveDiscussionAttachments(&$DiscussionForm) {
    $Discussion = &$DiscussionForm->DelegateParameters['ResultDiscussion'];
    $AttachmentManager = &$DiscussionForm->DelegateParameters['AttachmentManager'];
    $AttachmentManager->DiscussionID = @$Discussion->DiscussionID;
    // Call WarningCollector if we don't have a DiscussionID
    if(empty($Discussion->DiscussionID) || $Discussion->DiscussionID == ''){
    return $Context->WarningCollector->Iif();
    }
    $AttachmentManager->Comment = &$Discussion->Comment;
    $AttachmentManager->SaveAttachments();
    }
    • CommentAuthorhalo_12
    • CommentTimeSep 12th 2007
     # 119
    Stash said:"If it's setup correctly, Inline Images (with Attachments 2) does and will do thumbnailing of images. Just go to the Inline Images extension settings and change the Max Width to something like 125 - that will give you nice thumbnails. "


    -- it will resize the image, but doesn't allow for user to click on it to show full size image. Is there a way to do this too?
    •  
      CommentAuthor[-Stash-]
    • CommentTimeSep 12th 2007
     # 120
    Works just like that for me...

    Either I'm misunderstanding what you're trying to achieve, or you've got a busted install. Might be worth deactivating the extension, deleting it and then reuploading a fresh download of it from the addons site.
    • CommentAuthorLord Daedra
    • CommentTimeSep 12th 2007 edited
     # 121
    Hello!

    I think, I need your help.

    I can upload all files without any errors and I'll see this files on my server. But I don't see downloaded files.
    Besides, my browsers think (Opera, IE7), that it is all .jpg files.
    http://forums.entropia.us/discussion/1/testovaya-tema/#Item_8

    I'm not sure, but I think it is after php upgrade from 5.2.0 to 5.2.4.
    • CommentAuthorHannesB
    • CommentTimeSep 13th 2007 edited
     # 122
    I'm having some trouble with this extension. The upload works fine but when I click on the uploaded files in the forum I just get a "Save as" box. When I click on a image I want it to display the image in the browser and if I click on let say an pdf I want the pdf-reader appear inside the browser as it usually does.

    Does anyone have an idea why it want to save the file instead of open it?

    Edit: Solved, my gd-lib wasn't properly installed.
    • CommentAuthordan39
    • CommentTimeSep 17th 2007 edited
     # 123
    Yeah, there's definitely a WarningCollector bug in this Addon from the "Start a New Discussion" page. You can test it out by trying to start a new discussion with a comment that's way too long. Instead of showing the usual "Your comment is too long" error, you just get a blank page. Oddly enough, the WarningCollector works fine on normal "Add a Comment" pages.

    So, I tried bschultz's fix (above), but it's giving me "Call to a member function Iif() on a non-object" error.

    Can anyone see what the problem is or suggest a better fix to reinstate the WarningCollector on the Start a New Discussion page?
    • CommentAuthorHannesB
    • CommentTimeSep 27th 2007
     # 124
    I'm having some trouble with this extension. When I use language=English it works fine but when I choose Swedish the uploads dosen't work. Any know why?
    • CommentAuthordan39
    • CommentTimeOct 8th 2007 edited
     # 125
    [bump]

    Does anyone know how to fix this WarningCollector bug? I'm getting an error when I try to implement the proposed fix.

    (Or can the fix be implemented into the Add-On?? (Jazzman)?)
    • CommentAuthorjakob_r
    • CommentTimeOct 8th 2007 edited
     # 126
    I can confirm dan39's and bschultz's problem, but the fix doesn't work for me either. I receive a "Not Found
    The requested URL /forum/discussion/test-for-no-category-chosen/ was not found on this server." error.
    When adding the proposed fix I get a blank page. (vanilla 1.1.3)
    • CommentAuthorjakob_r
    • CommentTimeOct 10th 2007 edited
     # 127
    bump - has no-one has an idea for solving this fairly serious problem?

    Sticking an echo in the if statement shows that the condition is true (DiscussionID is empty) but it stalls with the initiation of the error reporting.

    if(empty($Discussion->DiscussionID) || $Discussion->DiscussionID == '') {
    return $Context->WarningCollector->Iif();
    }

    (excerpted from #113 above)

    Is the WarningCollector call incomplete, or not in the right context? I've tried all manner of alternatives but without success...
    • CommentAuthorjakob_r
    • CommentTimeOct 23rd 2007
     # 128
    *bump again* (and sorry to nag)

    I mailed jazzman, and he knows about it, but he doesn't have much time at the moment.
    • CommentAuthorgebbissimo
    • CommentTimeOct 28th 2007 edited
     # 129
    Hi everybody!
    Would appreciate any help, I have the same problem as vxw mentioned earlier link to his comment(but see also his 2 more posts below) , except that I have done a server change.

    Problem is that version 2 of Attachments doesn´t seem to install itself properly. Neither a upload bar nor a section under Settings appears.
    Version 1.4.1 does these things (bar and Attachment settings), but when I try to upload anything nothing will be uploaded though he doesn´t give an error message.

    I installed everything like I think it should be and was reading lots of relevant threads. Upload-directory exists with chmod777, as well as the Attachment settings (v1.4.1) displays the right path.
    I tried to reinstall it various times and used opera,IE and Firefox to test.
    Also I deactivated all other addons.

    Furthermore I installed already some other addons, such as a sidebar, the google-calendar application and a "latest discussions"-addon.
    One thing that didn´t work was the Avatar-addon (AccountPictures) by Jazzman.

    As I said, any help would be really appreciated, thanks in advance

    p.s.: why is my html-link not displayed properly? *confused*



    O.k., I finally found the solution by accident. The problem is my webhost, which doesn´t support PHP Upload. (I never heard you can permit PHP, but forbid Upload, that´s why I didn´t check that option).
    So there´s no work-around for me unfortunately :(
    • CommentAuthortino
    • CommentTimeOct 30th 2007
     # 130
    Hi!

    I've made some changes in the default.php of this extension to fix the problem that the mime wasn't set correctly at download.

    Here are my changes:


    154c154
    < $this->MineType = "";
    ---
    > $this->MimeType = "";
    170c170
    < $this->MineType = @$DataSet['MineType'];
    ---
    > $this->MimeType = @$DataSet['MimeType'];
    357c357
    < $this->SaveAsDialogue($Path, $Attachment->Name);
    ---
    > $this->SaveAsDialogue($Path, $Attachment->Name, 0, $Attachment->MimeType);
    363c363
    < function SaveAsDialogue($FolderPath, $FileName, $DeleteFile = '0') {
    ---
    > function SaveAsDialogue($FolderPath, $FileName, $DeleteFile = '0', $MimeType) {
    372,374c372
    < header('Content-Type: application/force-download');
    < header('Content-Type: application/octet-stream');
    < header('Content-Type: application/download');
    ---
    > header('Content-Type: '.$MimeType);


    Now the header contains the the right content type.
    •  
      CommentAuthorVaz
    • CommentTimeNov 11th 2007
     # 131
    I just tried out bshultz solution and it didnt work for me either. I recieved the following:
    <code>
    Notice: Undefined variable: Context in /home/.pilar/xxx/xxxxxxx.com/forums/extensions/Attachments/default.php on line 707

    Notice: Trying to get property of non-object in /home/.pilar/xxxx/xxxxx.com/forums/extensions/Attachments/default.php on line 707

    Fatal error: Call to a member function Iif() on a non-object in /home/.pilar/xxxxx/xxxxxxx.com/forums/extensions/Attachments/default.php on line 707</code>
    • CommentAuthorrakel
    • CommentTimeNov 23rd 2007 edited
     # 132
    Someone tell me I'm not crazy!

    It took me forever to get this working, but I finally did it. I can attach files and view them, and even download them off the forum properly however, there is one problem. Where in the heck are my files being stored? When I log onto FTP and go to the directory that I specified, I see nothing. Yet, the images are... somewhere... they appear on my forum just fine. I just thought I would clear out all of my test images, but now I can't find where they uploaded to.



    Uhhh, nevermind. I have both public_html and www, and I was mucking around in www. In previous experience, www and public_html have always been exact copies, in fact I just thought www was a redirect to public_html. Guess not? Well, at any rate, I found them.
    •  
      CommentAuthorWanderer
    • CommentTimeNov 25th 2007
     # 133
    Don't worry mate, you're not the first to fall for that one!

    When I start work on a new server, I work out which is what and bookmark it in my FTP application then I never need worry about it again.
  5.  # 134
    www should be a symbolic link (which is pretty much a redirect) to public_html. If not your host is messed up methinks.
    • CommentAuthordan39
    • CommentTimeDec 19th 2007 edited
     # 135
    Has anyone found a solution to the WarningCollector Bug?!?!?

    Could really use some help on figuring out what's wrong here.
  6.  # 136
    hey, does this work with freindly URLs yet??? i heard they were kinda non-compatible....
    • CommentAuthorjakob_r
    • CommentTimeJan 8th 2008
     # 137
    Has anyone found a solution to the WarningCollector Bug?!?!?

    ditto *bump*
    • CommentAuthorinkless
    • CommentTimeJan 28th 2008
     # 138
    Howdy! I'm getting this error all over the place -- particularily on the login panel and when checking/unchecking add-ons:

    // Attachments Table Structure $DatabaseTables['Attachment'] = 'Attachment'; $DatabaseColumns['Attachment']['AttachmentID'] = 'AttachmentID'; $DatabaseColumns['Attachment']['UserID'] = 'UserID'; $DatabaseColumns['Attachment']['DiscussionID'] = 'DiscussionID'; $DatabaseColumns['Attachment']['CommentID'] = 'CommentID'; $DatabaseColumns['Attachment']['Title'] = 'Title'; $DatabaseColumns['Attachment']['Description'] = 'Description'; $DatabaseColumns['Attachment']['Name'] = 'Name'; $DatabaseColumns['Attachment']['Path'] = 'Path'; $DatabaseColumns['Attachment']['Size'] = 'Size'; $DatabaseColumns['Attachment']['MimeType'] = 'MimeType'; $DatabaseColumns['Attachment']['DateCreated'] = 'DateCreated'; $DatabaseColumns['Attachment']['DateModified'] = 'DateModified'; ?>

    Any idea where this is coming from?
  7.  # 139
    How does the error appear?
    •  
      CommentAuthorspode
    • CommentTimeJan 29th 2008
     # 140
    I have a feeling this *might* have been reported somewhere, but browsing through the comments, I can't find any mention of it.

    If I start a NEW discussion, WITH an attachment, all is lost and I get dumped back to the front page.

    I'm using Attachment, with Inline Images and Multi Files. I'm also using Friendly Urls, which I'm wondering might be the issue. I'm trying to do some bug testing now.
    • CommentAuthorAristotle
    • CommentTimeMar 4th 2008
     # 141
    Let me echo spode's concern, adding specifics to my particular case.

    When I attempt to initiate a discussion with an attachment, Vanilla goes to /comments.php and displays:

    Some problems were encountered
    The requested discussion could not be found.

    It's probably an extension conflict, so I'm trying to isolate the offending one — which is a bit tedious since my installation has so many of them!

    (A fresh installation with Attachments and Multi File Upload will not have this problem.)
    • CommentAuthorsstawarz
    • CommentTimeMar 6th 2008
     # 142
    I had a problem with Attachements 2.

    I had to go into my php.ini file and turn file uploads on.

    file_uploads On
    upload_max_filesize = "1M"
    upload_tmp_dir = "/absolute/path/to/your/tmp/uploads"

    All works fine for me with friendlyURLs and InlineImages.
    • CommentAuthorsanjiyan3
    • CommentTimeMar 13th 2008
     # 143
    i'm having this error:

    Some problems were encountered
    The file you attempted to upload (USB to RS232 1.1.zip) was empty.
    You are not allowed to upload (USB to RS232 1.1.zip) the requested file type:

    this file, "USB to RS232 1.1.zip" contains a readme file and a few directories.
    i tried uploading a zip file which contained only a readme.txt with the same name and it worked.
    unsure why when directories are present within the zip file itself, attachments cannot detect anything.
    i've already input the MIME type and changed the typos in source code.
    any idea what to do?
    •  
      CommentAuthorWallPhone
    • CommentTimeMar 17th 2008
     # 144
    Spode, Aristotle: I don't know the cause, but I know the fix--until the cause is found you will need to modify a core file, as I noted here:Forced Category # 10
    •  
      CommentAuthorspode
    • CommentTimeMar 17th 2008
     # 145
    WallPhone - your fix works nicely. I'm happy to use this for the moment, as I just haven't had time to look for a bug myself. It may well be a true "bug", in which case it will be fixed by the next release.
    • CommentAuthorfysicsluvr
    • CommentTimeMar 17th 2008
     # 146
    is there any way to; instead of individually adding allowed filetypes; to add disallowed filetypes. (exe, reg, sys, etc.)
    • CommentAuthorbuwg
    • CommentTimeMay 5th 2008
     # 147
    note: this plugin breaks "text mode" plugin. images will still display.
    • CommentAuthorSCHIZO
    • CommentTimeMay 18th 2008
     # 148
    Please respect translators! We can to rewrite extension code. It starts to bore...

    PLEASE! Use $Context->SetDefenition instead $Context->Dictionary .
    • CommentAuthorwakeup
    • CommentTimeMay 19th 2008
     # 149
    I have a problem using this extension and friendly urls extension at same time.

    When I "forget" to put in a discussion topic. I get an error saying: Some problems were encountered but when I turn Friendly URL's ant attachments ON. I don't get directed to the error message screen, I get redirected my website's error document.

    Do you know how solve it?
    Thanks
    • CommentAuthorfysicsluvr
    • CommentTimeMay 19th 2008
     # 150
    Are you using the old one, or the new one?