MyBB Community Forums

Full Version: Upgrading
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I am upgrading this weekend to 1.2.3 from 1.2.2 and I was wondering. I edited the header and footer files. I also put in some meta tags and such. Do I overwrite the files as normal and add those back or what do I do?
Templates files aren't overwritten. They're stored in the database.
Okay... I uploaded my files and this is the error I get. Please help!

Warning: main(/homepages/6/d195358843/htdocs/inc/db_.php) [function.main]: failed to open stream: No such file or directory in /homepages/6/d195358843/htdocs/install/upgrade.php on line 25

Fatal error: main() [function.require]: Failed opening required '/homepages/6/d195358843/htdocs/inc/db_.php' (include_path='.:/usr/local/lib/php') in /homepages/6/d195358843/htdocs/install/upgrade.php on line 25
You ran the installation didn't you...

Your supposed to run install/upgrade.php
I got that error running install/upgrade.php
You went to the DB config step, on the install, and then realized you were at the wrong place, right?
Yeah. I a ran install until the db thing. Then I did the upgrade.
Yeh. Once you reach the DB config it erases your config.php to overwrite with the new, updated one. You'll need to find a backup of the config.php or remake it.
I don't have a backup of it... How do I remake it?
Found from a search:

DrPoodle Wrote:Here is the code you need to put in the new config.php. Make sure you edit the database configuration variables to what they should be...
<?php
/**
 * Daatabase configuration
 */

$config['dbtype'] = 'mysql';
$config['hostname'] = 'localhost';
$config['username'] = '';
$config['password'] = '';
$config['database'] = '';
$config['table_prefix'] = 'mybb_';

/**
 * 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.
 *  By default, the database is used to store this data.
 *
 *  If you wish to use the file system (inc/cache directory)
 *  you can change the value below to 'files' from 'db'.
 */

$config['cache_store'] = 'db';

/**
 * Super Administrators
 *  A comma separated list of user IDs who cannot
 *  be edited, deleted or banned in the Admin CP.
 *  The administrator permissions for these users
 *  cannot be altered either.
 */

$config['super_admins'] = '1';
 
?>

So change all of these to what they should be to connect to your database:

$config['dbtype'] = 'mysql';
$config['hostname'] = 'localhost';
$config['username'] = '';
$config['password'] = '';
$config['database'] = '';
$config['table_prefix'] = 'mybb_';
Pages: 1 2