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.

File fields not rendering after upgrade to 2.5.3

November 26, 2012 11:20am

Subscribe [2]
  • #1 / Nov 26, 2012 11:20am

    design132

    101 posts

    ahh.. okay i’ve had to really look into this—what’s happening is it’s not rendering the custom field with the url inside it for any member that’s not a super admin.

    When we publish from the CP, we add a pdf to that field that’s specified as a file field.  On the front end our code looks like this:

    {exp:channel:entries channel="morningcomments"  sort="desc" limit="1"}
    
    <a href="http://{cattlemorningcommentspdf}">DOWNLOAD THE PDF</a>
    
    {/exp:channel:entries}

    This is what’s rendering if you’re any member besides a super admin:

    <a href="http://">DOWNLOAD THE PDF</a>
  • #2 / Nov 27, 2012 6:05pm

    Wouter Vervloet

    758 posts

    Hi design132,

    From which version did you upgrade? Also, if you check the exp_channel_data table, what value is in the column for the entry’s row/column. (You may have to check the exp_channel_fields to find the correct custom field_id)

    – Wouter

  • #3 / Nov 28, 2012 12:28pm

    design132

    101 posts

    exp_channel_data : 

    Field Type Collation Attributes Null Default
    entry_id int(10)            UNSIGNED No None

    exp_channel_fields
    Field Type Collation Attributes Null Default Extra
    field_id int(6)            UNSIGNED No None AUTO_INCREMENT


    I’m confused… but does that help?

  • #4 / Nov 28, 2012 12:59pm

    Wouter Vervloet

    758 posts

    Sorry… I actually meant the actual value of the cell that holds the field_type value.

    It should be something like ‘{filedir_2 }‘your_image.png’.

    – Wouter

  • #5 / Nov 28, 2012 3:47pm

    design132

    101 posts

    The field_type is “file” so it looks like the attached file.

    "https://ellislab.com/asset/images/ent-partner-work/GMC_11-28-12.pdf"

    Again, what’s weird is it will work for superadmins.  But not for other members.  Kinda odd behavior.  It should just be rendering what I put in that field.  Are there some permission issues under member accounts that I have not seen?

  • #6 / Nov 28, 2012 3:52pm

    Wouter Vervloet

    758 posts

    okay, I’m going with a wild guess here… can you try to sync the upload directory in the filemanager?

  • #7 / Nov 28, 2012 4:00pm

    design132

    101 posts

    I did just sync it but nothing happens ;-(

    This is the first time I’ve ever experienced this.  It almost seems like there’s a permissions issue.  Why it’s allowing super admins to view it no problem, but not members.

    Ok, so update… I have multiple member groups.  One for my client, and then super admin, we can both see the graphs, but anyone that’s not given access to the CP can’t.  Does that help?

  • #8 / Nov 28, 2012 4:12pm

    Wouter Vervloet

    758 posts

    I didn’t even see that part of your initial question… that complicates things a bit. There is nothing in the code that suggests that member groups come into play when outputting the tag.

    Does this happen to every pdf you upload into that field, or just this particular one? And does it happen to all file fields you have on your site?

  • #9 / Nov 29, 2012 12:25am

    design132

    101 posts

    Actually after some testing, just this channel it’s happening on.  In fact, this was the only channel that I had previously had the field type as “text”, and then changed it to “file” so the client could upload the pdfs easier.  I’m wondering if this has something to do with it.  You made me think in a new direction and I think we’re getting close to the problem. (it’s the only channel that I changed the fieldtype)

  • #10 / Nov 29, 2012 2:44am

    Wouter Vervloet

    758 posts

    Ah, finally! Some positive news 😊

    Since you’ve changed it from a text-field it could be some kind of a formatting error, but that still doesn’t explain why it only happens for regular members…

    Without actually getting hands-on, I’m afraid I’ve run out of ideas. Anyone else care to step in?

    – Wouter

  • #11 / Nov 29, 2012 1:51pm

    design132

    101 posts

    Ya I think it’s safe to say this could be a bug in EE.  The fact that it’s only affecting members but not those whom have access to the CP means it’s not even functioning as expected, but that all I’m doing is rendering an input field with a tag…. 

    Perhaps those at EE can step in and suggest something, and I’m all for offering access to the system to take a better look.

    Wouter—thank you for your help thus far!

  • #12 / Nov 29, 2012 8:30pm

    design132

    101 posts

    *** bump***

    Hoping an EE dev can help me out on this one… 😉

  • #13 / Dec 04, 2012 12:02am

    design132

    101 posts

    Please refer for the continuation to this thread at: http://ellislab.com/forums/viewthread/230332/

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

ExpressionEngine News!

#eecms, #events, #releases