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.
Vanilla: moving domain, white page displayed
I've just moved a vanilla installation from one domain to another. I've edited all the config files, and the Style database table, so all URLs are correct.
I moved a Wordpress installation, and several other things at the same time, and these all work fine. But when I visit the /forum/ directory where Vanilla is installed I get a white page.
I've inserted 'echo something;' into a number of pages to isolate the problem, and it appears to lie here:
* index.php runs fine until it gets to include("appg/init_vanilla.php");
* appg/init_vanilla.php runs fine until it encounters $Context = new Context($Configuration);
Then everything grinds to a halt. conf/database.php, conf/settings.php have all been updated with new path.
Can anybody help? Any and all assistance much appreciated.
Yours,
James
0
This discussion has been closed.
Comments
add to appg/header.php
ini_set('display_errors', 1);
and comment out in appg/init_vanilla.php (line 58):
ob_end_clean(); ob_start();
- ini_set as mentioned before, it is sometimes (often) disabled on shared hosting.
- htaccess file where you should add the line: php_flag display_errors on
OR
- the php.ini at the root directory of your hosting with the line: display_errors = on
The last both are mutually exclusive.
$Configuration['APPLICATION_PATH'] = '/var/www/sites/XXXXX/htdocs/forum/'; $Configuration['DATABASE_PATH'] = '/var/www/sites/XXXXX/htdocs/forum/conf/database.php'; $Configuration['LIBRARY_PATH'] = '/var/www/sites/XXXXX/htdocs/forum/library/'; $Configuration['EXTENSIONS_PATH'] = '/var/www/sites/XXXXX/htdocs/forum/extensions/'; $Configuration['LANGUAGES_PATH'] = '/var/www/sites/XXXXX/htdocs/forum/languages/'; $Configuration['THEME_PATH'] = '/var/www/sites/XXXXX/htdocs/forum/themes/vanilla/';
Then you should check your cookie settings are fine:
$Configuration['COOKIE_DOMAIN'] = ''; $Configuration['COOKIE_PATH'] = '/';
Put back more restrictive settings when everything else is working.
Finally you should check with your provider if you need to do anything to enable php session. who is your provider?
http://kb.mediatemple.net/questions/235/(gs)+PHP+Sessions+do+not+work+as+expected
http://kb.mediatemple.net/questions/652/(dv)+Session+Save+Path+Errors+and+the+Vhost.conf
add that at the bottom of appg/init_vanilla.php:
var_dump($_SESSION); if (empty($_SESSION['test']) { $_SESSION['test'] = 'set'; }
Reload twice the forum home page and check that session is working.