MyBB Community Forums

Full Version: Config error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Parse error: syntax error, unexpected ';', expecting ')' in /home/playstat/public_html/inc/config.php on line 1
can you copy and paste your first line in config.php here ?
<?php /**  * Database configuration  *  * Please see the MyBB Wiki for advanced  * database configuration for larger installations  * http://wiki.mybboard.net/  */  $config['database']['type'] = 'mysql'; $config['database']['database'] = '***'; $config['database']['table_prefix'] = 'mybb_';  $config['database']['hostname'] = 'localhost'; $config['database']['username'] = '***'; $config['database']['password'] = '***';  /**  * Admin CP directory  *  For security reasons, it is recommended you  *  rename your Admin CP directory. You then need  *  to adjust the value below to point to the  *  new directory.  */  $config['admin_dir'] = 'admin';  /**  * Hide all Admin CP links  *  If you wish to hide all Admin CP links  *  on the front end of the board after  *  renaming your Admin CP directory, set this  *  to 1.  */  $config['hide_admin_links'] = 0;  /**  * Data-cache configuration  *  The data cache is a temporary cache  *  of the most commonly accessed data in MyBB.  * 
everything seems to be fine :o
are you sure its the same error you're getting and the same file you've uploaded ?

just try replacing entire config.php with the following code, though php has nothing to do with white spaces here..

<?php 
/**  * Database configuration  * 
 * Please see the MyBB Wiki for advanced  * d
 atabase configuration for larger installations  * http://wiki.mybboard.net/  */
 $config['database']['type'] = 'mysql'; 
 $config['database']['database'] = '***'; 
 $config['database']['table_prefix'] = 'mybb_';
 $config['database']['hostname'] = 'localhost';
 $config['database']['username'] = '***'; 
 $config['database']['password'] = '***'; 
 /**  * Admin CP directory  * 
 For security reasons, it is recommended you  * 
 rename your Admin CP directory. You then need  * 
 to adjust the value below to point to the  *  new directory.  */  

 $config['admin_dir'] = 'admin'; 

 /**  * Hide all Admin CP links  
*  If you wish to hide all Admin CP links 
 *  on the front end of the board after 
 *  renaming your Admin CP directory, set this  *  to 1.  */  

 $config['hide_admin_links'] = 0;  
 
/**  * Data-cache configuration  
*  The data cache is a temporary cache  
*  of the most commonly accessed data in MyBB.  *
It's because it's all on one line line that, that won't work.
(2011-03-18, 06:57 PM)MattRogowski Wrote: [ -> ]It's because it's all on one line line that, that won't work.

So it would work if replaced as per 4th post right ?
(2011-03-19, 02:04 AM)Dimon Wrote: [ -> ]
(2011-03-18, 06:57 PM)MattRogowski Wrote: [ -> ]It's because it's all on one line line that, that won't work.

So it would work if replaced as per 4th post right ?

Shouldn't matter. The semicolons ( ; ) ends each part of the code, and there are spaces in between the major parts, so it should work.

Try opening in notepad++ and making sure there aren't any random characters that are unneeded. The default notepad tends to screw things up sometimes.