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.

Can't add new categories

January 10, 2011 12:46pm

Subscribe [3]
  • #1 / Jan 10, 2011 12:46pm

    focusfusion

    58 posts

    Hi There!

    I’m running 1.6.8

    Tried to add new categories today, and get this error:

    Parse error: syntax error, unexpected T_ENDIF in /www/sitename/public_html/system/core/core.functions.php(634) : eval()‘d code on line 105

    When you go to my categories page and click on the link for new categories (anything above C155 ) will give you the error message. 

    E.g., http://focusfusion.org/index.php/site/category/C155 will open, but http://focusfusion.org/index.php/site/category/C156 and http://focusfusion.org/index.php/site/category/C157 on up won’t.

    I tried re-uploading the core.functions.php file and cleared my caches, but this didn’t work.

    Help!

    Thanks.

  • #2 / Jan 10, 2011 4:46pm

    Ingmar

    29245 posts

    Can you please try upgrade to EE 1.7? This would help us to rule out file corruption issues and make sure we’re all on the same page in terms of code.

  • #3 / Jan 12, 2011 11:08am

    focusfusion

    58 posts

    OK, I’ve updated.  The problem persists. 

    The error message is:

    Parse error: syntax error, unexpected T_ENDIF in /www/sitename/public_html/system/core/core.functions.php(663) : eval()‘d code on line 106

  • #4 / Jan 12, 2011 11:10am

    focusfusion

    58 posts

    Also, I had gone in to change some previous categories as a hack since I couldn’t get new categories.  The changes took, except this one, which is category #62. 

    E.g., it’s not just new categories added, but now the corruption has spread backwards to modified categories.

    Not all of them though.

    Seems a bit random.

  • #5 / Jan 12, 2011 11:36am

    focusfusion

    58 posts

    Note that the category descriptions for the new categories show up in the “descriptions” page. 

    Likewise I can select the new categories for weblog posts, and the name of the category appears on my posts (I’ve set it up so you can see the categories for each post). 

    So, it’s just when clicking them to go to the /category page that everything falls apart.

    Help!

  • #6 / Jan 12, 2011 3:52pm

    focusfusion

    58 posts

    I am quietly panicking.

  • #7 / Jan 13, 2011 3:30am

    John Henry Donovan

    12339 posts

    focusfusion,

    What is in that site template? Lets start by examining that. Do you have a lot of conditionals? Any PHP?

  • #8 / Jan 13, 2011 9:47am

    focusfusion

    58 posts

    You’re a genius!

    A search turned up this improper conditional:

    {exp:weblog:entries weblog="{my_weblog}" orderby="date" sort="desc" limit="10" disable="member_data|trackbacks"}
    <div class="entry">
    <hr >
    {if segment_3 !="faqs"}
    
    <h2 ><a href="http://{title_permalink=site/article}">{title}</a></h2><span class="postmeta">{entry_date format='%M'} {entry_date format='%d'}, {entry_date format='%Y'}</span>
    
    
    {if segment_3 == "faqs"}
    
    <span class="q">Q:</span> {title}
    
    {if:else}
    {summary}
    {/if}
    
    
    </div>
    {/exp:weblog:entries}
    {/if}

    Which I fixed and now my wayward new categories appear.

    What surprises me is that this didn’t cause problems before.  It’s been the page for a year now, 180,000+ visits.  It held together through all of that.  I wonder what tipped it.

    In any case, it ain’t broke no more, so I shall cease wondering.

    Thanks again!

  • #9 / Jan 13, 2011 5:20pm

    Ingmar

    29245 posts

    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