News System php 7.2

  • Bei RSS Feed hinzufügen (news 3.1) unter php 7.2 folgender Fehler:



    System Information

    • PHP Version:

      7.2.2

    • WoltLab Suite Core:

      3.1.0 RC 4

    • Peak Memory Usage:

      7.538/256 MiB

    • Request URI:

      /news/acp/index.php?rss-feed-add/

    • Referrer:

      https://... /news/acp/index.php?rss-feed-list/

    • User Agent:

      Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.111 Safari/537.36 EdgA/41.0.0.1656

    Error

    • Error Type:

      wcf\system\exception\ErrorException

    • Error Message:

      count(): Parameter must be an array or an object that implements Countable

    • File:

      */lib/system/WCF.class.php (324)

    • Stack Trace:
      • #0 */acp/templates/compiled/0_news_1_rssFeedAdd.php (968):
      • wcf\system\WCF::handleError(2, 'count(): Parameter must be an array or an object that implements Countable', '*/acp/templates/compiled/0_news_1_rssFeedAdd.php', 968, [ 26 items ])
      • #1 */lib/system/template/TemplateEngine.class.php (321):
      • include('*/acp/templates/compiled/0_news_1_rssFeedAdd.php')
      • #2 */lib/page/AbstractPage.class.php (323):
      • wcf\system\template\TemplateEngine->display('rssFeedAdd', 'news')
      • #3 */lib/page/AbstractPage.class.php (114):
      • wcf\page\AbstractPage->show()
      • #4 */lib/system/request/Request.class.php (83):
      • wcf\page\AbstractPage->__run()
      • #5 */lib/system/request/RequestHandler.class.php (96):
      • wcf\system\request\Request->execute()
      • #6 */../news/acp/index.php (9):
      • wcf\system\request\RequestHandler->handle('news', true)
  • Votes: 2

    Aktueller Stand

    Zusammenfassung
    Medium
    Fehler mit PHP7.2
    Art
    Bug
    Aktueller Status
    Fertig
    Betroffene Versionen
    • 3.1.0
    Komponenten
    • WSC3.1
    Umsetzung
    • 3.1.0 pl 2
    Letzte Änderung
    3. April 2018
    Zuständiger Entwickler
    Thema

  • Thu, 12 Apr 2018 12:44:50 +0000

    Message: count(): Parameter must be an array or an object that implements Countable

    PHP version: 7.2.4

    WoltLab Suite version: 3.1.1

    Request URI: /news/acp/index.php?rss-feed-add/

    Referrer: https://www.ccc.de/news/acp/index.php?rss-feed-list/

    User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.146 Safari/537.36

    Peak Memory Usage: 7939048/268435456

    ======

    Error Class: wcf\system\exception\ErrorException

    Error Message: count(): Parameter must be an array or an object that implements Countable

    Error Code: 0

    File: /var/www/vhosts/ccc.de/httpdocs/wcf/lib/system/WCF.class.php (324)

    Extra Information: -

    Stack Trace: [{"file":"\/var\/www\/vhosts\/ccc.de\/httpdocs\/wcf\/acp\/templates\/compiled\/0_news_1_rssFeedAdd.php","line":1023,"function":"handleError","class":"wcf\\system\\WCF","type":"::","args":[2,"count(): Parameter must be an array or an object that implements Countable","\/var\/www\/vhosts\/ccc.de\/httpdocs\/wcf\/acp\/templates\/compiled\/0_news_1_rssFeedAdd.php",1023,{"templateName":"[redacted]","application":"[redacted]","sendHeaders":"[redacted]","sourceFilename":"[redacted]","compiledFilename":"[redacted]","metaDataFilename":"[redacted]","metaData":"[redacted]","__langCompilerTemplatePluginOutput":"[redacted]","_foreach_ce5912aeef43bdd0c4085ee62221dcc9adcb33c2":"[redacted]","_foreach_ce5912aeef43bdd0c4085ee62221dcc9adcb33c2_cnt":"[redacted]","_foreach_4ce3ead0049ef83eb7f17889f663bdabeabd2f1d":"[redacted]","_foreach_4ce3ead0049ef83eb7f17889f663bdabeabd2f1d_cnt":"[redacted]","_foreach_a404a94c9b8794a5b83f9ab396332e0bc1897d89":"[redacted]","_foreach_a404a94c9b8794a5b83f9ab396332e0bc1897d89_cnt":"[redacted]","_foreach_b03a3b9aa97bb57305cc30e2945d1eaa9e98dc78":"[redacted]","_foreach_b03a3b9aa97bb57305cc30e2945d1eaa9e98dc78_cnt":"[redacted]","_foreach_7eba64ac72cf99eb4237f83bd043c931fe7a0210":"[redacted]","_foreach_7eba64ac72cf99eb4237f83bd043c931fe7a0210_cnt":"[redacted]","_foreach_62b259b833f1bb383ecc6a6a5332ed2c56ede989":"[redacted]","_foreach_62b259b833f1bb383ecc6a6a5332ed2c56ede989_cnt":"[redacted]","_foreach_bedd5435755df5bfc306adecdc4698437567f304":"[redacted]","_foreach_bedd5435755df5bfc306adecdc4698437567f304_cnt":"[redacted]","_foreach_66423be7cac641804f4f91d434d018be5d0df343":"[redacted]","_foreach_66423be7cac641804f4f91d434d018be5d0df343_cnt":"[redacted]","_foreach_2326ebf0e9dcb30f8ba22a7c079943af21072964":"[redacted]","_foreach_2326ebf0e9dcb30f8ba22a7c079943af21072964_cnt":"[redacted]"}]},{"file":"\/var\/www\/vhosts\/ccc.de\/httpdocs\/wcf\/lib\/system\/template\/TemplateEngine.class.php","line":321,"args":["\/var\/www\/vhosts\/ccc.de\/httpdocs\/wcf\/acp\/templates\/compiled\/0_news_1_rssFeedAdd.php"],"function":"include","class":"","type":""},{"file":"\/var\/www\/vhosts\/ccc.de\/httpdocs\/wcf\/lib\/page\/AbstractPage.class.php","line":323,"function":"display","class":"wcf\\system\\template\\TemplateEngine","type":"->","args":["rssFeedAdd","news"]},{"file":"\/var\/www\/vhosts\/ccc.de\/httpdocs\/wcf\/lib\/page\/AbstractPage.class.php","line":114,"function":"show","class":"wcf\\page\\AbstractPage","type":"->","args":[]},{"file":"\/var\/www\/vhosts\/ccc.de\/httpdocs\/wcf\/lib\/system\/request\/Request.class.php","line":83,"function":"__run","class":"wcf\\page\\AbstractPage","type":"->","args":[]},{"file":"\/var\/www\/vhosts\/tab-forum.de\/httpdocs\/wcf\/lib\/system\/request\/RequestHandler.class.php","line":96,"function":"execute","class":"wcf\\system\\request\\Request","type":"->","args":[]},{"file":"\/var\/www\/vhosts\/ccc.de\/httpdocs\/news\/acp\/index.php","line":9,"function":"handle","class":"wcf\\system\\request\\RequestHandler","type":"->","args":["news",true]}]

  • AD1 wird jetzt in der nächsten Version behoben, kannst du aber gerne vorübergehend so beheben :)


    Das ACP Template rssFeedAdd.tpl per File System ändern

    Und zwar die Zeile 45 müsste etwa so aussehen


    Smarty: rssFeedAdd.tpl
    1. {if $categories !== null && $categories|count}

    einfach auf das hier ändern

    Smarty: rssFeedAdd.tpl
    1. {if $categories !== null && $categories|iterator_count > 0}
  • Cyperghost

    Hat das Thema geschlossen
  • Cyperghost

    Hat das Thema geschlossen