MyBB Community Forums

Full Version: Just moved site to new host and error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I need urgent help. I just moved site to new host. Now the following error is displayed.

Parse error: syntax error, unexpected '';' (T_CONSTANT_ENCAPSED_STRING) in inc/config.php on line 12

How to fix this?
open config.php file in a editor like notepad++ and check content around referred line
$config['database']['type'] = 'mysqli';
$config['database']['database'] = databasename';
$config['database']['table_prefix'] = 'mybb_';
$config['database']['hostname'] = 'localhost';
$config['database']['username'] = 'username';
$config['database']['password'] = 'pass';

here is the file content. Whats the problem in the above code?
Quote:$config['database']['database'] = databasename';
database name is missing start quote tag <= 'databasename';
Thank you so much. Its worked.

(01-13-2015, 07:34 AM).m. Wrote: [ -> ]
Quote:$config['database']['database'] = databasename';
database name is missing start quote tag <= 'databasename';