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.

Getting error message on certain pages

July 10, 2007 6:27am

Subscribe [3]
  • #16 / Jul 10, 2007 12:08pm

    Mikee Bee

    179 posts

    OK I’ll give it a go

  • #17 / Jul 10, 2007 12:12pm

    Mikee Bee

    179 posts

    Looks like includes/masthead is the culprit

  • #18 / Jul 10, 2007 12:59pm

    Robin Sowell

    13255 posts

    Heh- these suckers are hard to follow!  OK- do this, let’s reduce the masthead a bit to see if we can narrow down where exactly it breaks.  First thing I’d do is:

    {if segment_1 == ""}
    <style type="text/css">
    #nav li#homenav a {
        background: #7F6861;
        color: #fff;
    }
    </style>
    
    {if:else}
    
    <style type="text/css">
    #nav li#{segment_1}nav a {
        background: #7F6861;
        color: #fff;
    }
    </style>
    {/if}
    
    CHANGE TO
    
    <style type="text/css">
    #nav li#homenav a {
        background: #7F6861;
        color: #fff;
    }
    </style>

    See if that’s the culprit.  I hope.

  • #19 / Jul 10, 2007 1:20pm

    silenz

    1651 posts

    Sheesh. Complex things go on in the code when it comes to advanced conditionals :blank:

    Change

    {if "{embed:enquiry}"}
        <link rel="stylesheet" href="/~zoffanyc/css/enquiry.css" type="text/css" media="screen,projection">
    {/if}

    to

    {if {embed:enquiry}}
        <link rel="stylesheet" href="/~zoffanyc/css/enquiry.css" type="text/css" media="screen,projection">
    {/if}


    and see what happens.

  • #20 / Jul 10, 2007 5:06pm

    Mikee Bee

    179 posts

    Grrr! That got rid of the error but now the conditional isn’t working!!

    So…..  close!

  • #21 / Jul 11, 2007 6:00am

    silenz

    1651 posts

    But we are getting nearer 😉
    Which conditional is not working now?

  • #22 / Jul 11, 2007 6:12am

    Mikee Bee

    179 posts

    The one you suggested removing, it brings in a style sheet only when its needed. Shall I just have it there all the time or can you see light at the end of the tunnel? 😉

  • #23 / Jul 11, 2007 8:06am

    silenz

    1651 posts

    Yes, I 🐛 the light 😉
    Leave your includes/masthead as it was in the first place.

    But in products/fabrics pass the enquiry-variable to the embed. Leave it empty when it’s not needed but pass it anyway.

    <pre><code>
    {embed="includes/masthead"
    page_title="{page} | {category}”
    description=”{meta-descrip}”
    keywords=”{meta-keys}”
    body_id=“products”
    category=”{category}”
    enquiry=”“
    }
    <pre><code>

    :shut: fingers crossed :shut:

  • #24 / Jul 11, 2007 8:25am

    Mikee Bee

    179 posts

    SCOOOooRE!  😊

    Thanks for your efforts everyone!! Thanks for finding the light Silenz

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

ExpressionEngine News!

#eecms, #events, #releases