Comments (4)
Another problem occurs when the InstallationController
generates the bootstrap.php.cache
file here. The cache directory is hardcoded to /var/cache
: ContainerFactory.php#L52 - thus the new bootstrap.php.cache
file will be generated in /var
instead.
And if you try to go to example.org/contao/install
afterwards, you'll see the following error message multiple times:
Warning: file_get_contents(/var/www/contao4test/htdocs/app/bootstrap.php.cache): failed to open stream:
No such file or directory in /var/www/contao4test/htdocs/vendor/symfony/symfony/src/Symfony/Component/ClassLoader/ClassCollectionLoader.php on line 153
Which is weird, because the old bootstrap.php.cache
definitely still exists in that location.
Reproduction (basically the same as above):
- Install Contao 4.2.5 via
composer create-project contao/standard-edition <target> 4.2.5
. - Open
example.org/install.php
. - Update the installation to Contao 4.3.0 via composer update.
- Open
example.org/install.php
.
The aforementioned Warnings will be shown.
Running
composer run-script post-update-cmd
does not fix it. If you delete /app/cache/*
, the following errors will be shown:
Warning: require(/var/www/contao4test/htdocs/app/../../../../../vendor/symfony/symfony/src/Symfony/Component/ClassLoader/ClassCollectionLoader.php): failed to open stream: No such file or directory in /var/www/contao4test/htdocs/app/bootstrap.php.cache on line 4
Fatal error: require(): Failed opening required '/var/www/contao4test/htdocs/app/../../../../../vendor/symfony/symfony/src/Symfony/Component/ClassLoader/ClassCollectionLoader.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/contao4test/htdocs/app/bootstrap.php.cache on line 4
from installation-bundle.
I can confirm this. Tested this on two different linux machines.
from installation-bundle.
We need to use $cacheDir = $kernel->getCacheDir()
and $logsDir = $kernel->getLogsDir()
.
from installation-bundle.
Fixed in 53370d9.
from installation-bundle.
Related Issues (20)
- Check for disabled symlink function HOT 4
- Install tool cache warm up in dev environment HOT 2
- Hook "sqlCompileCommands" not called HOT 3
- Install Tool does not work in dev environment HOT 4
- app/console doctrine:cache:clear contao.cache is not working HOT 17
- The MySQL version check cannot determine the current version HOT 11
- DB update loads schema of none Contao tables HOT 13
- Check all innodb_large_prefix requirements HOT 5
- 4.4.11: Install-Tool: Call to a member function getKernel() on null HOT 23
- install tool fails in dev environment if user table does not exist HOT 4
- Schema diff fails with MariaDB 10.2 HOT 5
- Calling install tool throws error after update to Contao 4.5.1 HOT 2
- exception due to notice in PHP date function HOT 1
- Installation with MariaDB>10.3.1 not possible HOT 10
- Installation without innodb_large_prefix fails HOT 3
- Installation with innodb_file_format = Antelope and innodb_large_prefix = On fails HOT 5
- Installation tool does not correctly encode cols named 'row' HOT 22
- admin is a reserved word in mySQL 8 HOT 4
- Supply alternative for runonce.php HOT 2
- handle mod_article_teaser and mod_article_plain selection HOT 1
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 installation-bundle.