Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Vanilla 2 Installation Error
jbminn
New
Summary: The installation consistently fails with a 404 Not found 'http://[my.server.domain][/install-url]/garden/gardensetup/2'.
Environment:
- Apache 2.11
- Fedora 10.9
- MySQL 5.1.32
- PHP 5.3.0 w/ PDO + pdo_mysql
I've downloaded the latest from github as of 8-Aug-2009 7:00pm MST and I've followed the brief instructions in INSTALL.txt but can't get past the first installation screen. This seems like it may be an .htaccess rewrite rule issue.
Steps to reproduce:
- Download latest
- Untar into documentroot
- Navigate to URL (i.e. http://[my.server.domain]/[install-url])
- Note error about missing uploads folder
- Create uploads folder; try again
- Fill out form with database name, database user name & password, admin user details
- Click continue
- Note 404 error page
The installation consistently fails with the message 'http://[my.server.domain][/install-url]/garden/gardensetup/2'. This occurs immediately after submitting the form that requests & sets the database & db user name. I can see that config.php is created & the tables in the database get populated, but I cannot get past this error.
Is this supposed to work at this point in development?
Environment:
- Apache 2.11
- Fedora 10.9
- MySQL 5.1.32
- PHP 5.3.0 w/ PDO + pdo_mysql
I've downloaded the latest from github as of 8-Aug-2009 7:00pm MST and I've followed the brief instructions in INSTALL.txt but can't get past the first installation screen. This seems like it may be an .htaccess rewrite rule issue.
Steps to reproduce:
- Download latest
- Untar into documentroot
- Navigate to URL (i.e. http://[my.server.domain]/[install-url])
- Note error about missing uploads folder
- Create uploads folder; try again
- Fill out form with database name, database user name & password, admin user details
- Click continue
- Note 404 error page
The installation consistently fails with the message 'http://[my.server.domain][/install-url]/garden/gardensetup/2'. This occurs immediately after submitting the form that requests & sets the database & db user name. I can see that config.php is created & the tables in the database get populated, but I cannot get past this error.
Is this supposed to work at this point in development?
1
Comments
In a base Apache installation, DocumentRoot will have a strict policy against allowing .htaccess overrides; this is by default set to
AllowOverride None
This must be changed to
AllowOverride All
and restart Apache. Otherwise, the rewrite rules in .htaccess will never get fired, creating 404 errors when it attempts to traverse to a non-rewritten URL in the application.
The error occurred on or near: /var/www/***/html/sommerboard_v2/library/core/class.pluginmanager.php
410: }
411:
412: // Include all of the paths.
413: $PluginInfo = array();
414: foreach($Paths as $Path) {
415: if(file_exists($Path))
416: include($Path);
417: }
418:
Backtrace:
[/var/www/web188/html/sommerboard_v2/library/core/functions.error.php:124] PHP::include();
[/var/www/web188/html/sommerboard_v2/library/core/class.pluginmanager.php:414] PHP::ErrorHandler();
[/var/www/web188/html/sommerboard_v2/bootstrap.php:128] Gdn_PluginManager->IncludePlugins();
[/var/www/web188/html/sommerboard_v2/index.php:26] PHP::require_once();
Variables in local scope:
[EnabledPlugins] array (
'HTMLPurifier' => 'HtmlPurifier',
)
[Paths] NULL
[PluginFolder] 'HtmlPurifier'
[PluginName] 'HTMLPurifier'
[PluginInfo] array (
)
The *** are just a replacement.
Am I missing something here?
It would really be a lot more helpful if these bugs would be submitted to our issue tracker instead of this forum. We're going through the issues on github every day, and it really helps to have all this stuff in one place:
http://github.com/vanillaforums/Garden/issues
//edited GitHub link -Lincoln 29 Sept 2010
I just downloaded Vanilla 2 from GitHub to give it a test spin but I cannot for the life of me get the installer to work. I've uploaded all the files, read the install.txt but I keep getting the below error every time I point my browser to the root directory of garden.
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/jhosting/public_html/garden/index.php on line 30
Any help would be greatly appreciated.
410: }
411:
412: // Include all of the paths.
413: $PluginInfo = array();
414: foreach($Paths as $Path) {
415: if(file_exists($Path))
416: include($Path);
417: }
418:
Backtrace:
[/var/www/web188/html/sommerboard_v2/library/core/functions.error.php:124] PHP::include();
[/var/www/web188/html/sommerboard_v2/library/core/class.pluginmanager.php:414] PHP::ErrorHandler();
[/var/www/web188/html/sommerboard_v2/bootstrap.php:128] Gdn_PluginManager->IncludePlugins();
[/var/www/web188/html/sommerboard_v2/index.php:26] PHP::require_once();
Variables in local scope:
[EnabledPlugins] array (
'HTMLPurifier' => 'HtmlPurifier',
)
[Paths] NULL
[PluginFolder] 'HtmlPurifier'
[PluginName] 'HTMLPurifier'
[PluginInfo] array (
)
How can i fix this?
Thanks
foreach ($EnabledPlugins as $PluginName => $PluginFolder) {
$Paths[] = PATH_PLUGINS . DS . $PluginFolder . DS . "default.php";
$Paths2 = glob(PATH_PLUGINS . DS . $PluginFolder . DS . "*plugin.php");
if(is_array($Paths2)) {
$Paths = array_merge($Paths, $Paths2);
}
}
Now i have another issue, i cant login, when i try to login is stay in loading. Any suggestion?
http://vanillaforums.org/entry
So, you could do this instead:
http://vanillaforums.org/entry/signin
This "sign in only" page doesn't do any ajax postbacks, so you should see the error that is causing your spinner of death on the regular sign in page.
Parse error: parse error, unexpected T_OBJECT_OPERATOR in /path/to/garden/index.php on line 30
here are lines 28-30 from index.php. not sure what's happening with line endings in this forum, but I'm having trouble getting it to display properly so I've inserted an extra carriage return between lines:
// 3. Start the application.
if(strpos(Gdn_Url::Request(), 'gardensetup') === FALSE)
Gdn::Session()->Start(Gdn::Authenticator());
Any thoughts on this? I'm totally new to garden, I just cloned from github and created a directory alias in my local apache, and opened the url in a web browser. My guess is I'm probably missing an installation step?
PHP 4.3.10 (cli) (built: Dec 14 2004 17:48:04)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
http://vanillaforums.org/page/Requirements
Server Requirements
* PHP version 5.1 or newer.
Sorry to take up your time with this, I'm working on updating...
Fatal Error in PHP.ErrorHandler(); PDO::__construct() [pdo.--construct]: [2002] Invalid argument (trying to connect via unix://) The error occurred on or near: /home/luke/Documents/sites/garden/library/core/functions.validation.php 73: $Connection = new PDO( 74: $ConnectionString, 75: $DatabaseUser, 76: $DatabasePassword 77: ); 78: } catch (PDOException $Exception) { 79: return sprintf(Gdn::Translate('ValidateConnection'), strip_tags($Exception->getMessage())); 80: } 81: return TRUE; Backtrace: [/home/luke/Documents/sites/garden/library/core/functions.error.php:124] PHP::include(); [/home/luke/Documents/sites/garden/library/core/functions.error.php:124] PHP::ErrorHandler(); [/home/luke/Documents/sites/garden/library/core/functions.validation.php:77] PDO->__construct(); [/home/luke/Documents/sites/garden/library/core/class.validation.php:471] PHP::ValidateConnection(); [/home/luke/Documents/sites/garden/library/core/class.configurationmodel.php:185] Gdn_Validation->Validate(); [/home/luke/Documents/sites/garden/applications/garden/controllers/gardensetup.php:132] Gdn_ConfigurationModel->Validate(); [/home/luke/Documents/sites/garden/applications/garden/controllers/gardensetup.php:55] GardenSetupController->Configure(); [/home/luke/Documents/sites/garden/library/core/class.dispatcher.php:218] GardenSetupController->Index(); [/home/luke/Documents/sites/garden/index.php:41] Gdn_Dispatcher->Dispatch();
Variables in local scope: [Value] 'garden' [Field] 'dbname' [FormPostedValues] array ( 'TransientKey' => 'GVVRYRKQBGDL', 'Database.Host' => 'localhost', 'Database.Name' => 'garden', 'Database.User' => 'garden', 'Database.Password' => 'password', 'Garden.Title' => 'Vanilla 2', 'Email' => 'email@example.com', 'Name' => 'name', 'Password' => 'password', 'PasswordMatch' => 'password', 'Continue_»' => 'Continue »', ) [DatabaseHost] 'localhost' [DatabaseName] 'garden' [DatabaseUser] 'garden' [DatabasePassword] 'password' [ConnectionString] 'mysql:host=localhost;dbname=garden' Additional information for support personnel: * Application: Garden * Application Version: 1.0 * PHP Version: 5.3.0 * Operating System: Linux * Referer: http://garden/index.php/garden/gardensetup * User Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.2) Gecko/20090803 Ubuntu/9.04 (jaunty) Firefox/3.5.2 * Request Uri: /index.php/garden/gardensetup * Controller: PHP * Method: ErrorHandler
P.S. I've posted this in two comments because it was complaining the post was too long - seems a little stingy if you can't even post your error log in one go...