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.
Root settings.php malfunctioning.
I just made a clone of the site I'm using Vanilla (0.9.2.6) on and changed all the relevant settings in the appg/settings.php file to make it work on the new domain...and everything works fine...
...except when I click on the Settings tab. Now the Settings page comes up blank. Completely blank. Not even anything in the source code.
Has anyone had anything weird like this happen to them? I've checked for everything (including blank lines at the end of php files) and I can't find any reason why this is doing this now.
Any help would be greatly appreciated.
0
This discussion has been closed.
Comments
Open up the settings.php file in the root of the application and write this at the top of the file right after the <?php is declared, like so:
<?php echo 'hello';
Then try to view the file in your browser. If you can see the "hello", then edit the settings.php and move the echo line down further in the file. Keep doing this until the hello doesn't show up. This way you can find out what line in the file is causing the problems. If the line happens to be an include, then go into the included file and do the same thing until you find the offending code. Using this method you should be able to find out what is causing the problem. Then come back here and we'll see if we can figure out how to fix it.
Warning: Cannot modify header information - headers already sent by (output started at /---path-to-site-root---/forum/settings.php:2) in /---path-to-site-root---/forum/appg/headers.php on line 14 Warning: Cannot modify header information - headers already sent by (output started at /---path-to-site-root---/forum/settings.php:2) in /---path-to-site-root---/forum/appg/headers.php on line 15 Warning: Cannot modify header information - headers already sent by (output started at /---path-to-site-root---/forum/settings.php:2) in /---path-to-site-root---/forum/appg/headers.php on line 16 Warning: Cannot modify header information - headers already sent by (output started at /---path-to-site-root---/forum/settings.php:2) in /---path-to-site-root---/forum/appg/headers.php on line 17 Warning: Cannot modify header information - headers already sent by (output started at /---path-to-site-root---/forum/settings.php:2) in /---path-to-site-root---/forum/appg/headers.php on line 20 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /---path-to-site-root---/forum/settings.php:2) in /---path-to-site-root---/forum/library/Vanilla.Session.class.php on line 63
I've seen similar errors, but I have no idea how to fix them in Vanilla.
I'm stumped.
...and I know which settings.php you're talking about.
I ended up replacing every single file and re-editing a fresh /appg/settings.php...and everything works fine now. Odd as hell, but at least the site is working as needed.
Thanks for your help, though.