mb_strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated

  • Affected Version
    WoltLab Suite 5.5
    Affected App
    WoltLab Suite Forum
    Requested URL
    POST /index.php?ajax-proxy/&t=044e8396ae0cec0303634ab18c671361571f542aaea318ed76db60c097255fda-rcNrruAXk5t3xYTV7x5Kag==
    Referrer
    https://forum.de/board/78-treffen/
    Error Message
    mb_strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated
    Type
    wcf\system\exception\ErrorException
    File (Line)
    /is/htdocs/wp1191068_NEGDCYO16V/www/suite/cms/lib/system/WCF.class.php (341)
    Template Context
    } ?> </ul> <?php } ?> ====> <div class="containerContent"><?=$this->v['post']->getExcerpt();?></div> </div> </div>
    Stacktrace
    1. [internal function] (?): wcf\system\WCF::handleError(…)
    2. /is/htdocs/wp1191068_NEGDCYO16V/www/suite/cms/lib/system/html/node/AbstractHtmlNodeProcessor.class.php (124): mb_strpos(…)
    3. [internal function] (?): wcf\system\html\node\AbstractHtmlNodeProcessor::wcf\system\html\node\{closure}(…)
    4. /is/htdocs/wp1191068_NEGDCYO16V/www/suite/cms/lib/system/html/node/AbstractHtmlNodeProcessor.class.php (139): preg_replace_callback(…)
    5. /is/htdocs/wp1191068_NEGDCYO16V/www/suite/cms/lib/system/html/output/node/HtmlOutputNodeProcessor.class.php (196): wcf\system\html\node\AbstractHtmlNodeProcessor->getHtml(…)
    6. /is/htdocs/wp1191068_NEGDCYO16V/www/suite/cms/lib/system/html/output/HtmlOutputProcessor.class.php (111): wcf\system\html\output\node\HtmlOutputNodeProcessor->getHtml(…)
    7. /is/htdocs/wp1191068_NEGDCYO16V/www/suite/lib/data/post/Post.class.php (128): wcf\system\html\output\HtmlOutputProcessor->getHtml(…)
    8. /is/htdocs/wp1191068_NEGDCYO16V/www/suite/lib/data/post/Post.class.php (190): wbb\data\post\Post->getSimplifiedFormattedMessage(…)
    9. /is/htdocs/wp1191068_NEGDCYO16V/www/suite/cms/lib/data/DatabaseObjectDecorator.class.php (96): wbb\data\post\Post->getExcerpt(…)
    10. /is/htdocs/wp1191068_NEGDCYO16V/www/suite/cms/templates/compiled/5_wbb_1_postPreview.php (43): wcf\data\DatabaseObjectDecorator->__call(…)
    11. /is/htdocs/wp1191068_NEGDCYO16V/www/suite/cms/lib/system/template/TemplateEngine.class.php (350): include(…)
    12. /is/htdocs/wp1191068_NEGDCYO16V/www/suite/cms/lib/system/template/TemplateEngine.class.php (594): wcf\system\template\TemplateEngine->display(…)
    13. /is/htdocs/wp1191068_NEGDCYO16V/www/suite/lib/data/thread/ThreadAction.class.php (831): wcf\system\template\TemplateEngine->fetch(…)
    14. /is/htdocs/wp1191068_NEGDCYO16V/www/suite/cms/lib/data/AbstractDatabaseObjectAction.class.php (216): wbb\data\thread\ThreadAction->getPopover(…)
    15. /is/htdocs/wp1191068_NEGDCYO16V/www/suite/cms/lib/action/AJAXProxyAction.class.php (92): wcf\data\AbstractDatabaseObjectAction->executeAction(…)
    16. /is/htdocs/wp1191068_NEGDCYO16V/www/suite/cms/lib/action/AJAXInvokeAction.class.php (111): wcf\action\AJAXProxyAction->invoke(…)
    17. /is/htdocs/wp1191068_NEGDCYO16V/www/suite/cms/lib/action/AbstractAction.class.php (57): wcf\action\AJAXInvokeAction->execute(…)
    18. /is/htdocs/wp1191068_NEGDCYO16V/www/suite/cms/lib/action/AJAXInvokeAction.class.php (65): wcf\action\AbstractAction->__run(…)
    19. /is/htdocs/wp1191068_NEGDCYO16V/www/suite/cms/lib/system/request/Request.class.php (90): wcf\action\AJAXInvokeAction->__run(…)
    20. /is/htdocs/wp1191068_NEGDCYO16V/www/suite/cms/lib/system/request/RequestHandler.class.php (107): wcf\system\request\Request->execute(…)
    21. /is/htdocs/wp1191068_NEGDCYO16V/www/suite/index.php (11): wcf\system\request\RequestHandler->handle(…)


    Der Fehler tritt in Zusammenhang mit dem Plugin:

    bei der Mouseover-Vorschau des Themas/Beitrags, in dem ein Countdown aktiv ist auf.
    Allerdings nur unter PHP 8.1. (PHP 8.0 kein Fehler)

  • Dann pass das doch bitte mal in der Beschreibung an.






    Gruß norse

    Zugang zu meinen Arbeiten und dem dazugehörigen Support bekommt Ihr bei Interesse hier.

    • Official Post

    Hallo,


    der Fehler liegt hier im Plugin, nicht in unserer Software. Das Plugin liefert für bestimmte Ausgabearten keine Ausgabe, statt einer leeren Ausgabe und das ist nicht erlaubt.


    Für WoltLab Suite 6.0 gibt es diesen PR, der passende Datentypen ergänzt und auf diese Weise die Fehlermeldung verbessert und die Fehlerdiagnose erleichtert:


Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!