Forums » Troubleshooting

Parse Error: unexpected '{' when trying to install

(4 posts)
  • Started 7 months ago by veehikle
  • Latest reply from veehikle
  • This topic is resolved
  1. 7 months ago # | |

    Got the following error when I began to install...

    All directories were installed on the server
    MySQL 5 Server setup
    Linux/appache
    Using FTP Leech for the uploads
    Confirmed the access permissions on the directories.

    Here's the error...
    http://www.historicalsocietyofsomersethills.org/omeka/install/

    Parse error: parse error, unexpected '{' in /home/content/v/e/e/veehikle1/html/omeka/install/install.php on line 16

    If I go look at the file.....(install.php)

    try {
    $db = $core->getDb();

    //Build the database if necessary
    $show_tables_sql = "SHOW TABLES";
    //Ensure that we don't confuse Omeka if there are already tables in the DB
    if($db->prefix) $show_tables_sql .= " LIKE '$db->prefix%'";
    $res = $db->query($show_tables_sql);
    $tables = $res->fetchAll();
    line 16 is the try comment....

    Any ideas...?
    Not a real computer geek...but I'm willing to learn....

  2. 7 months ago # | |

    Could you do me a huge favor and double check that you have PHP5 enabled? The 'try' keyword only works in PHP5 so it would cause a fatal error if you didn't have the right version of PHP installed on your web host.

  3. 7 months ago # | |

    I received the following error message after transferring Omeka to a server running PHP 5.2:

    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /nfsn/content/teaching/public/omeka/application/libraries/Omeka/Core.php on line 14

    Thoughts?

  4. 7 months ago # | |

    That fixed it....and it installed fine. We're up and running with the pilot...

    We're now running on PHP 5.x.

    Now I have to go and see what else broke out there on the site!

RSS feed for this topic

Reply

You must log in to post.