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.

Weird Bug! Lost file path in entries when logging out

November 20, 2012 7:04pm

Subscribe [1]
  • #1 / Nov 20, 2012 7:04pm

    ToolStudios,LLC

    47 posts

    Whenever I log out of the admin, the file path to images get’s lost! It’s really hard to explain this so please bear with me..

    e.g.: The path should be http://mysite.com/images/uploads/poles-slides/RS-117.png

    when I log out, the path either disappears or becomes RS-117.png (loses the file path but has the image file name).

    It’s not a matter of being logged out vs logged in, it’s just that the path becomes corrupted after logging out.  I can stay logged out, and update the template (I’ve tried adding the full path, and even just adding a trailing slash after the tag and that brings it back somehow - but not correctly, and is lost again after log-out).

    e.g.: adding full path:

    <a href="http://mysite.com/images/uploads/poles-slides/{imgs}">http://mysite.com/images/uploads/poles-slides/{imgs}</a>

    will then have the path: “http://mysite.com/images/uploads/poles-slides/http://mysite.com/images/uploads/poles-slides/RS-117.png”

    e.g.: adding trailing slash:

    {imgs}/

    will then return the path: “http://mysite.com/images/uploads/poles-slides/RS-117.png/” - if I remove the trailing slash the “imgs” tag returns blank.

    The only way I can really fix it is to open the entry and save again, each time I’ve logged out.

    The code I’m using in my template is pretty simple:

    {exp:channel:entries entry_id="{structure:page:entry_id}" limit="" disable="categories|category_fields|member_data|pagination|trackbacks" cache="yes" refresh="10"}
     {poles}
     <li>{imgs}</li>
     {/poles}
    {/exp:channel:entries}

    I’m using a matrix field with the core file field.

    Anyone ever seen this?

    Thanks for any help!

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

ExpressionEngine News!

#eecms, #events, #releases