contao / core-bundle

[READ-ONLY] Contao Core Bundle
GNU Lesser General Public License v3.0
122 stars 57 forks source link

4.1.0-RC1 - impossible to access the installation tool #406

Closed lionel-m closed 9 years ago

lionel-m commented 9 years ago

After installing Contao, I can not access the installation tool.

Path: http://localhost:8888/contao410rc/web/install.php

Message:

The installation has not been completed. Open the Contao install tool to continue. 500 Internal Server Error - InternalServerErrorHttpException 1 linked Exception: IncompleteInstallationException

Logs:

INFO - Matched route "contao_catch_all". INFO - Attempting SimplePreAuthentication. CRITICAL - An exception occurred. CRITICAL - Uncaught PHP Exception Contao\CoreBundle\Exception\InternalServerErrorHttpException: "The installation has not been completed. Open the Contao install tool to continue." at /Applications/MAMP/htdocs/contao410rc/vendor/contao/core-bundle/src/EventListener/ExceptionConverterListener.php line 80

And:

RuntimeException in NativeSessionStorage.php line 144: Failed to start the session because headers have already been sent by "/Applications/MAMP/htdocs/contao410rc/app/bootstrap.php.cache" at line 1474.

aschempp commented 9 years ago

Did you install Contao using Composer? I assume it did create the parameters.yml? The problem most likely is that Composer will create parameters.yml but not localconfig.php.

lionel-m commented 9 years ago

Did you install Contao using Composer?

Yes php composer.phar create-project contao/standard-edition=4.1.0-RC1 contao410rc

parameters.yml is ok

You're right, the folder system/config is empty

leofeyer commented 9 years ago

Fixed in contao/installation-bundle@4a519c0db9dd6f84a6e409246a9d533529d4b8e5. To test the fix, you have to add the following line to the "require" section of your composer.json file:

    "require": {
        …
        "contao/installation-bundle": "dev-release/1.0.0",
    },
lionel-m commented 9 years ago

@leofeyer I added this line and after the composer update it returns:

capture d ecran 2015-11-11 a 11 52 28

leofeyer commented 9 years ago

Yes, sorry, it should have been:

    "require": {
        …
        "contao/core-bundle": "dev-release/4.1.0 as 4.1.x-dev",
    },
lionel-m commented 9 years ago

Thanks :+1:

xchs commented 9 years ago

Hmm, even with the "contao/core-bundle": "dev-release/4.1.0 as 4.1.x-dev" line in the composer.json require section and an dependency update by running composer update I still get an Error 500 when running the install tool (/install.php).

The error_log shows the following stack trace:

PHP Fatal error:  Uncaught exception 'Contao\\CoreBundle\\Exception\\IncompleteInstallationException' with message 'The installation has not been completed. Open the Contao install tool to continue.' in /var/www/virtual/contao4/vendor/contao/core-bundle/src/Framework/ContaoFramework.php:377

Stack trace:
#0 /var/www/virtual/contao4/vendor/contao/core-bundle/src/Framework/ContaoFramework.php(299): Contao\\CoreBundle\\Framework\\ContaoFramework->validateInstallation()
#1 /var/www/virtual/contao4/vendor/contao/core-bundle/src/Framework/ContaoFramework.php(147): Contao\\CoreBundle\\Framework\\ContaoFramework->initializeFramework()
#2 /var/www/virtual/contao4/vendor/contao/installation-bundle/src/HttpKernel/InstallationKernel.php(81): Contao\\CoreBundle\\Framework\\ContaoFramework->initialize()
#3 /var/www/virtual/contao4/vendor/contao/installation-bundle/src/HttpKernel/InstallationKernel.php(39): Contao\\InstallationBundle\\HttpKernel\\InstallationKernel->bo in /var/www/virtual/contao4/vendor/contao/core-bundle/src/Framework/ContaoFramework.php on line 377
leofeyer commented 9 years ago

I have just tried it with a fresh install and it worked like a charm.

composer create-project contao/standard-edition <target> dev-release/4.1.0

I have completed the Composer setup and then opened the install tool. It asked me to accept the license and to set a password and then completed the installation as usual.

xchs commented 9 years ago

Okay, thanks a lot. Setting up a new fresh install with

composer create-project contao/standard-edition . dev-release/4.1.0

did the trick. The installation went through without any problems now.

Yesterday, I did it as follows:

  1. composer create-project contao/standard-edition . 4.1.0-RC1
  2. Added the new requirement "contao/core-bundle": "dev-release/4.1.0 as 4.1.x-dev" to the composer.json
  3. Executed the composer update command

Apparently, that was not the same. :confused: