I'm attempting to install Drupal 7 for the first time and have done nothing to modify any files, just uploaded them to my web space and CHMOD'ed a directory as instructed. However, when attempting to run the install script I got the following error message:
Parse error: syntax error, unexpected '{' in /home/fredr5/public_html/allison/includes/bootstrap.inc on line 677
The line in question is:
try {
In context:
// Verify that we have an active database connection, before querying
// the database. This is required because this function is called both
// before we have a database connection (i.e. during installation) and
// when a database connection fails.
else {
try {
if (function_exists('db_query')) {
$file = db_query("SELECT filename FROM {system} WHERE name = :name AND type = :type", array(':name' => $name, ':type' => $type))->fetchField();
if (file_exists(DRUPAL_ROOT . '/' . $file)) {
$files[$type][$name] = $file;
}
}
}
I'm entirely unfamiliar with the code so I didn't want to add or delete anything without finding out what was going on and seeing if perhaps anyone else was having the same problem. I'd appreciate any help, thanks!
---
SOLVED! (1/18/2011)