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.

edited April 2006 in Vanilla 1.0 Help
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.

Comments

  • MarkMark Vanilla Staff
    edited April 2006
    That's an odd one. Here's what I would do to figure out what is going wrong:

    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.
  • WOO! I put the echo code right after the ?php and this monster set of errors popped up:

    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.
  • MarkMark Vanilla Staff
    That's fine. It means that the headers.php file is getting included after your echo. Keep moving that echo statement down. Eventually those errors will disappear and be replaced by other, more relevant error messages.
  • Okay. I moved that all the way up and down the root settings.php...in between every single line and other than the header already sent problems, not a single other error cropped up.

    I'm stumped.
  • MarkMark Vanilla Staff
    Did the text continue to be echoed right down to the very bottom of the file?
  • MarkMark Vanilla Staff
    And remember, I'm talking about /settings.php not /appg/settings.php
  • Actually, the only time the text echoed was when those header errors showed up. The rest of the time it was a blank page.

    ...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. :)
  • MarkMark Vanilla Staff
    Wierdness. Oh well. I'm glad you got it going.
This discussion has been closed.