contao / core-bundle

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

Contao 4.4.7 installation error #1189

Closed sietsevandreven closed 6 years ago

sietsevandreven commented 6 years ago

When installing contao 4.4.7, the following error appears in the web/error_log file:

PHP Parse error: syntax error, unexpected 'const' (T_CONST), expecting variable (T_VARIABLE) in /home/usr/contao4/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php on line 72

bytehead commented 6 years ago

You need to enable PHP 7.1: https://wiki.php.net/rfc/class_const_visibility

fritzmg commented 6 years ago

@sietsevandreven you should post this kind of question on the forum. You do not need to enable PHP 7.1, as Contao 4.4.7 is compatible with PHP 5.6. You probably made a mistake during the installation or during a composer update. However, it is advisable to use PHP 7.1 regardless.

leofeyer commented 6 years ago

@sietsevandreven Turned out that this was a problem with the managed edition and not a mistake of yours. https://github.com/contao/managed-edition/issues/25