Vanilla open source was terminated 1 January 2025 by Higher Logic. See this announcement for more information.
Local Vanilla Test

Is there a way I can test the new master branch 2.1 on a local machine? The problem is it gets broken and no style seems to work.
0
Best Answer
-
Kasper Vanilla Staff
You don't have PHP 5.3 installed so Vanilla 2.1 won't work like it's supposed to
Edit: Here's the error message:
Fatal error: Call to undefined function header_remove() in /home/etrewpir/public_html/ezdevaj.ma/forum/applications/dashboard/models/class.assetmodel.php on line 35
header_remove()
was implemented in PHP 5.3.0 http://php.net/manual/en/function.header-remove.phpKasper Kronborg Isager (kasperisager) | Freelance Developer @Vanilla | Hit me up: Google Mail or Vanilla Mail | Find me on GitHub
6
Answers
@EdelAli
Lots of people have working local test installs of 2.1
If you want help, you need to be much more exact.
doesn't give any useful information.
What have you done, what has worked, and what doesn't work how you expected it to?
Clear the cache and doublecheck the location of the style.css file, because the situation you are discribing looks like just a missing .css file. Did you upgrade or fresh install? Which branch did you install from? gitHub Url?
There was an error rendering this rich post.
It's likely your PHP version. Despite what the 2.1 documentation states, PHP 5.3 is required. Vanilla staff has stated they hope to have 2.1 5.2 compatible when it comes out of beta. Search for the specific exact PHP versions as I don't remember off the top of my head.
It's a fresh install. I believe I downloaded the master branch, it says vanilla 2.1a33. In case I'm using words incorrectly, It's an offline WampServer 2.2 simulation I'm trying to run vanilla on, and PHP is 5.3.9. Here's a screenshot:
check file paths
There was an error rendering this rich post.
@EdelAli go to /conf/config.php
$Configuration['DebugAssets'] = TRUE;
this is an issue of having php 5.2 on localhost, vanilla 2.1 runs on 5.3
but if the problem still exists you could do
$Configuration['DebugAssets'] = TRUE;
or you could add to your .htaccess 5.3 triggers i'll send the codes later.
you could doublecheck which php you are running by putting other .php file to your localhost and
echo phpinfo();
@422 Actually checked Discussions page source and there was some stylesheet not found at
/vanilla2.1/utility/css/style/style-d37a9620.css, for which I couldn't find a similar path on my computer, either.
Firebug is still a cool tool, to check for broken links to files like CSS, JS and so on.
It's no longer local vanilla install, to be honest. Put it online here and here and the issue still persists. Am I the only one with Vanilla2.1 installation issues, then? Links are version 2.1a35.
You don't have PHP 5.3 installed so Vanilla 2.1 won't work like it's supposed to
Edit: Here's the error message:
header_remove()
was implemented in PHP 5.3.0 http://php.net/manual/en/function.header-remove.phpKasper Kronborg Isager (kasperisager) | Freelance Developer @Vanilla | Hit me up: Google Mail or Vanilla Mail | Find me on GitHub
erm ...
weird url > http://etrewp.ir/ezdevaj.ma/forum/ is that right ???
and your other link, the css isnt loading. I am not sure what folder Utility is , as I dont have vanilla 2.1 and not sure if thats vanilla structure.
Are you sure you have setup paths correctly ?
There was an error rendering this rich post.
well
yeah, that's right. I believe there's no wrong path I'm aware of.
@kasperisager I'm glad you're answering me. And thank you for the complementary edit. My WampServer local machine reports that it's PHP 5.3.9; but as I just moved online, it seems you are more than right there. I tried to put that on php3 and now it's Class 'PDO' not found stuff. I'm trying to catch related stuff on the forum regarding that PDO as I see it's been mentioned several times. Not sure if that would solve the problem. The issue with my local install keeps happening, though.
@422 @kasperisager Forgot to let you know, my hostman says PDO is not activated on PHP3 in our systems but we'll take care shortly. I'm not assigning any of yours that kindly helped as answers to my discussion, though; simply because I did not make it happen with my Local Vanilla Test. That is what the title actually reads...
Guess what! While attempting a fresh Habari local install -which, on my part, has failed to date- I accidentally happened to activate Wamp Apache rewrite_module (mod_rewrite, that is to say) and yeah! As concerns Vanilla 2.1a on my localhost, now it flawlessly worked. Thank God.