Quantcast
Viewing all articles
Browse latest Browse all 293660

Check prerequirements date.timezone

If php.ini has no default value set for date.timezone (this is so in the most linux distributions) then after the database connection step the installation process dies with the following error message:

Cannot inherit previously-inherited or override constant EXCEPTION_ON_INVALID_REFERENCE from interface Symfony\Component\DependencyInjection\IntrospectableContainerInterface in /.../core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Container.php on line 63

I don't know what is the relation between the empty date.timezone and the origin of error, but if I set a correct value for date.timezone everything works fine.

There are already requirements checks early in the installation process and we should add this one too. This commit added functionality to check the environment:

<?php
// Deny execution with enabled "magic quotes" (both GPC and runtime).
if (get_magic_quotes_gpc() || get_magic_quotes_runtime()) {
 
header($_SERVER['SERVER_PROTOCOL'] . ' 500 Internal Server Error');
  print
"PHP's 'magic_quotes_gpc' and 'magic_quotes_runtime' settings are not supported and must be disabled.";
  exit;
}
?>

Maybe need check the date.timezone too.

If I clear the value of date.timezone after the installation process, then the error message does not come up.


Viewing all articles
Browse latest Browse all 293660

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>