Skip to content

[Bug]: Core: Exception handler (WEB): (when using visual_editor 1.8.0) Uncaught TYPO3 Exception: Too few arguments to function ScssPhp\ScssPhp\Compiler::registerFunction() #509

Description

@asche76

TYPO3-Version

14.3

t3sbootstrap-Version

5.3.47

What happened?

Using ts3bootstrap with latest visual_editor (1.8.0) causes:

Core: Exception handler (WEB): Uncaught TYPO3 Exception: Too few arguments to function ScssPhp\ScssPhp\Compiler::registerFunction(), 2 passed in /var/sadasd/typo3conf/ext/t3sbootstrap/Classes/Parser/ScssParser.php on line 120 and exactly 3 expected | ArgumentCountError thrown in file /adas/sdfsf/typo3conf/ext/ws_scss/Resources/Private/PHP/scssphp/src/Compiler.php in line 323. Requested URL: sdafds.de/?editMode=1

solution:
add
},
['$args...']
around line 138 in \Classes\Parser\ScssParser.php

Image

"...The newer scssphp version in ws_scss requires a third $argumentDeclaration array parameter for registerFunction(), but t3sbootstrap's ScssParser.php:120 only passes 2 arguments..."

Expected behavior

no error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions