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.

Problems upgrading from 1.5.2 to 1.6.3 Build: 20080421

May 30, 2008 3:58pm

Subscribe [2]
  • #1 / May 30, 2008 3:58pm

    IMDadmin

    35 posts

    I’ve run into some problems upgrading from 1.5.2 to 1.6.3 (Build: 20080421), similar to those found here:

    http://ellislab.com/forums/viewthread/72291/ (and a number of similar threads)

    I was able to complete the software update successfully based on Lisa’s suggestions found in the forums but I’m now getting the following error on the home page of the site:

    Parse error: syntax error, unexpected T_ENDIF in /www/pmh4652/public_html/eesys/core/core.functions.php(637) : eval()'d code on line 12

    I’m not sure where/how to begin troubleshooting at this point. Any help would be appreciated.

  • #2 / May 30, 2008 4:17pm

    Ingmar

    29245 posts

    Can you access other pages fine? Your control panel, too? Looks like there might be a problem with your template, could you put it in a text file and attach it here?

  • #3 / May 30, 2008 4:30pm

    IMDadmin

    35 posts

    Yes I can access the CP and other pages on the site - article page

    (Bear with me. I didn’t build the site so I’m having to pick my way through the code.)

    The contents of the index page are as follows:

    {embed=brick/header-super page_title="Brick Reloaded"}
    {assign_variable:my_weblog="brick"}
    {assign_variable:my_template_group="brick"}
    
    {embed=brick/index_featured}

    Which leads us to the “brick/index_featured” template.


    I’ve cut all of the EE code (with the exception of an embed=“brick/footer” tag which works fine) from that page.

    I can get index_featured to load on its own but not when called through the embed process from the index template.

    The pared down index_featured template is attached as a text file.

    hmm - attempted to upload a .txt file and got this error:
    Error Message:  The file you are attempting to upload has invalid content for its MIME type.

    Let’s just do this:

    
    									
  • #4 / May 30, 2008 4:50pm

    IMDadmin

    35 posts

    I think I may have narrowed the issue down to a specific weblog entries query in the original index_featured template.

    Reviewing now.

  • #5 / May 30, 2008 5:02pm

    IMDadmin

    35 posts

    [pulls hair out]

    I found it. They had the following as a conditional:

    {if:byline}

    Replacing that with the following resolved the problem:

    {if byline}

    Questions:

    Was the colon ever a part of the conditional formatting syntax?
    Do I need to have them do a review on their templates for similar issues?
    This code worked in 1.5.2. Was that version more lenient in terms of conditionals?

    Thanks for pointing me in the direction of a problem with a specific template, Ingmar.

  • #6 / May 30, 2008 5:11pm

    Ingmar

    29245 posts

    Glad you found it. No, the colon is a typo, and always has been. I am not aware of an alternate syntax that would have worked in older versions, but I have no version old enough to test. Note that with advanced conditionals, the preferred form is now:

    {if byline != ""}

    although the old version will still work for simpe conditionals (ie not involving elseif/else clauses).

  • #7 / May 30, 2008 5:13pm

    IMDadmin

    35 posts

    I’ll see that they’re aware of the preferred method for conditional syntax. Thanks again.

  • #8 / May 30, 2008 5:15pm

    Ingmar

    29245 posts

    Very good. Closing that one out for now, if there’s anything else, related or not, kindly start a new thread in the appropriate forum, thanks.

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

ExpressionEngine News!

#eecms, #events, #releases