GithubHelp home page GithubHelp logo

Comments (8)

fritzmg avatar fritzmg commented on August 24, 2024

This is because InstallationKernel::boot executes InstallationKernel::bootRealSystem once a localconfig.php is present and this in turn initializes the Contao framework:

$container->get('contao.framework')->initialize();

which in turn calls ContaoFramework::validateInstallation at some point, which throws this error.

from installation-bundle.

leofeyer avatar leofeyer commented on August 24, 2024

What do you mean by "incomplete localconfig.php"?

from installation-bundle.

fritzmg avatar fritzmg commented on August 24, 2024

What do you mean by "incomplete localconfig.php"?

e.g. with either of these contents:

<?php
<?php

### INSTALL SCRIPT START ###
$GLOBALS['TL_CONFIG']['licenseAccepted'] = false;
### INSTALL SCRIPT STOP ###
<?php

### INSTALL SCRIPT START ###
$GLOBALS['TL_CONFIG']['licenseAccepted'] = false;
$GLOBALS['TL_CONFIG']['installPassword'] = '…';
### INSTALL SCRIPT STOP ###
<?php

### INSTALL SCRIPT START ###
$GLOBALS['TL_CONFIG']['installPassword'] = '…';
### INSTALL SCRIPT STOP ###

from installation-bundle.

leofeyer avatar leofeyer commented on August 24, 2024

True, because that is actually how we check if the installation is complete:

https://github.com/contao/core-bundle/blob/master/src/Resources/contao/library/Contao/Config.php#L316

from installation-bundle.

fritzmg avatar fritzmg commented on August 24, 2024

Yep I know. This is probably a benign issue, since there is not a valid reason to have a localconfig.php present with any of the content described above.

However, conceivably some user might think it's ok to delete the content of the localconfig.php, if he wants to reset his install tool password for instance, instead of just removing the respective entry - then it might be confusing to him what to do.

from installation-bundle.

leofeyer avatar leofeyer commented on August 24, 2024

some user might think it's ok to delete the content of the localconfig.php, if he wants to reset his install tool password for instance

They might think so, but they are still wrong. If you remove the entire local configuration, your installation is in fact no longer complete. Therefore it is correct to throw the exception in this case.

from installation-bundle.

fritzmg avatar fritzmg commented on August 24, 2024

Yes, but the exception tells you to open the install tool, which is where the exception occurs.

from installation-bundle.

leofeyer avatar leofeyer commented on August 24, 2024

Fixed in contao/core-bundle@6bb407c.

from installation-bundle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.