PHP7.4.0 - Trying to access array offset on value of type null

  • Affected Version
    WoltLab Suite 3.1

    Fehler beim Aufruf aller Seiten nach Leeren des Caches (Redis) und heutiger Umstellung/Installation von PHP7.4.0 via Plesk Obsidian.


    und Error Message: Could not compile SCSS: Trying to access array offset on value of type null


    Requested URL
    /
    Referrer
    Error Message
    Could not compile SCSS: Trying to access array offset on value of type null
    Type
    wcf\system\exception\SystemException
    File (Line)
    /var/www/vhosts/example.com/httpdocs/lib/system/style/StyleCompiler.class.php (360)
    Stacktrace
    1. /var/www/vhosts/example.com/httpdocs/lib/system/style/StyleCompiler.class.php (131): wcf\system\style\StyleCompiler->compileStylesheet(…)
    2. /var/www/vhosts/example.com/httpdocs/lib/system/style/StyleHandler.class.php (140): wcf\system\style\StyleCompiler->compile(…)
    3. /var/www/vhosts/example.com/httpdocs/templates/compiled/2_wcf_2_cms.php (122): wcf\system\style\StyleHandler->getStylesheet(…)
    4. /var/www/vhosts/example.com/httpdocs/lib/system/template/TemplateEngine.class.php (321): include(…)
    5. /var/www/vhosts/example.com/httpdocs/lib/page/AbstractPage.class.php (323): wcf\system\template\TemplateEngine->display(…)
    6. /var/www/vhosts/example.com/httpdocs/lib/page/AbstractPage.class.php (114): wcf\page\AbstractPage->show(…)
    7. /var/www/vhosts/example.com/httpdocs/lib/system/request/Request.class.php (83): wcf\page\AbstractPage->__run(…)
    8. /var/www/vhosts/example.com/httpdocs/lib/system/request/RequestHandler.class.php (96): wcf\system\request\Request->execute(…)
    9. /var/www/vhosts/example.com/httpdocs/index.php (9): wcf\system\request\RequestHandler->handle(…)
    Error Message
    Trying to access array offset on value of type null
    Type
    wcf\system\exception\ErrorException
    File (Line)
    /var/www/vhosts/example.com/httpdocs/lib/system/WCF.class.php (346)
    Stacktrace
    1. /var/www/vhosts/example.com/httpdocs/lib/system/style/scssphp/src/Compiler.php (2903): wcf\system\WCF::handleError(…)
    2. /var/www/vhosts/example.com/httpdocs/lib/system/style/scssphp/src/Compiler.php (2846): Leafo\ScssPhp\Compiler->sortArgs(…)
    3. /var/www/vhosts/example.com/httpdocs/lib/system/style/scssphp/src/Compiler.php (1611): Leafo\ScssPhp\Compiler->callBuiltin(…)
    4. /var/www/vhosts/example.com/httpdocs/lib/system/style/scssphp/src/Compiler.php (1553): Leafo\ScssPhp\Compiler->reduce(…)
    5. /var/www/vhosts/example.com/httpdocs/lib/system/style/scssphp/src/Compiler.php (1107): Leafo\ScssPhp\Compiler->reduce(…)
    6. /var/www/vhosts/example.com/httpdocs/lib/system/style/scssphp/src/Compiler.php (828): Leafo\ScssPhp\Compiler->compileChild(…)
    7. /var/www/vhosts/example.com/httpdocs/lib/system/style/scssphp/src/Compiler.php (601): Leafo\ScssPhp\Compiler->compileChildren(…)
    8. /var/www/vhosts/example.com/httpdocs/lib/system/style/scssphp/src/Compiler.php (1055): Leafo\ScssPhp\Compiler->compileBlock(…)
    9. /var/www/vhosts/example.com/httpdocs/lib/system/style/scssphp/src/Compiler.php (828): Leafo\ScssPhp\Compiler->compileChild(…)
    10. /var/www/vhosts/example.com/httpdocs/lib/system/style/scssphp/src/Compiler.php (2710): Leafo\ScssPhp\Compiler->compileChildren(…)
    11. /var/www/vhosts/example.com/httpdocs/lib/system/style/scssphp/src/Compiler.php (984): Leafo\ScssPhp\Compiler->importFile(…)
    12. /var/www/vhosts/example.com/httpdocs/lib/system/style/scssphp/src/Compiler.php (1033): Leafo\ScssPhp\Compiler->compileImport(…)
    13. /var/www/vhosts/example.com/httpdocs/lib/system/style/scssphp/src/Compiler.php (828): Leafo\ScssPhp\Compiler->compileChild(…)
    14. /var/www/vhosts/example.com/httpdocs/lib/system/style/scssphp/src/Compiler.php (249): Leafo\ScssPhp\Compiler->compileChildren(…)
    15. /var/www/vhosts/example.com/httpdocs/lib/system/style/scssphp/src/Compiler.php (166): Leafo\ScssPhp\Compiler->compileRoot(…)
    16. /var/www/vhosts/example.com/httpdocs/lib/system/style/StyleCompiler.class.php (357): Leafo\ScssPhp\Compiler->compile(…)
    17. /var/www/vhosts/example.com/httpdocs/lib/system/style/StyleCompiler.class.php (131): wcf\system\style\StyleCompiler->compileStylesheet(…)
    18. /var/www/vhosts/example.com/httpdocs/lib/system/style/StyleHandler.class.php (140): wcf\system\style\StyleCompiler->compile(…)
    19. /var/www/vhosts/example.com/httpdocs/templates/compiled/2_wcf_2_cms.php (122): wcf\system\style\StyleHandler->getStylesheet(…)
    20. /var/www/vhosts/example.com/httpdocs/lib/system/template/TemplateEngine.class.php (321): include(…)
    21. /var/www/vhosts/example.com/httpdocs/lib/page/AbstractPage.class.php (323): wcf\system\template\TemplateEngine->display(…)
    22. /var/www/vhosts/example.com/httpdocs/lib/page/AbstractPage.class.php (114): wcf\page\AbstractPage->show(…)
    23. /var/www/vhosts/example.com/httpdocs/lib/system/request/Request.class.php (83): wcf\page\AbstractPage->__run(…)
    24. /var/www/vhosts/example.com/httpdocs/lib/system/request/RequestHandler.class.php (96): wcf\system\request\Request->execute(…)
    25. /var/www/vhosts/example.com/httpdocs/index.php (9): wcf\system\request\RequestHandler->handle(…)

  • PHP 7.4 wird noch nicht voll unterstützt. Bis zum nächsten Update solltest du eher bei PHP 7.3 bleiben.


    Unterstützung für PHP 7.4 wird selbstverständlich kommen. Anpassungen dazu sind im git bereits erfolgt.

  • Ich habe den Fehler gerade in einem Forum 5.1 mit Suite Core 3.1 beim update eines Plugins bekommen.


    UdoZ Schaufenster


    Meine Lösung war ein Downgrade auf PHP 7.3.


    Gibt es für Forum 5.1 und Suite Core 3.1 noch einen Bugfix?