ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

blank page when clicking on forum attachment link

March 14, 2011 10:46pm

Subscribe [2]
  • #1 / Mar 14, 2011 10:46pm

    joostimpink

    1 posts

    This question may be related to a resolved thread.

    hi,

    I have set up the forums, and I ran into the problem that forum post attachments do not work.

    Uploading seems to work fine (I find the file in the upload directory), but when I click on the link in some post, it takes me to a blank page.

    See here:
    http://www.learn-accounting.com/channel/forum_wrds/viewthread/32/

    link of attachment:
    http://www.learn-accounting.com/channel?ACT=27&fid=48&aid=3_i3m7wCK0VMQVZTVywFCp&board_id=2

    In a similar post on this forum I saw that .htaccess could be related. I don’t believe I have anything special there (except that .index is rerouted to ‘/’, I am using another page for expr engine (channel))

    just in case:
    # index.php to /
    #RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.php\ HTTP/
    #RewriteRule ^(.*)index\.php$ /$1 [R=301,L]

    <Files channel>
        ForceType application/x-httpd-php
    </Files>


    thanks,

    Joost

  • #2 / Mar 15, 2011 3:01pm

    Sue Crocker

    26054 posts

    Welcome to the ExpressionEngine forums, Joost! Just a quick note to thank you for your purchase, and hopefully you’re enjoying ExpressionEngine.

    Since you’re new to the EE forums, have you seen EEWiki:// How to Post a Support Request?

    Can you tell us which version/build of EE2.x you’re using? See EEWiki:// HowTo Determine My EE Version

    One thing you could also check, can you attach a .jpg or a .txt file? Do those work OK? It may just be an issue of not knowing the file type in the attachment.

  • #3 / Mar 15, 2011 4:43pm

    joostimpink

    1 posts

    Thank you, I am very happy with EE 😊

    I am using version 2.1.2. and a text file actually works!

    The attachment that doesn’t work is a ‘.sas’ file (which is plain text).
    “Allowed File Types” is set to “All File Types” in ‘forum management’. Any suggestions as to what I could do to make ‘.sas’ files work as well?

    >>
    edit:
    OK, I found that in an earlier version that can be done trough editing /system/lib/mimes.php and adding a mime type.

    Which dir/file would that be on 2.1.2?

    >>

    edit2:
    got it: .../system/expressionengine/config/mimes.php
    Joost

  • #4 / Mar 16, 2011 11:08am

    Sue Crocker

    26054 posts

    Yup, that’s the file you need to change. Just a word of advice - you may want to upgrade to EE 2.1.3, 2.1.2 had a few issues.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases