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.
Fatal error after uploading vanilla to the server
I have installed and configured VANILLA on my local pc and then transferred it via FTP to my server in the internet. I have also uploaded the 14 tables into the mysql datebase there.
after calling VANILLA there I get this error:
Fatal error: Cannot instantiate non-existent class: context in /raid/domains/com/m/meinebiografie/htdocs/doerren/forum/appg/init_vanilla.php on line 42
I personally think it has to do with maybe wrong path names etc. So I changed in the settings.php the paths like this:
// Application Settings
$Configuration['SETUP_TEST'] = '1';
$Configuration['APPLICATION_PATH'] = 'http://doerren.meinebiografie.com/forum/';
$Configuration['DATABASE_PATH'] = 'http://doerren.meinebiografie.com/forum/conf/database.php';
$Configuration['LIBRARY_PATH'] = 'http://doerren.meinebiografie.com/forum/library/';
$Configuration['EXTENSIONS_PATH'] = 'http://doerren.meinebiografie.com/forum/extensions/';
$Configuration['LANGUAGES_PATH'] = 'http://doerren.meinebiografie.com/forum/languages/';
$Configuration['THEME_PATH'] = 'http://doerren.meinebiografie.com/forum/themes/vanilla/';
$Configuration['DEFAULT_STYLE'] = '/forum/themes/vanilla/styles/default/';
$Configuration['WEB_ROOT'] = '/forum/';
$Configuration['BASE_URL'] = 'http://doerren.meinebiografie.com/forum/';
$Configuration['FORWARD_VALIDATED_USER_URL'] = 'http://doerren.meinebiografie.com/forum/';
$Configuration['SUPPORT_EMAIL'] = 'doerren@meinebiografie.com';
$Configuration['SUPPORT_NAME'] = 'Achim Samwald';
$Configuration['APPLICATION_TITLE'] = 'Forum Dörren';
$Configuration['BANNER_TITLE'] = 'Die gesunde Art Sonne zu speichern';
$Configuration['COOKIE_DOMAIN'] = 'localhost';
$Configuration['COOKIE_PATH'] = '/forum/';
$Configuration['SETUP_COMPLETE'] = '1';
and so on...
But it is still not enough and by the way what becomes "localhost" on the server then?
Can this be a hint on wrong database names / paswords etc?
Any fast and useful is much appreciated.
Thank you very much
HANS
0
This discussion has been closed.
Comments
but there's something else wrong. i would re-upload all your vanilla files, and make sure you're using ASCII mode in your FTP client.
$Configuration['APPLICATION_PATH'] = '/raid/domains/com/m/meinebiografie/htdocs/doerren/forum/';
$Configuration['DATABASE_PATH'] = '/raid/domains/com/m/meinebiografie/htdocs/doerren/forum/conf/database.php';
$Configuration['LIBRARY_PATH'] = '/raid/domains/com/m/meinebiografie/htdocs/doerren/forum/library/';
$Configuration['EXTENSIONS_PATH'] = '/raid/domains/com/m/meinebiografie/htdocs/doerren/forum/extensions/';
$Configuration['LANGUAGES_PATH'] = '/raid/domains/com/m/meinebiografie/htdocs/doerren/forum/languages/';
$Configuration['THEME_PATH'] = '/raid/domains/com/m/meinebiografie/htdocs/doerren/forum/themes/vanilla/';
$Configuration['APPLICATION_PATH'] = '/forum/'; $Configuration['DATABASE_PATH'] = '/forum/conf/database.php'; $Configuration['LIBRARY_PATH'] = '/forum/library/'; $Configuration['EXTENSIONS_PATH'] = '/forum/extensions/'; $Configuration['LANGUAGES_PATH'] = '/forum/languages/'; $Configuration['THEME_PATH'] = '/forum/themes/vanilla/';
by
$Configuration['APPLICATION_PATH'] = '/raid/domains/com/m/meinebiografie/htdocs/doerren/forum/'; $Configuration['DATABASE_PATH'] = '/raid/domains/com/m/meinebiografie/htdocs/doerren/forum/conf/database.php'; $Configuration['LIBRARY_PATH'] = '/raid/domains/com/m/meinebiografie/htdocs/doerren/forum/library/'; $Configuration['EXTENSIONS_PATH'] = '/raid/domains/com/m/meinebiografie/htdocs/doerren/forum/extensions/'; $Configuration['LANGUAGES_PATH'] = '/raid/domains/com/m/meinebiografie/htdocs/doerren/forum/languages/'; $Configuration['THEME_PATH'] = '/raid/domains/com/m/meinebiografie/htdocs/doerren/forum/themes/vanilla/';
@ini_set('session.use_only_cookies', 1);
$Configuration['DATABASE_HOST'] = 'localhostUsually'; $Configuration['DATABASE_NAME'] = 'LoginNameUsually'; $Configuration['DATABASE_USER'] = 'YourLoginName'; $Configuration['DATABASE_PASSWORD'] = '**********';
You have 3 solutions:
$Configuration['DATABASE_TABLE_PREFIX'] = 'LUM_'; $DatabaseTables['Category'] = 'Category'; $DatabaseTables['CategoryBlock'] = 'CategoryBlock'; $DatabaseTables['CategoryRoleBlock'] = 'CategoryRoleBlock'; $DatabaseTables['Comment'] = 'Comment'; $DatabaseTables['Discussion'] = 'Discussion'; $DatabaseTables['DiscussionUserWhisperFrom'] = 'DiscussionUserWhisperFrom'; $DatabaseTables['DiscussionUserWhisperTo'] = 'DiscussionUserWhisperTo'; $DatabaseTables['IpHistory'] = 'IpHistory'; $DatabaseTables['Role'] = 'Role'; $DatabaseTables['Style'] = 'Style'; $DatabaseTables['User'] = 'LUM_User'; $DatabaseTables['UserBookmark'] = 'UserBookmark'; $DatabaseTables['UserDiscussionWatch'] = 'UserDiscussionWatch'; $DatabaseTables['UserRoleHistory'] = 'UserRoleHistory';
into conf/database.php and change the case there. (that is for care table, you might have to do the same for extension table)