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.

embeds only working when logged-in as superadmin

February 21, 2012 7:39pm

Subscribe [2]
  • #1 / Feb 21, 2012 7:39pm

    webalchemist

    2 posts

    If I’m logged in as superadmin and view the frontend of the site everything appears as intended.  However, if I’m logged-out or logged-in as a standard member my embeds are no longer included in the page.  The main page content displays and user-defined global constants and snippets work, but not embeds.

    I guess this is a configuration issue, but being new to EE I can’t find it.

    Here’s an example of one of my template in case that helps.

    {embed="embeds/.html_header"}
    
    </head>
    <body>
    
    {embed="embeds/.topbar"}
    
    {embed="embeds/.crumb"}
    
    {content_intro}
    <!-- main content starts here -->
    
    {exp:channel:entries channel="page" }
    <h1>{title}</h1>
    {page_content}
    {/exp:channel:entries}
    
    <!-- main content ends here -->
    {content_close}
    
    {footer}
    
    </body>
    </html>
  • #2 / Feb 22, 2012 5:59pm

    Shane Eckert

    7174 posts

    Hello webalchemist,

    Welcome to the forums and the ExpressionEngine community! Glad to have you.

    I am sorry to hear you are running into this snag.

    Is the code above the entire template? There are no conditionals or extra code that you cut out to save space?

    What version of ExpressionEngine are you running?

    I am looking forward to troubleshooting this with you.

    Cheers,

  • #3 / Feb 22, 2012 8:06pm

    webalchemist

    2 posts

    Hi Shane,

    Thanks for replying.

    I’m running 2.4.0. The example template is complete, but there are other EE tags (including conditionals) in the embeds. Nothing that should be effected by the member group though.

    Oddly, since reloading the site to check the problem, it is now working fine.  As I’m developing on a local server this might have been caused by restarting the browser, the session or the server.

    Perhaps I should have remembered that old help desk standby - “have you tried rebooting?”

    The problem was definitely there at the time, though.  Two things to think about were that I had renamed the embedded templates to make them hidden (added the leading dots).  I’ve also got it setup save the templates to file.  I’m wondering if there was some kind of interplay between the renaming and not syncing the template files? Does the superadmin select the template versions to use in a different way from other users?

    Anyway, enough of speculation.  If it happens again I’ll try to get to the bottom of it.  For now its working fine.

  • #4 / Feb 22, 2012 9:30pm

    Shane Eckert

    7174 posts

    Hey webalchemist,

    I am glad it is working.

    This being a cache issue does make a lot of sense now that you mention changing the names. You had us puzzled there for a bit.

    The only thing we could think of was parse order and that is why we asked if you had any conditionals which could be delaying the embed. But I am happy with cache as a reason. If this does show up again, please feel free to let us know. We enjoy a good challenge as long as we can come up with a great solution.

    Thanks for posting and again, welcome to the community!

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases