Hallo,
ich erhalte folgenden Fehler wenn ich auf PHP7.2 schalte:
QuoteDisplay MoreMessage: PHP warning in file /Pfad/zum/Forum/wcf/templates/compiled/3_wcf_1_dashboard.php (1662): count(): Parameter must be an array or an object that implements Countable
File: /Pfad/zum/Forum/wcf/lib/system/WCF.class.php (309)
PHP version: 7.2.24-1+0~20191026.31+debian10~1.gbpbbacde
WCF version: 2.1.24 pl 2 (Typhoon)
Request URI: /
Referrer:
Information: ""
Stacktrace:
#0 /Pfad/zum/Forum/wcf/templates/compiled/3_wcf_1_dashboard.php(1662): wcf\system\WCF::handleError(2, 'count(): Parame...', '/Pfad/zum/...', 1662, Array)
#1 /Pfad/zum/Forum/wcf/lib/system/template/TemplateEngine.class.php(323): include('/Pfad/zum/...')
#2 /Pfad/zum/Forum/wcf/lib/page/AbstractPage.class.php(305): wcf\system\template\TemplateEngine->display('dashboard', 'wcf')
#3 /Pfad/zum/Forum/wcf/lib/page/AbstractPage.class.php(100): wcf\page\AbstractPage->show()
#4 /Pfad/zum/Forum/wcf/lib/system/request/Request.class.php(58): wcf\page\AbstractPage->__run()
#5 /Pfad/zum/Forum/wcf/lib/system/request/RequestHandler.class.php(139): wcf\system\request\Request->execute()
#6 /Pfad/zum/Forum/app/index.php(3): wcf\system\request\RequestHandler->handle('app')
#7 {main}
an der genannten Stelle steht Folgendes:
Quote<?php if (count('subMenuItems') > 0) { ?>
<ul class="extendedDropdownMenu dropdowMenuMainMenu invisible">
<?php echo $this->v['hascontent_####################']; ?>
</ul>
<?php } ?>
Könntest du bitte einen Fix dafür bereitstellen da das WCF 2.1 offiziell noch bis PHP7.2 kompatibel ist?
PHP 7.2.24-1
VG,
Afox