Hello,
I'm having trouble upgrading my website to Basic Hosting. It is currently working just fine with Value Hosting. When I attempted to upgrade to Basic using the member tools, the site crashes on a particular php file.
The site is a Drupal 7 based site. The error is "Unexpected '{' on line 677 of the file 'includes/bootstrap.inc'
This line is the opening of a try block. Inside the try block is an if statement attempting to verify connection to the database.
It seems to me that it is something about how the server is configured or permission to access my database. This is not something I can troubleshoot or fix. Customer service suggests I come here for help.
Are there any suggestions?
-Bob
http://www.astronomylog.com
I'm having trouble upgrading my website to Basic Hosting. It is currently working just fine with Value Hosting. When I attempted to upgrade to Basic using the member tools, the site crashes on a particular php file.
The site is a Drupal 7 based site. The error is "Unexpected '{' on line 677 of the file 'includes/bootstrap.inc'
This line is the opening of a try block. Inside the try block is an if statement attempting to verify connection to the database.
Code: Select all
if (!empty($filename) && file_exists($filename)) {
$files[$type][$name] = $filename;
}
elseif (isset($files[$type][$name])) {
// nothing
}
// 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 { <=== this is the line that fails
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;
}
}
}
Are there any suggestions?
-Bob
http://www.astronomylog.com