Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Babadinho on September 20, 2010, 06:30:43 PM

Title: i get error in Admin, configuration
Post by: Babadinho on September 20, 2010, 06:30:43 PM

I get this error whenever i want to access my core features, features and options with security and moderation, under admin.

"Parse error :  syntax error,  unexpected '}' in  /home/donytex/ public_html/Sources/ ManageSettings.php  on line  2311"

please i need ur help on what to do.
Title: Re: i get error in Admin, configuration
Post by: Babadinho on September 20, 2010, 08:04:41 PM
Please here is my line of error.......................someone should help me please............



    prepareDBSettingContext($config_vars);
}
// Function for modifying birfday settings
function ModifyBirthdayPostSettings($return_config = false)
{
Title: Re: i get error in Admin, configuration
Post by: Babadinho on September 20, 2010, 08:32:39 PM
Thank God............i fixed the problem myself.....but its quite a pity nobody wants to help me out.

the 1st code that caused the error was

{
        checkSession();
        $save_vars = $config_vars;
        saveDBSettings($save_vars);
        redirectexit('action=admin;area=modsettings;sa=counters');
    }

    prepareDBSettingContext($config_vars);
}


i removed the "}" in between counters'); and  prepareDBSetting
it then looked like this

{
        checkSession();
        $save_vars = $config_vars;
        saveDBSettings($save_vars);
        redirectexit('action=admin;area=modsettings;sa=counters');
   

    prepareDBSettingContext($config_vars);
}


it was then solved.....Thanks to Mr Google.
Title: Re: i get error in Admin, configuration
Post by: Babadinho on September 20, 2010, 08:42:44 PM
i still Then get another error this time..............it says

Fatal error: Call to undefined function savedbsettings() in /home/donytex/public_html/Sources/ManageSettings.php on line 2313

here is my code......

// Saving?
    if (isset($_GET['save'])){
        checkSession();
        $save_vars = $config_vars;
        saveDBSettings($save_vars);
        redirectexit('action=admin;area=modsettings;sa=counters');
   

    prepareDBSettingContext($config_vars);
}


while line 2313 is saveDBSettings($save_vars);
Title: Re: i get error in Admin, configuration
Post by: Babadinho on September 20, 2010, 09:20:34 PM
I have finally removed the mod responsible....which is

Counters: Google, StatCounter & Yandex

problem solve...i got to go to sleep now