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.
Options

[Solved] Vanilla on Apache for Windows

edited November 2005 in Vanilla 1.0 Help
Well... I thought this was going to be easy :p But it ended up not being that way. I first installed Vanilla with no problems using install.php. But once it finished and forwarded me to to signin.php I got a "Class 'Context' Not Found". I searched around and found in your wiki that the Context class is a custom class... So why wouldn't it be able to find it. I found where it was defined and noticed that the path is a variable. I opened up Settings.php and looked for that variable and I believe I found the problem. On Windows, we use backslashes ( \ ) but all the paths ended with forward slashes ( / ) like you would want on a Unix platform. So I changed a few of them from forward to back slashes and I no longer get the Context error... But now I get only a white page. I'm assuming that is because of all the other references to paths using forward slashes. So... Any suggestions? Am I wrong in my diagnosis?

Comments

  • Options
    After some poking around I figured out that the problem was the exact OPPOSITE of what I had thought. Rather than the forward-slashes in the path being hte problem, the backslashes were throwing everything off. After changing my path from c:\ns\www\vanilla to c:/ns/www/vanilla, everything just decided to work fine! So, in closing, there is a bug in the installer.php that should be made to change the backslashes in the absolute path to forward slashes. Hope this helps someone else with this problem. :)
  • Options
    edited October 2005
    And finally, a suggested fix.

    Replace line 178 with the following 2 lines.

    $apppath = str_replace("\\", "/", $WorkingDirectory);
    $ConstantManager->SetConstant("agAPPLICATION_PATH", $apppath);
    I am testing Vanilla now, and I'm quite happy with it. Lightweight and bloatless. Thanks for the great application~
  • Options
    What file does this fix apply to?

    I get this message after a long list of erros:

    Fatal error: Class 'Context' not found in D:\xampp\htdocs\ajaxtalk\appg\init_external.php on line 40
  • Options
    edited November 2005

    To Lunisneko.

    Thank you very much ...

    I had ever posted a topic need help

    Luckily , I have followed your way , it was fixed at 1 second .. Thank you.

    To MrNase

    You must modify the file:
    D:\Program Files\xampp\htdocs\vanilla\appg\settings.php
    And at the 21 line, It should be
    define("agAPPLICATION_PATH", "D:/Program Files/xampp/htdocs/vanilla/");
This discussion has been closed.