Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

In this Discussion

Vanilla 2 Installation Error

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?
«1

Comments

  • Solved it myself - should have waited a couple more minutes. ;)

    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.
  • ToddTodd Chief Product Officer vanilla
    Thanks for the fix. I'm posting this issue to github too.
  • Installed Garden/Vanilla 2 with a fresh and empty database. Right after I entered all the information it needs this error came up:



    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. ;)
  • How are you guys installing this? The files on github are incomplete.. config.php doesn't exist which results in an error right off the bat?

    Am I missing something here?
  • MarkMark vanilla
    @XBleed - config.php is created by the installer if it has been given the proper permissions. We still need to do some work on the installer so that these things are clear to the person doing the install - which is a big reason why we haven't made an official release yet.
  • MarkMark vanilla
    @typolicious - It looks like it is failing to include your plugins.

    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
  • Hi guys

    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.
  • MarkMark vanilla
    Open that file and look at line 30. My guess is that the upload messed up your file somehow.
  • I have the same problem as typolicious

    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
  • MarkMark vanilla
    I think it might have something to do with the mixed case of the folders. Try this: go into your plugins folder and delete all of the plugin folders. Then try to install it again.
  • I change code in class.pluginmanager to make it work: I added one if before the is_array, because i didnt have any plugin that containt a plugin.php

    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?
  • MarkMark vanilla
    Add "signin" to your login url and see if you get any errors when you sign in. For example, on this forum, the login url is:

    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.
  • I'm having a similar problem as MichaelEdwards --

    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?
  • MarkMark vanilla
    What version of PHP are you guys running?
  • I am a little behind the times on this machine. Maybe that is the problem:

    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
  • sorry, I'm just getting oriented here with garden & vanilla. I found the requirements page, which probably explains why my current installation is failing

    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...
  • MarkMark vanilla
    Yep - I figured that was the problem. It didn't understand the :: syntax, I bet.
  • I've got an installation error on Linux using Xampp (cos I'm lazy and it worked just fine for V1, WP, Symphony).
    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...
  • LincolnLincoln Snapperhead vanilla
    Looks like XAMPP doesn't come with pdo_mysql, a PHP module you need to run Vanilla 2.

    Developer at Vanilla Forums, Inc. [GitHub, Twitter]

  • phpinfo.php
    PDO
    PDO support enabled
    PDO drivers mysql, pgsql, sqlite, sqlite2


    pdo_mysql
    PDO Driver for MySQL enabled
    Client API version mysqlnd 5.0.5-dev - 081106 - $Revision: 1.3.2.27 $
    Persistent cache enabled
    put_hits 0
    put_misses 0
    get_hits 0
    get_misses 0
    size 2000
    free_items 2000
    references 2

    Directive Local Value Master Value
    pdo_mysql.cache_size 2000 2000
    pdo_mysql.default_socket no value no value
  • LincolnLincoln Snapperhead vanilla
    You've got me, then. Might have better luck using the issue tracker though. There's probably a size limit on posts because it wasn't meant for error logs. :)

    http://github.com/vanillaforums/Garden/issues

    Developer at Vanilla Forums, Inc. [GitHub, Twitter]

  • Hmm, just managed to run into this same error attempting to install MODx (it got further, it actually installed, don't know how brokenly yet :D just throws lots of errors). Looking around a bit, it looks to have something to do with "dsn" and "mysql.sock". I found the latter at /opt/lampp/var/mysql/mysql.sock, but it was empty, so...
  • just a followup that my 2.x installation went fine after shutting down my older apache configured to use php4 and installing xampp (winxp sp2)

    One small issue -- I couldn't get things to work with garden installed in a symlink'ed directory (apache2 / win32 issue?)

    Also, you'll probably want to disable htaccess url-rewrites if installing garden in a subdirectory of your main wwwdocs
  • I'm having the same issue. Installation is failing with 404 Not Found. However, I'm using nginx. So Any idea?
  • Hi LETMIX / MARK
    Following your comment RE: class.pluginmanager
    (*****
    I change code in class.pluginmanager to make it work: I added one if before the is_array, because i didnt have any plugin that containt a plugin.php

    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); } }

    *****)
    I have exactly the same page with these errors coming up. I've looked on the famous Google and found several web pages that has this same message.

    It's a nice solution, but I have no idea what to do with this. Where / On which line, is this information suppose to go into? Did you take anything else out? I don't know much about coding but it would help a lot if I know what to do with this.
    PLEASE HELP ME!!!! ANYONE???

    Thanks MSERAPHIM
  • ToddTodd Chief Product Officer vanilla
    @mseraphim, I think your bug was fixed before. We made our own Glob function that will always return an array. You should notice that all Glob calls are made with a capital "G".
  • Hi Todd, thank you for your quick reply. This bug may have been fixed before, but it was never included in the latest download of Vanilla2. I eventually figured out where to put this "foreach......}}" into the document.

    It would be nice if this was included in the latest download....Developers?

    The Glob calls are not made with a capital "G" but with lower case "g". Unless I'm missing something. Thank you though. Dreamweaver didn't recognize the Glob with capital "G".

    Hope u have a great day!!!! till later
  • @kamraan sounds like you are probably having an Nginx rewrite rules problem. PM and i'll fwd' you my rewrite rules.
  • I'm having rewrite issues as well.. however I am using Abyss Web Server X2 and it doesn't support .htaccess. I have to configure my rewrites as such:
    Virtual Path Regular Expression :

    Conditions :

    If this rule matches : Perform an internal redirection
    Perform an external redirection
    Report an error to the client

    Parameter(s) for "Perform an internal redirection"
    Redirect to :
    Append Query String
    Escape Redirection Location

    Next Action : Continue with the next rule
    Stop matching
    Restart from the first rule

    → Parameter(s) for "Perform an external redirection"Redirect to :
    Append Query String
    Escape Redirection Location
    Status Code : 301 - Moved Permanently302 - Moved Temporarily303 - See Other304 - Not Modified305 - Use Proxy307 - Temporary RedirectOther Status Code

    → Parameter(s) for "Report an error to the client"Status Code : 400 - Bad Request401 - Unauthorized402 - Payment Required403 - Forbidden404 - Not Found405 - Method Not Allowed406 - Not Acceptable407 - Proxy Authentication Required408 - Request Timeout409 - Conflict410 - Gone411 - Length Required412 - Precondition Failed413 - Request Entity Too Large414 - Request-URI Too Long415 - Unsupported Media Type416 - Requested Range Not Satisfiable417 - Expectation Failed500 - Internal Server Error501 - Not Implemented502 - Bad Gateway503 - Service Unavailable504 - Gateway Timeout505 - HTTP Version Not SupportedOther Status Code

Sign In or Register to comment.