PHP 8.1 Fehler beim Speichern von Konfiguration

  • Affected Version
    WoltLab Suite 5.4
    Affected App
    WoltLab Suite Core

    Hallo,


    mir ist bewusst, dass PHP 8.1 (noch) nicht offiziell unterstützt wird, aber prinzipiell lauffähig sein soll. Leider wurde bei meinem Testsystem automatisch auf 8.1 aktualisiert und ich kann nur mit deutlichen Mehraufwand wieder downgraden. Also dachte ich mir: kein Problem, testen wir mal wie gut die Suite mit PHP 8.1 läuft.


    Nun lief soweit auch erstmal alles, als ich dann aber im ACP unter Konfiguration -> Allgemein auf den Button "Absenden" geklickt habe, habe ich folgende Fehlermeldung erhalten:

    Requested URL
    POST /acp/index.php?option/8/
    Referrer
    https://*****/acp/index.php?option/8/
    Error Message
    preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
    Type
    wcf\system\exception\ErrorException
    File (Line)
    /Users/*****/www/wsc54/lib/system/WCF.class.php (344)
    Stacktrace
    1. [internal function] (?): wcf\system\WCF::handleError(…)
    2. /Users/*****/www/wsc54/lib/util/StringUtil.class.php (95): preg_replace(…)
    3. /Users/*****/www/wsc54/lib/system/option/TextareaOptionType.class.php (51): wcf\util\StringUtil::unifyNewlines(…)
    4. /Users/*****/www/wsc54/lib/system/option/OptionHandler.class.php (397): wcf\system\option\TextareaOptionType->getData(…)
    5. /Users/*****/www/wsc54/lib/system/option/OptionHandler.class.php (185): wcf\system\option\OptionHandler->validateOption(…)
    6. /Users/*****/www/wsc54/lib/acp/form/AbstractOptionListForm.class.php (97): wcf\system\option\OptionHandler->validate(…)
    7. /Users/*****/www/wsc54/lib/form/AbstractForm.class.php (64): wcf\acp\form\AbstractOptionListForm->validate(…)
    8. /Users/*****/www/wsc54/lib/form/AbstractForm.class.php (134): wcf\form\AbstractForm->submit(…)
    9. /Users/*****/www/wsc54/lib/acp/form/AbstractOptionListForm.class.php (111): wcf\form\AbstractForm->readData(…)
    10. /Users/*****/www/wsc54/lib/acp/form/OptionForm.class.php (100): wcf\acp\form\AbstractOptionListForm->readData(…)
    11. /Users/*****/www/wsc54/lib/page/AbstractPage.class.php (339): wcf\acp\form\OptionForm->readData(…)
    12. /Users/*****/www/wsc54/lib/acp/form/OptionForm.class.php (145): wcf\page\AbstractPage->show(…)
    13. /Users/*****/www/wsc54/lib/page/AbstractPage.class.php (122): wcf\acp\form\OptionForm->show(…)
    14. /Users/*****/www/wsc54/lib/system/request/Request.class.php (89): wcf\page\AbstractPage->__run(…)
    15. /Users/*****/www/wsc54/lib/system/request/RequestHandler.class.php (119): wcf\system\request\Request->execute(…)
    16. /Users/*****/www/wsc54/acp/index.php (11): wcf\system\request\RequestHandler->handle(…)

    P.S.: mir ist bewusst, dass ich Deprecations in der php.ini deaktivieren kann ;)

  • Hanashi

    Changed the title of the thread from “PHP 8.1 Fehler” to “PHP 8.1 Fehler beim Speichern von Konfiguration”.

Participate now!

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