Giter Site home page Giter Site logo

Comments (10)

leofeyer avatar leofeyer commented on May 29, 2024

So then just switch to PHP 5.5.

from standard-edition.

fritzmg avatar fritzmg commented on May 29, 2024

The official documentation lists PHP 5.4 as the minimum requirement for Contao 4, not PHP 5.5. That's why I reported it.

from standard-edition.

fritzmg avatar fritzmg commented on May 29, 2024

Even if you install Contao by using PHP >=5.5 via composer create-project contao/standard-edition <target> - and then deploy the Contao installation onto another server, which happens to have only PHP 5.4, which is the defined minimum requirement to run Contao 4, you might run into problems, since the installed versions of these bundles are not guaranteed to run under PHP 5.4. You'll need to run a composer update on the new server again, to downgrade.

The composer.lock file of contao/standard-edition should be created under the minimum requirement environment, i.e. PHP 5.4.0 in this case, so that no packages with higher requirements will be present in the lock file.

from standard-edition.

leofeyer avatar leofeyer commented on May 29, 2024

PHP 5.4, which is the defined minimum requirement to run Contao 4

The minimum PHP version for Contao 4 is 5.5 (see composer.json).

from standard-edition.

fritzmg avatar fritzmg commented on May 29, 2024

The minimum PHP version for Contao 4 is 5.5 (see composer.json).

The minimum PHP version for contao/core-bundle 4.1.2 is 5.4 » composer.json
Likewise, the minimum PHP version for contao/standard-edition 4.1.2 is 5.4 » composer.json
Also the composer.lock file of contao/standard-edition has PHP 5.4 defined as the minimum requirement for all contao bundles and components - with exception to the aforementioned packages, that lead to the error described in this issue.

Even when you specifically request contao/standard-edition 4.1.2, which has PHP 5.4 as its minimum requirement, it will lead to the error described in this issue:

composer create-project contao/standard-edition . 4.1.2
Installing contao/standard-edition (4.1.2)
  - Installing contao/standard-edition (4.1.2)
    Loading from cache

Created project in .
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for doctrine/cache v1.6.0 -> satisfiable by doctrine/cache[v1.6.0].
    - doctrine/cache v1.6.0 requires php ~5.5|~7.0 -> your PHP version (5.4.45) does not satisfy that requirement.
  Problem 2
    - Installation request for doctrine/common v2.6.1 -> satisfiable by doctrine/common[v2.6.1].
    - doctrine/common v2.6.1 requires php ~5.5|~7.0 -> your PHP version (5.4.45) does not satisfy that requirement.
  Problem 3
    - Installation request for league/uri 4.1.0 -> satisfiable by league/uri[4.1.0].
    - league/uri 4.1.0 requires php >=5.5.9 -> your PHP version (5.4.45) does not satisfy that requirement.
  Problem 4
    - doctrine/cache v1.6.0 requires php ~5.5|~7.0 -> your PHP version (5.4.45) does not satisfy that requirement.
    - doctrine/doctrine-cache-bundle 1.3.0 requires doctrine/cache ^1.4.2 -> satisfiable by doctrine/cache[v1.6.0].
    - Installation request for doctrine/doctrine-cache-bundle 1.3.0 -> satisfiable by doctrine/doctrine-cache-bundle[1.3.0].

from standard-edition.

leofeyer avatar leofeyer commented on May 29, 2024

No, it is PHP 5.5 and it always has been. We just have not update the composer.json file.

Contao 4 uses third-party libraries which require PHP 5.5, therefore the implicit minimum version was PHP 5.5 all the time. Changing the composer.json file only makes it an explicit requirement.

from standard-edition.

fritzmg avatar fritzmg commented on May 29, 2024

No, it is PHP 5.5 and it always has been.

That's not true, Contao 4.0.x for example has neither an explicit nor an implicit requirement for PHP 5.5. Thus

composer create-project contao/standard-edition <target> ~4.0.0

(and Contao itself) runs fine under PHP 5.4. The PHP 5.5 requirement started with Contao 4.1.0-beta1 as far as I can see.

I'll make a pull request for the documentation, if needed.

from standard-edition.

leofeyer avatar leofeyer commented on May 29, 2024

I'm going to stop discussing this now. It is pointless.

from standard-edition.

fritzmg avatar fritzmg commented on May 29, 2024

? I don't understand, why is it pointless? Officially, Contao 4 still lists PHP 5.4 as its minimum requirement (I am not talking about the implicit requirement through the package management). Some users might run into this issue, if they, for some reason want to or need to run or install Contao ~4.1 under PHP 5.4.

Thus it would have been important to find out why it is not possible to install Contao 4(.1) under PHP 5.4 - and since the requirement indeed has been increased with Contao 4.1 to PHP 5.5, it would be important to reflect that change in the official documentation. Do you not agree with that 😕 ?

from standard-edition.

aschempp avatar aschempp commented on May 29, 2024

We sure should update docs, but there's nothing we can change on Contao code side, also because PHP 5.4 is end of life and should not be used anyway.

from standard-edition.

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.