contao/core-bundle 4.4.9 introduced the Model::isPreviewMode function, which is also used in contao/news-bundle (and the other bundles) starting with 4.4.9.
However, the composer.json was never changed to reflect that new dependency, it still only says:
"contao/core-bundle": "^4.4.2"
So if the core-bundle cannot be updated to 4.4.9+ but the news-bundle for example can be updated to 4.4.9+, you will get the error
… isPreviewMode does not exist
These circumstances can happen, if your PHP version is >=7.0.0,<7.0.8
. The contao/core-bundle has a dependency on
"symfony/console": "^3.3.7"
since version 4.4.8. Thus contao/core-bundle cannot be updated to 4.4.8+ under PHP >=7.0.0,<7.0.8
, because symfony/console 3.3.7+ requires at least PHP 7.0.8. The contao/news-bundle can be updated to 4.4.12 without any problems under PHP >=7.0.0,<7.0.8
.
defect