UpcomingEventsContentDashboardBox nicht PHP 7.2 kompatibel

  • Betroffene App
    WoltLab Suite Calendar

    Moin,

    nach dem letzten Patchday habe ich noch mal einen Versuch gestartet mein WCF inkl. aller Applikationen auf PHP 7.2.x umzustellen. Bei Routinekontrollen habe ich dann heute morgen entdeckt, dass im ACP Error Log diverse Einträge für die Calendar 2.1.9, konkret die Dashboard-Box zur Anzeige der kommenden Termine, anstehen.

    Konkret lautet die Fehlermeldung: PHP warning in file /var/www/vhosts/phoenix-union.de/httpdocs/calendar/lib/system/dashboard/box/UpcomingEventsContentDashboardBox.class.php (57): count(): Parameter must be an array or an object that implements Countable

    Im Spoiler habe ich ein paar Log-Beispiele bereitgestellt, was mir konkret aufgefallen ist, es sind immer "Gäste", bzw. konkreter Bots, also nicht angemeldete Benutzer. Tja, dann werde ich also mal wieder (ist jetzt bei mir der dritte oder vierte Versuch ein WCF 2.1 auf PHP 7.2.x lauffähig zu kriegen) auf PHP 7.1.x zurückgehen. Ich hoffe das mit der Dashboard-Box wird auch bald gefixt...

    Barungar

    P.S.: Ich habe es gerade von einem anderen PC, mit einen "frischen" Chrome-Browser versucht; ohne mich anzumelden habe ich das Dashboard aufgerufen, und ich erhalte sofort auch einen Fatal Error des WCF... im Log sieht der wie bei den Bots aus...

    Spoiler anzeigen

    Fri, 16 Mar 2018 06:24:05 +0000

    Message: PHP warning in file /var/www/vhosts/phoenix-union.de/httpdocs/calendar/lib/system/dashboard/box/UpcomingEventsContentDashboardBox.class.php (57): count(): Parameter must be an array or an object that implements Countable

    File: /var/www/vhosts/phoenix-union.de/httpdocs/wcf/lib/system/WCF.class.php (309)

    PHP version: 7.2.3

    WCF version: 2.1.20 (Typhoon)

    Request URI: /dashboard/

    Referrer:

    User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36

    Information: ""

    Stacktrace:

    #0 [internal function]: wcf\system\WCF::handleError(2, 'count(): Parame...', '/var/www/vhosts...', 57, Array)

    #1 /var/www/vhosts/phoenix-union.de/httpdocs/calendar/lib/system/dashboard/box/UpcomingEventsContentDashboardBox.class.php(57): count(NULL)

    #2 /var/www/vhosts/phoenix-union.de/httpdocs/wcf/lib/system/dashboard/box/AbstractContentDashboardBox.class.php(52): calendar\system\dashboard\box\UpcomingEventsContentDashboardBox->render()

    #3 /var/www/vhosts/phoenix-union.de/httpdocs/wcf/lib/system/dashboard/DashboardHandler.class.php(74): wcf\system\dashboard\box\AbstractContentDashboardBox->getTemplate()

    #4 /var/www/vhosts/phoenix-union.de/httpdocs/wcf/lib/page/DashboardPage.class.php(52): wcf\system\dashboard\DashboardHandler->loadBoxes('com.woltlab.wcf...', Object(wcf\page\DashboardPage))

    #5 /var/www/vhosts/phoenix-union.de/httpdocs/wcf/lib/page/AbstractPage.class.php(276): wcf\page\DashboardPage->assignVariables()

    #6 /var/www/vhosts/phoenix-union.de/httpdocs/wcf/lib/page/AbstractPage.class.php(100): wcf\page\AbstractPage->show()

    #7 /var/www/vhosts/phoenix-union.de/httpdocs/wcf/lib/system/request/Request.class.php(58): wcf\page\AbstractPage->__run()

    #8 /var/www/vhosts/phoenix-union.de/httpdocs/wcf/lib/system/request/RequestHandler.class.php(139): wcf\system\request\Request->execute()

    #9 /var/www/vhosts/phoenix-union.de/httpdocs/index.php(10): wcf\system\request\RequestHandler->handle('wbb')

    #10 {main}


    Thu, 15 Mar 2018 14:50:58 +0000

    Message: PHP warning in file /var/www/vhosts/phoenix-union.de/httpdocs/calendar/lib/system/dashboard/box/UpcomingEventsContentDashboardBox.class.php (57): count(): Parameter must be an array or an object that implements Countable

    File: /var/www/vhosts/phoenix-union.de/httpdocs/wcf/lib/system/WCF.class.php (309)

    PHP version: 7.2.3

    WCF version: 2.1.20 (Typhoon)

    Request URI: /dashboard/

    Referrer:

    User-Agent: Mozilla/5.0 (compatible; MegaIndex.ru/2.0; +http://megaindex.com/crawler)

    Information: ""

    Stacktrace:

    #0 [internal function]: wcf\system\WCF::handleError(2, 'count(): Parame...', '/var/www/vhosts...', 57, Array)

    #1 /var/www/vhosts/phoenix-union.de/httpdocs/calendar/lib/system/dashboard/box/UpcomingEventsContentDashboardBox.class.php(57): count(NULL)

    #2 /var/www/vhosts/phoenix-union.de/httpdocs/wcf/lib/system/dashboard/box/AbstractContentDashboardBox.class.php(52): calendar\system\dashboard\box\UpcomingEventsContentDashboardBox->render()

    #3 /var/www/vhosts/phoenix-union.de/httpdocs/wcf/lib/system/dashboard/DashboardHandler.class.php(74): wcf\system\dashboard\box\AbstractContentDashboardBox->getTemplate()

    #4 /var/www/vhosts/phoenix-union.de/httpdocs/wcf/lib/page/DashboardPage.class.php(52): wcf\system\dashboard\DashboardHandler->loadBoxes('com.woltlab.wcf...', Object(wcf\page\DashboardPage))

    #5 /var/www/vhosts/phoenix-union.de/httpdocs/wcf/lib/page/AbstractPage.class.php(276): wcf\page\DashboardPage->assignVariables()

    #6 /var/www/vhosts/phoenix-union.de/httpdocs/wcf/lib/page/AbstractPage.class.php(100): wcf\page\AbstractPage->show()

    #7 /var/www/vhosts/phoenix-union.de/httpdocs/wcf/lib/system/request/Request.class.php(58): wcf\page\AbstractPage->__run()

    #8 /var/www/vhosts/phoenix-union.de/httpdocs/wcf/lib/system/request/RequestHandler.class.php(139): wcf\system\request\Request->execute()

    #9 /var/www/vhosts/phoenix-union.de/httpdocs/index.php(10): wcf\system\request\RequestHandler->handle('wbb')

    #10 {main}


    Thu, 15 Mar 2018 19:56:45 +0000

    Message: PHP warning in file /var/www/vhosts/phoenix-union.de/httpdocs/calendar/lib/system/dashboard/box/UpcomingEventsContentDashboardBox.class.php (57): count(): Parameter must be an array or an object that implements Countable

    File: /var/www/vhosts/phoenix-union.de/httpdocs/wcf/lib/system/WCF.class.php (309)

    PHP version: 7.2.3

    WCF version: 2.1.20 (Typhoon)

    Request URI: /dashboard/?

    Referrer:

    User-Agent: archive_net_bot

    Information: ""

    Stacktrace:

    #0 [internal function]: wcf\system\WCF::handleError(2, 'count(): Parame...', '/var/www/vhosts...', 57, Array)

    #1 /var/www/vhosts/phoenix-union.de/httpdocs/calendar/lib/system/dashboard/box/UpcomingEventsContentDashboardBox.class.php(57): count(NULL)

    #2 /var/www/vhosts/phoenix-union.de/httpdocs/wcf/lib/system/dashboard/box/AbstractContentDashboardBox.class.php(52): calendar\system\dashboard\box\UpcomingEventsContentDashboardBox->render()

    #3 /var/www/vhosts/phoenix-union.de/httpdocs/wcf/lib/system/dashboard/DashboardHandler.class.php(74): wcf\system\dashboard\box\AbstractContentDashboardBox->getTemplate()

    #4 /var/www/vhosts/phoenix-union.de/httpdocs/wcf/lib/page/DashboardPage.class.php(52): wcf\system\dashboard\DashboardHandler->loadBoxes('com.woltlab.wcf...', Object(wcf\page\DashboardPage))

    #5 /var/www/vhosts/phoenix-union.de/httpdocs/wcf/lib/page/AbstractPage.class.php(276): wcf\page\DashboardPage->assignVariables()

    #6 /var/www/vhosts/phoenix-union.de/httpdocs/wcf/lib/page/AbstractPage.class.php(100): wcf\page\AbstractPage->show()

    #7 /var/www/vhosts/phoenix-union.de/httpdocs/wcf/lib/system/request/Request.class.php(58): wcf\page\AbstractPage->__run()

    #8 /var/www/vhosts/phoenix-union.de/httpdocs/wcf/lib/system/request/RequestHandler.class.php(139): wcf\system\request\Request->execute()

    #9 /var/www/vhosts/phoenix-union.de/httpdocs/index.php(10): wcf\system\request\RequestHandler->handle('wbb')

    #10 {main}


    2 Mal editiert, zuletzt von Barungar (16. März 2018 um 07:50) aus folgendem Grund: argh, es ist natürlich der Calendar und nicht die Gallery... ist noch zu früh. ;)

  • php 7.2.1 - kann den Fehler bestätigen.

  • Gibt es hier schon Erkenntnisse, die zu einem Label führen könnten?! z.B. Bestätigt oder noch lieber behoben 2.1.10 ... ? ;)

    Das ist sozusagen das letzte Stöckchen zwischen einem sauberen PHP 7.2.x-Betrieb und meiner WoltLab-Installation.

    Einmal editiert, zuletzt von Barungar (23. März 2018 um 19:38)

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!