Somebody help me 'cause this is driving me nuts :-/
When I try to install vanilla I keep on getting the same error. I use the installer (also tried manual install) Connecting with the database is ok, en the SQL file gets imported. However after the "hoozah your installation is succesfull" (or similar) page, I try to open up the forum and it then the following error comes up:
"Parse error: syntax error, unexpected T_STRING in C:\www\forum\appg\settings.php on line 31"
My PHP version is 4.4.1 Apache version is 2.0 MySQL version is 4.1
I reinstalled everything several times. no luck. I also tried installing a older php version (3.x) and a newer one: (5.x) an older SQL version (3) and a newer one (5) With PHP version 5 I encountered problems with connecting to mysql (support not build in), so I cancelled that since I wasn't really interested in ANOTHER problem, and I figured that it would be unlikely that you require php 5 to run vanilla. (right? or is it?)
Since the error stated is a "parse" error, it does suggest that PHP is the problem, but I have no clue what could be the problem.......
has anyone any idea? It would be a great help! i really like vanilla... and want to use it.
I think the best course of action is for you to post your appg/settings.php file up here so we can see it. Be sure to hide or cut out your database connection parameters, though (we don't need to see those :)
Just a quetion inbetween.... if i'am behind NAT, and have disabled the ability to remotely connect to mysql and not forwarded the port on the router...what's the purpose of having a password on mysql, when you are on a private LAN?
er... ok ontopic again. here goes:
<?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 */
// Application version - Don't change this value or you may have // problems upgrading later. define("agVANILLA_VERSION", "0.9.2.6"); // Note: Vanilla 0.9.2.6 included some extremely important security patches. // If you do not have this version installed, we highly recommend that you replace your old vanilla // files with this version. It is okay to leave all files in the appg folder as they are. ?>
define("agDOMAIN", "forum.renderstream.nl\"); should not have a backslash at the end.
That's escaping the quote and making the string extend to the next quote. When it gets there, it tries to interpret the contents of the next string as php code.
And here:define("agAPPLICATION_PATH", "C:\www\forum/"); Those should be either double slashes or in single quotes, although as it is it probably won't have a huge affect on it, as I don't think \w or \f are escape characters of any kind.