MyBB Community Forums

Full Version: Parse Error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm trying to run two databases of MyBB on one web server, and I'm getting this error message:

Parse error: syntax error, unexpected T_STRING in /root/home/*hidden*/public_html/*hidden*/inc/config.php on line 12

Any ideas?

How are you doing that exactly?

And what does line 12 read?
Look at line 11 of the config.php file. There might be missing a semicolon ( ; ) or a comma (,).
If you can't figure it out, post line 11, 12 and 13 here and hide sensitive data.
(2011-05-28, 10:08 AM)Aries-Belgium Wrote: [ -> ]Look at line 11 of the config.php file. There might be missing a semicolon ( ; ) or a comma (,).
If you can't figure it out, post line 11, 12 and 13 here and hide sensitive data.

<?php
/**
 * Database configuration
 *
 * Please see the MyBB Wiki for advanced
 * database configuration for larger installations
 * http://wiki.mybboard.net/
 */

$config['database']['type'] = 'mysqli';
$config['database']['database'] = '*hidden_hidden*;
$config['database']['table_prefix'] = 'mybb_';

$config['database']['hostname'] = 'localhost';
$config['database']['username'] = 'hidden_hidden*';
$config['database']['password'] = '*hidden*';

(2011-05-28, 10:08 AM)faviouz Wrote: [ -> ]How are you doing that exactly?

And what does line 12 read?

I didn't make it very clear since I'm too busy to be writing essays, I've got a sub domain with another copy of the MyBB files.
Don't know if you did it by accident with hiding the data, but this line is missing a closing single quote in the end:
$config['database']['database'] = '*hidden_hidden*;
to
$config['database']['database'] = '*hidden_hidden*';
$config['database']['database'] = '*hidden_hidden*;

Should be:

$config['database']['database'] = '*hidden_hidden*';

</beaten>
(2011-05-28, 10:13 AM)faviouz Wrote: [ -> ]
$config['database']['database'] = '*hidden_hidden*;

Should be:

$config['database']['database'] = '*hidden_hidden*';

</beaten>

I've been using MyBB for 2 years and I didn't spot that..wow.
Thanks guys, fixed
(2011-05-28, 10:14 AM)Morsec0de Wrote: [ -> ]I've been using MyBB for 2 years and I didn't spot that..wow.
It is just PHP... Wink