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.

Parse error?

November 13, 2007 8:29am

Subscribe [3]
  • #1 / Nov 13, 2007 8:29am

    mickfealty

    115 posts

    Just got this message on my front page:

    Parse error: syntax error, unexpected T_STRING in /home/slugger/public_html/index.php on line 54

    Any ideas on how to fix it?

  • #2 / Nov 13, 2007 8:52am

    Derek Allard

    3168 posts

    A new version of EE (1.6.1) came out last night.  Try updating and see if that changes things for you Mick, I suspect it might.  If not, can you post lines 50 through 58 of your index.php for us?

  • #3 / Nov 13, 2007 8:58am

    mickfealty

    115 posts

    I think it’s in here Derek:

    {exp:weblog:category_heading weblog="{master_weblog_name}"}
    <div class="pagemenu">
    <h2 class="title">Archive for: {category_name}</h2>
    {if category_description}
    {category_description}
    {/if}
    </div>
    {/exp:weblog:category_heading}
    
    {exp:weblog:entries weblog="{master_weblog_name}" orderby="date" sort="desc" limit="25"}
    
    {date_heading}
    <h4 class="date">{entry_date format=' %l, %F %d, %Y '}</h4>
    {/date_heading}
    
    <div class="blog">
    <h3 class="title"><a href="http://{url_title_path=" title="Permalink for {title}">{title}</a></h3>
    
    {body}
  • #4 / Nov 13, 2007 9:01am

    Derek Allard

    3168 posts

    Did you update yet Mick?

    Also, I mean literally the index.php file, not the index template.  Sorry, I should have been more clear.  Also, does this happen on every page of your site or just your front page?  If its just your front page, do you have PHP enabled for your index template?

  • #5 / Nov 13, 2007 9:08am

    mickfealty

    115 posts

    Okay, I will try to update (it always fills me with trepidation). All pages controlled by EE have this error message. I have some static pages that were created originally under MT that are stable.

  • #6 / Nov 13, 2007 9:10am

    Derek Allard

    3168 posts

    OK, let me know how it goes, and remember to backup!

  • #7 / Nov 13, 2007 10:04am

    mickfealty

    115 posts

    Not so good. I’m getting a “Site Error: Unable to Load Site Preferences; No Preferences Found” when I go to clear the cache in EE untilities…

    To be honest EE terrifies me. I’m a real novice, left with a site running on software that’s clearly way beyond my simple ken.

  • #8 / Nov 13, 2007 10:07am

    Robin Sowell

    13255 posts

    No worries- we can get it squared away.  What version did you update from?  And when you went through the update.php page- did you get a success message at the end, telling you you’d been updated to 1.6.1?

  • #9 / Nov 13, 2007 10:19am

    mickfealty

    115 posts

    No, I’ve got:

    Welcome!

    You are currently running ExpressionEngine: Version 1.5.2

    If you have followed the Update Instructions and are ready to update your system, please click the link below

    But with no link to hit below…

  • #10 / Nov 13, 2007 10:24am

    Robin Sowell

    13255 posts

    OK- let’s step through things.  Have you backed up your database as well as your system/config.php and path.php files?  And made sure config.php is writable- generally chmod 666?  And you uploaded both the update.php file to your system folder as well as the updates folder to the system folder?

    ETA- and you haven’t started updating anything- right?  You started with 1.5.2 and have no visible link to start the upgrade?

  • #11 / Nov 13, 2007 10:28am

    mickfealty

    115 posts

    The database I backed up, but not the config and path files. under config.php all I can see is -rw-rw-rw-. And I’ve definitely done the last two.

    UPDATE: no I haven’t done the last two… sorry, my confusion.

  • #12 / Nov 13, 2007 10:37am

    Robin Sowell

    13255 posts

    OK- download a copy of your config.php and path.php.  Then- delete system/update.php and system/updates/ - upload fresh copies from your 1.6.1 download.  See if that gets us a link.

  • #13 / Nov 13, 2007 10:45am

    mickfealty

    115 posts

    That looks like it has worked…

  • #14 / Nov 13, 2007 10:47am

    mickfealty

    115 posts

    Except that I still have the parse error…

  • #15 / Nov 13, 2007 10:49am

    Robin Sowell

    13255 posts

    A qualified ‘yay’?  Change the name of your current index.php to index_bk.php and upload a fresh index.php from the 1.6 download.  Let’s see if that does it.

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

ExpressionEngine News!

#eecms, #events, #releases