MyBB Community Forums

Full Version: My ./inc/cofig.php file half deleted!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
:blush: I tried changing my /admin file name using the instructions from here. When through, I tried to access my forum I got
Parse error: syntax error, unexpected '*' in /public_html/go/inc/config.php on line 14. On checking my config.php (my forum files are in 'go' folder) through ftp, lines 62 to 109 had been deleted! What should I do? My little webspace is down!
It's work fine in my forum (mybb 1.8).
edit ~/inc/config.php and rename ~/admin to ~/your_name

maybe you delete ' or ;
check your config.php
(2014-11-30, 04:23 PM)NINJA0210 Wrote: [ -> ]It's work fine in my forum (mybb 1.8).
edit ~/inc/config.php and rename ~/admin to ~/your_name

maybe you delete ' or ;
check your config.php

am saying that my /inc/config.php was not properly saved after renaming the admin directory, its half deleted and on opening my site I see

Parse error: syntax error, unexpected '*' in /public_html/go/inc/config.php on line 14
$config['admin_dir'] = 'admin';

below will cause error.
> $config['admin_dir'] = 'admin
> $config['admin_dir'] = 'admin;
> $config['admin_dir'] = 'admin'
> $config['admin_dir'] = admin';

my config.php
<?php
$config['database']['type'] = 'mysqli';
$config['database']['database'] = 'test';
$config['database']['table_prefix'] = 'mybb_';
$config['database']['hostname'] = 'localhost';
$config['database']['username'] = 'test';
$config['database']['password'] = 'testpass';

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

$config['hide_admin_links'] = 0;

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

$config['memcache']['host'] = 'localhost';
$config['memcache']['port'] = 11211;

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

$config['database']['encoding'] = 'utf8';

$config['log_pruning'] = array(
	'admin_logs' => 365, // Administrator logs
	'mod_logs' => 365, // Moderator logs
	'task_logs' => 30, // Scheduled task logs
	'mail_logs' => 180, // Mail error logs
	'user_mail_logs' => 180, // User mail logs
	'promotion_logs' => 180 // Promotion logs
);


$config['secret_pin'] = '';
Edit: delayed response

do you have your database connecting details ? here is sample config.php file (mediafire link)

you can modify values of below varables and use the file
$config['database']['type'] = 'mysqli';
$config['database']['database'] = 'databasename';
$config['database']['table_prefix'] = 'mybb_';

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