Comments (10)
So then just switch to PHP 5.5.
from standard-edition.
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.
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.
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.
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.
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.
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.
I'm going to stop discussing this now. It is pointless.
from standard-edition.
? 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.
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)
- Change /web to /public_html HOT 1
- Wartungsmodus nicht möglich HOT 6
- Unable to login when behind a SSL Proxy HOT 7
- Add basic security HOT 20
- Do not ship a default .htaccess file HOT 14
- Fehler beim Aufruf der Install.php - 4.3.6 HOT 4
- Manger Bundle in composer.json HOT 7
- Speichern und zurück funktioniert nicht mehr HOT 3
- swiftmailer requirement HOT 10
- Breaking change in Symfony Filesystem HOT 2
- Safari kann die Seite nicht öffnen, da die Netzwerkverbindung unterbrochen wurde HOT 7
- Fehler nach Installation unter XAMPP HOT 3
- Attempted to load class \"Config\" from the global namespace. HOT 25
- Unification of contao parameters HOT 1
- Alias Generierung HOT 1
- pages can not be selected in the pagebrowser. Radio buttons are missing. HOT 1
- cacheWarmup for "setup-scripts" HOT 5
- Maintenance "Recreate the symlinks" fails HOT 1
- Unattended Install HOT 8
- cacheWarmup differences between managed-edition? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from standard-edition.