cliffparnitzky / DirectContentElements

Contao Extension: Directly lists all content elements of articles.
GNU Lesser General Public License v3.0
5 stars 1 forks source link

error after switching to PHP 7.2 #9

Closed GeccoDesign closed 5 years ago

GeccoDesign commented 5 years ago

Hi, I got an error after switching to PHP 7.2

`Warning: count(): Parameter must be an array or an object that implements Countable in system/modules/DirectContentElements/config/config.php on line 33

0 system/modules/DirectContentElements/config/config.php(33): __error(2, 'count(): Parame...', '/mnt/web218/e3/...', 33, Array)

1 system/modules/core/library/Contao/Config.php(141): include('/mnt/web218/e3/...')

2 system/modules/core/library/Contao/Config.php(108): Contao\Config->initialize()

3 system/initialize.php(162): Contao\Config::getInstance()

4 index.php(16): require('/mnt/web218/e3/...')

5 {main}`

Contao installation 3.5.36, provider Strato. What can I do? Thank you.

cliffparnitzky commented 5 years ago

Yes, that is right, this extension is currently not compatible to PHP 7.2. This has to fixed in the code.

cliffparnitzky commented 5 years ago

After checking the code, I have noticed, that you are using an old version. Please update the extension at least to version 1.2.0.