Closed fritzmg closed 7 years ago
This is probably not necessary anymore with Contao 4.4.0: https://github.com/contao/core-bundle/issues/736#issuecomment-306182210
With Contao 4.4.0 that error might only occur in the front end or back end when the extension is initially installed and the database has not been updated yet. However, in such a case the website is likely in a maintenance mode anyway.
Reproduction
composer require terminal42/notification_center
.At the bottom you will see
Cause
In Contao
4.1.0
anonKernelTerminate
event was introduced which executes the command scheduler: https://github.com/contao/core-bundle/pull/380This in turn means, that any
TL_CRON
hook is executed also in the install tool. Thus, if the hook tries to access database fields that are not existent yet, a fatal error will occur. As discussed here any such hook needs to check if the database fields and tables exist.