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.

{photo_url} isn't returning anything

November 29, 2011 12:02pm

Subscribe [7]
  • #1 / Nov 29, 2011 12:02pm

    Carlos Perez

    13 posts

    Hi - I’m trying to include author information for blog entries and I’m having trouble with getting the photo. The author name and bio are working just fine.

    This code:

    {photo_url}

    returns this:

    " width=

    I have uploaded a photo, and photos are enabled as well.

    Is there a setting somewhere else that I might be missing?

    Carlos

  • #2 / Nov 29, 2011 9:08pm

    Sean C. Smith

    3818 posts

    Hi Carlos Perez,

    It seems to me that your code should work. Could you double check a couple of things for me.

    Has the member associated with the posted entry uploaded a photo?
    Is it possible that the photo was accidentally uploaded to the avatar field?
    Are you using any add-ons that extend member functionality?
    What version of ExpressionEngine are you using

    Sean

  • #3 / Nov 29, 2011 9:11pm

    Carlos Perez

    13 posts

    Hi Sean -

    - The photo is uploaded.
    - It is a member photo, and not avatar
    - I’m using Zoo Visitor, though it’s not preventing me from accessing the bio and author tags.
    - 2.3.1

    Carlos

  • #4 / Dec 04, 2011 7:25am

    Sean C. Smith

    3818 posts

    Carlos,

    I was unable to replicate this issue. Using the exact code you pasted above on my test install the member photo displayed.

    {exp:channel:entries}
    {title}
    
    
    {photo_url} 
    
    
    photo of author
    
    
    {/exp:channel:entries}

    One more thing, could you post your full-template code here so I can see if there is anything that might be causing the problem.

    Sean

  • #5 / Dec 07, 2011 2:01pm

    Carlos Perez

    13 posts

    Hi Sean - I’ve stripped my code all the way down as well and I still don’t get anything. I don’t even get the wrong thing, nothing shows up at all. I’ve turned on template debugging and there is no mention of {photo_url} at all. Same for {avatar_url} - that doesn’t seem to work either. {bio} and {author} are just fine.

    Carlos

  • #6 / Dec 07, 2011 2:09pm

    Carlos Perez

    13 posts

    I just turned out Output Profiler and checked what was being called by the database.  {photo_filename} actually works… of course I need to prefix that with the proper URL location, but I have it working. So it just seems like whatever is suppose to process {photo_url} is choking.

  • #7 / Dec 08, 2011 3:41pm

    Kevin Smith

    4784 posts

    Hi Carlos,

    I’m also unable to reproduce this. The only way I can get it to fail to render {photo_url} is if the author of the entry fails to upload the photo. Have you tried wrapping the bit of code in a conditional to test? Something like:

    {if photo}
    {photo_url} 
    
    
    photo of author
    {/if}
  • #8 / Dec 12, 2011 11:07pm

    SethG

    29 posts

    Not sure if related, but I just experienced this same thing.  Screen Name and Bio worked by photo_url did not.  I was logged into the admin in one tab while viewing a blog post by an author in another tab.  When I logged out of the admin the photo_url rendered. Wonder if that might be happening to you as well?

    To any EE support folks, is what I am seeing expected?  Does not seem desirable.

  • #9 / Dec 14, 2011 3:15am

    Kevin Smith

    4784 posts

    Hi Seth,

    I’m still not able to reproduce it. I think it’s likely due to a specific combination of elements, so would you mind posting your code here so that I can test it on my own installation? And just to be sure, are you running EE 2.3.1?

  • #10 / Dec 20, 2011 9:40am

    Phil Ecker

    78 posts

    I’m experiencing the same thing as Carlos and Seth.

  • #11 / Dec 21, 2011 12:43am

    Kevin Smith

    4784 posts

    Hi Phil,

    Sorry you’re running into issues as well. Just the same, would you mind posting your code here so that I can test it on my own installation? And just to be sure, are you running EE 2.3.1?

  • #12 / Dec 26, 2011 6:30am

    Cosly.com

    8 posts

    Not sure if related, but I just experienced this same thing.  Screen Name and Bio worked by photo_url did not.  I was logged into the admin in one tab while viewing a blog post by an author in another tab.  When I logged out of the admin the photo_url rendered.

    Seth, you are right. I experienced same issue as you described. After logging out from CP image appeared. Weird thing!

    <div id="auteur">
        <h2 class="sidebar">Auteur</h2>
        {exp:channel:entries channel="blog" limit="1"}
        {photo_url}{bio}
    
        <a href="/">Lees meer van <span class="voornaam">{username}</span></a>
        {/exp:channel:entries}
    </div>

    Bio and username works fine. Running 2.3.1 - Build: date 20111017

     

  • #13 / Dec 27, 2011 2:40pm

    Kevin Smith

    4784 posts

    Hi all,

    I’m still not able to reproduce this on my end using EE 2.3.1, so let’s try this: if you’re experiencing this on your end, I need you to help me narrow down the circumstances in which this happens.

    1) Are you logged in? If so, is it the same account whose photo you’re trying to view?
    2) What member group does the account belong to whose photo you’re trying to view? Is it a Super Admin? A member group with CP access? etc…
    3) Post the code sample you’re using where this problem is exhibited.

  • #14 / Dec 27, 2011 5:24pm

    Cosly.com

    8 posts

    Hey Kevin,

    Is it helpful to give you access to this website?

  • #15 / Dec 28, 2011 10:22am

    Kevin Smith

    4784 posts

    Yes, it certainly would be. Be on the lookout for an email from me, Cosly.

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

ExpressionEngine News!

#eecms, #events, #releases