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.

Use of Undefined Constant Error

December 15, 2010 5:11pm

Subscribe [3]
  • #1 / Dec 15, 2010 5:11pm

    sleven1868

    78 posts

    EE 1.7x, PHP Version 5.2.14, Perl v5.8.4, Python v2.4.4, Apache 2.0.54, MySQL 5.1.26, PostgreSQL 7.4.7

    I am receiving the following error after I moved hosts when I choose a category from a radio group.  It was working fine at my previous host.  It still produces the right list from the category chosen, it just shows this error above the radio group.  Any ideas on why this is happening?

    Notice: Use of undefined constant vector - assumed ‘vector’ in /nfs/c07/h04/mnt/114136/domains/vltest.qnuru.com/html/system/core/core.functions.php(663) : eval()‘d code on line 22

    Notice: Use of undefined constant helix - assumed ‘helix’ in /nfs/c07/h04/mnt/114136/domains/vltest.qnuru.com/html/system/core/core.functions.php(663) : eval()‘d code on line 22

    Notice: Use of undefined constant prism - assumed ‘prism’ in /nfs/c07/h04/mnt/114136/domains/vltest.qnuru.com/html/system/core/core.functions.php(663) : eval()‘d code on line 22

    {if  {productline} ==vector|helix|prism|matrix}
                            <input type="radio" name="weblog" value="vector|helix|prism|matrix">All Product Lines
    
                     {if:else}
                           <input type="radio" name="weblog" value="vector|helix|prism|matrix">All Product Lines
    
                     {/if}
    
                     {exp:weblog:categories weblog="vector|helix|prism|matrix" category_group="5" style="linear" show_empty="yes"}
                          {if category_name == "{productline}"}
                               <input type="radio" name="weblog" value="{category_name}">{category_url_title}
    
                          {if:else}
                                <input type="radio" name="weblog" value="{category_name}">{category_url_title}
    
                       {/if}
                     {/exp:weblog:categories}

    [Mod Edit: Moved to the EE 1 Tech Support forum]

  • #2 / Dec 16, 2010 4:03am

    John Henry Donovan

    12339 posts

    sleven1868,

    {if  {productline} ==vector|helix|prism|matrix}

    What is productline, a global variable?

    Can you try this

    {if  {productline} == "vector|helix|prism|matrix"}
  • #3 / Dec 16, 2010 11:28am

    sleven1868

    78 posts

    Hey John,
    That worked!  Thank you!  Hmmm, wonder why it was working in a previous instance on a different host?  Well, it works now, if you have an answer that would be great, if not, I’m not that curious.  Just glad its fixed.  You can close this thread.  RESOLVED!  😊

  • #4 / Dec 16, 2010 4:58pm

    Ingmar

    29245 posts

    Very glad to see John Henry was able to help. Please post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases