explode(): Passing null to parameter #2 ($string) of type string is deprecated (PHP 8.1)

  • Affected Version
    WoltLab Suite 5.5
    Affected App
    WoltLab Suite Forum

    Dieser Fehler tritt nur mit PHP 8.1 .11 auf - mit PHP 8.0.24 gibt es keinen Fehler

    Requested URL
    POST /cms/user-search/
    Referrer
    https://fat-bob-forum.de/cms/user-search/
    Error Message
    explode(): Passing null to parameter #2 ($string) 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)
    Stacktrace
    1. [internal function] (?): wcf\system\WCF::handleError(…)
    2. /is/htdocs/wp1191068_NEGDCYO16V/www/suite/cms/lib/system/option/MultiSelectOptionType.class.php (58): explode(…)
    3. /is/htdocs/wp1191068_NEGDCYO16V/www/suite/cms/lib/system/option/user/UserOptionHandler.class.php (248): wcf\system\option\MultiSelectOptionType->getSearchFormElement(…)
    4. /is/htdocs/wp1191068_NEGDCYO16V/www/suite/cms/lib/system/option/OptionHandler.class.php (359): wcf\system\option\user\UserOptionHandler->getFormElement(…)
    5. /is/htdocs/wp1191068_NEGDCYO16V/www/suite/cms/lib/system/option/user/UserOptionHandler.class.php (205): wcf\system\option\OptionHandler->getOption(…)
    6. /is/htdocs/wp1191068_NEGDCYO16V/www/suite/cms/lib/system/option/OptionHandler.class.php (254): wcf\system\option\user\UserOptionHandler->getOption(…)
    7. /is/htdocs/wp1191068_NEGDCYO16V/www/suite/cms/lib/system/option/OptionHandler.class.php (242): wcf\system\option\OptionHandler->getCategoryOptions(…)
    8. /is/htdocs/wp1191068_NEGDCYO16V/www/suite/cms/lib/form/UserSearchForm.class.php (215): wcf\system\option\OptionHandler->getCategoryOptions(…)
    9. /is/htdocs/wp1191068_NEGDCYO16V/www/suite/cms/lib/form/UserSearchForm.class.php (182): wcf\form\UserSearchForm->buildDynamicConditions(…)
    10. /is/htdocs/wp1191068_NEGDCYO16V/www/suite/cms/lib/form/UserSearchForm.class.php (161): wcf\form\UserSearchForm->search(…)
    11. /is/htdocs/wp1191068_NEGDCYO16V/www/suite/cms/lib/form/AbstractForm.class.php (70): wcf\form\UserSearchForm->validate(…)
    12. /is/htdocs/wp1191068_NEGDCYO16V/www/suite/cms/lib/form/AbstractForm.class.php (152): wcf\form\AbstractForm->submit(…)
    13. /is/htdocs/wp1191068_NEGDCYO16V/www/suite/cms/lib/acp/form/AbstractOptionListForm.class.php (111): wcf\form\AbstractForm->readData(…)
    14. /is/htdocs/wp1191068_NEGDCYO16V/www/suite/cms/lib/form/UserSearchForm.class.php (96): wcf\acp\form\AbstractOptionListForm->readData(…)
    15. /is/htdocs/wp1191068_NEGDCYO16V/www/suite/cms/lib/page/AbstractPage.class.php (353): wcf\form\UserSearchForm->readData(…)
    16. /is/htdocs/wp1191068_NEGDCYO16V/www/suite/cms/lib/page/AbstractPage.class.php (135): wcf\page\AbstractPage->show(…)
    17. /is/htdocs/wp1191068_NEGDCYO16V/www/suite/cms/lib/system/request/Request.class.php (90): wcf\page\AbstractPage->__run(…)
    18. /is/htdocs/wp1191068_NEGDCYO16V/www/suite/cms/lib/system/request/RequestHandler.class.php (107): wcf\system\request\Request->execute(…)
    19. /is/htdocs/wp1191068_NEGDCYO16V/www/suite/cms/index.php (11): wcf\system\request\RequestHandler->handle(…)
    • Official Post

    Ich bitte um Verzeihung: Ich meinte nicht den Typ (das lese ich selbst heraus), sondern um welches Feld es sich konkret handelt. Selbst angelegtes oder ein bereits bestehendes? Stammt es noch von früheren Versionen oder relativ neu dazugekommen?


    Hintergrund ist, dass das Feld fehlerhaft ist und offenbar keine auswählbaren Werte aufweist. Ich versuche an dieser Stelle zu ergründen, wie dieser Zustand überhaupt entstehen konnte.

  • Alexander Ebert

    Set the Label from Feedback required to Fixed
  • Quitter

    Changed the title of the thread from “Fehler bei Suche mit PHP 8.1” to “explode(): Passing null to parameter #2 ($string) of type string is deprecated (PHP 8.1)”.

Participate now!

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