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.

Followed the instructions, but can't get the forum to work...

edited August 2005 in Vanilla 1.0 Help
Hi, I installed the vanilla forum on my webspace and followed the instructions from the installer.php file. Everything seemed to go fine until the point where it said "now go and sign in". The signin.php page (and every other php page I think) is throwing up errors and doesn't work at all. Can anyone point this PHP / MySQL newbie in the right direction? Thanks RB PS. Site can be found here: http://www.160676.net/forum/settings.php

Comments

  • MarkMark Vanilla Staff
    edited August 2005
    Okay, step number 1:

    Open up the appg/settings.php file and make sure that the values in there are correct. Maybe even copy the entire contents of that file into this discussion. BE SURE TO ERASE YOUR DATABASE PASSWORD FIRST (sorry for the caps, but I don't want you to give us your db pass).

    Step number 2:

    Create a blank text file and place the following code inside it:

    <? phpinfo(); ?>

    Then save it as phpinfo.php and upload it to your server. View it through a web browser and tell us what php version you've got.
  • MarkMark Vanilla Staff
    Oh, and it looks like you've got some wacky kind of root path. From your error messages, it gives this as your path:

    C:\Sites\Single1 onniebrown\webroot\forum/library/Vanilla.Discussion.class.php

    The space in "Single1 onniebrown" could be the culprit.
  • edited August 2005
    Hi Mark

    Thanks for the information.

    First of all, the phpinfo.php page is up here: www.160676.net/forum/phpinfo.php.

    Secondly, here is the content of the appg/settings.php file (minus my password)

    <?php
    /*
    * Copyright 2003 - 2005 Mark O'Sullivan
    * This file is part of Vanilla.
    * Vanilla is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
    * Vanilla is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
    * You should have received a copy of the GNU General Public License along with Vanilla; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
    * The latest source code for Vanilla is available at www.lussumo.com
    * Contact Mark O'Sullivan at mark [at] lussumo [dot] com
    *
    * Description: Global application constants
    */

    // Database Settings
    define("dbHOST", "mysql2.brinkster.com");
    define("dbNAME", "ronniebrown");
    define("dbUSER", "ronniebrown");
    define("dbPASSWORD", "XXX");

    // Path Settings
    define("agAPPLICATION_PATH", "/path/to/vanilla/");
    define("sgLIBRARY", agAPPLICATION_PATH."library/");
    define("agEXTENSIONS", agAPPLICATION_PATH."extensions/");
    define("agLANGUAGES", agAPPLICATION_PATH."languages/");

    // Application Settings
    define("agAPPLICATION_TITLE", "Vanilla");
    define("agBANNER_TITLE", "Lussumo <strong>Vanilla");
    define("agDEFAULT_STYLE", "styles/vanilla/");
    define("agDOMAIN", "www.yourdomain.com/vanilla/");
    define("agSAFE_REDIRECT", "signin.php?PageAction=SignOut");
    define("agDISCUSSIONS_PER_PAGE", "30");
    define("agDISCUSSIONS_PER_FEED", "20");
    define("agCOMMENTS_PER_PAGE", "50");
    define("agSEARCH_RESULTS_PER_PAGE", "30");
    define("agCOOKIE_DOMAIN", "www.160676.net");
    define("agSUPPORT_EMAIL", "ronnie@160676.net");
    define("agSUPPORT_NAME", "Support");
    define("agALLOW_NAME_CHANGE", "1");
    define("agPUBLIC_BROWSING", "0");
    define("agUSE_CATEGORIES", "1");
    define("agLOG_ALL_IPS", "0");

    // Panel Settings
    define("agPANEL_BOOKMARK_COUNT", "20");
    define("agPANEL_PRIVATE_COUNT", "5");
    define("agPANEL_HISTORY_COUNT", "5");
    define("agPANEL_USERDISCUSSIONS_COUNT", "5");
    define("agPANEL_SEARCH_COUNT", "20");

    // Discussion Settings
    define("agMAX_COMMENT_LENGTH", "5000");
    define("agMAX_TOPIC_WORD_LENGTH", "45");
    define("agDISCUSSION_POST_THRESHOLD", "3");
    define("agDISCUSSION_TIME_THRESHOLD", "60");
    define("agDISCUSSION_THRESHOLD_PUNISHMENT", "120");
    define("agCOMMENT_POST_THRESHOLD", "5");
    define("agCOMMENT_TIME_THRESHOLD", "60");
    define("agCOMMENT_THRESHOLD_PUNISHMENT", "120");
    define("agTEXT_WHISPERED", "Private");
    define("agTEXT_STICKY", "Sticky");
    define("agTEXT_CLOSED", "Closed");
    define("agTEXT_HIDDEN", "Hidden");
    define("agTEXT_BOOKMARKED", "");
    define("agTEXT_PREFIX", "[");
    define("agTEXT_SUFFIX", "]");

    // String Formatting Settings
    define("agDEFAULTSTRINGFORMAT", "Text");
    define("agFORMATSTRINGFORDISPLAY", "DISPLAY");
    define("agFORMATSTRINGFORDATABASE", "DATABASE");

    // Application Mode Constants
    define("agMODE_DEBUG", "DEBUG");
    define("agMODE_RELEASE", "RELEASE");
    define("agMODE_UPGRADE", "UPGRADE");

    // Registration settings
    define("agDEFAULT_ROLE", "0");
    define("agALLOW_IMMEDIATE_ACCESS", "0");
    define("agAPPROVAL_ROLE", "3");

    // Application version - Don't change this value or you may have
    // problems upgrading later.
    define("agVANILLA_VERSION", "0.9.2.2");
    ?>
  • Looks like your settings.php didn't get saved correctly, try editing it by changing define("agAPPLICATION_PATH", "/path/to/vanilla/"); to define("agAPPLICATION_PATH", "C:/Sites/Single1/ronniebrown/webroot/forum/"); AND define("agDOMAIN", "www.yourdomain.com/vanilla/" to define("agDOMAIN", "www.160676.net/forum/"
  • Thanks jasone, That seems to have done the trick...
  • Glad to help :) Just to troubleshoot what caused it though can you create a new file say getcwd.php with the below contents and then post the result of it here? <?php $path =getcwd(); if($path){ echo $path; }else{ echo "Getcwd returns false"; } ?>
  • No problem,

    The result of that code is: "C:\Sites\Single1\ronniebrown\webroot\forum"

    (without the quotes, natch).

    On an unrelated note, when I attempt to approve a user for membership, I receive the following error:

    A fatal, non-recoverable error has occurred
    Technical information (for support personel):
    Error Message: An error occurred while sending the email.
    Affected Elements: Email.Send();
    For additional support documentation, visit the Lussumo Documentation website at: lussumo.com/support

    I presume there's a fault in the email somewhere but can't seem to see what. Any ideas?

    Thanks again.
  • Looks like your server might not have the sendmail module loaded. Is this a windows server?
  • MarkMark Vanilla Staff
    Your server may not be configured to send email.

    You can test it by creating a new text file with this inside:
    <?php
    
    // Turn on all error reporting
    error_reporting(E_ALL);
    
    // Try to send an email
    if (mail("your_email@your_domain.com", "Test", "Test Message")) {
         echo("Mail sent successfully.");
    }
    ?> 
    Be sure to replace "your_email@your_domain.com" with your actualy email address.
    Then save it as mailtest.php and upload it to your server.
    View it in a web browser and see what it says.
This discussion has been closed.