Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Database.PHP erased! Oh noes! Helps?
Okay, why am I getting this?
pushingpixels.net
Am I dealing with a gay hacker that can't leave a site that only has 13 members alone?
pushingpixels.net
Am I dealing with a gay hacker that can't leave a site that only has 13 members alone?
0
This discussion has been closed.
Comments
Looks like you have your username/password wrong for your database to me — but someone more skilled in these matters will be able to tell you exactly.
And I can't do to much about it because I'm at work and using my phone to do this.
Sucks not having computer access all day.
Umm... Do I have to completely reinstall vanilla or can someone give me a copy of the database file with everything included because I can't find one and I didn't make a backup of it.
Gah... Keeps saying invalid user. I have all the right information...
I'm thinking about redoing the whole damn site... Now I know what I need and how to do it. Dang it!
Is this happening to anyone else, or is it just me?
Nathan
I remember making the following changes to stop the problem as suggested here on the forums by little_peet:
The following add-ons seem to be causing the glitch where your settings.php file gets erased:
JQthickbox
Jquery
Discussion view counters
zip2mail
To solve this problem you have to modify part of the framework by replacing the function "AddConfigurationSetting" in the \library\framework\framework.functions.php
This modification has already been placed into Vanilla2 but just incase you can't wait and don't mind modifying - go ahead and do it!
Replace the current function with:
function AddConfigurationSetting(&$Context, $SettingName, $SettingValue = '1') {
if ((!array_key_exists($SettingName, $Context->Configuration))|($Context->Configuration[$SettingName]!=$SettingValue)){
$Context->Configuration[$SettingName] = '';
$SettingsManager = $Context->ObjectFactory->NewContextObject($Context, 'ConfigurationManager');
$SettingsFile = $Context->Configuration['APPLICATION_PATH'].'conf/settings.php';
$SettingsManager->DefineSetting($SettingName, $SettingValue, 1);
$SettingsManager->SaveSettingsToFile($SettingsFile);
}
}
It's solved but nonetheless let it be noted.
which extensions are you using?
database.php is in the web server document root like all the other vanilla file. But the .htaccess should prevent direct access (with an apache server). But it is more secure to put it out of the document root. Not everybody can do that but if you can, do it.