Forum

Ask, reply and learn. Join the community of Akaunting.

New Discussion

Call to undefined function Termwind

Reinhardt Collins Angira   ( User )

Commented 1 week ago

I get this error when installing
Setting locale en-GB
Creating database tables
Connecting to database akaunting@localhost:3306
Creating company

Error

Call to undefined function Termwind\ValueObjects\mb_strimwidth()

at vendor/nunomaduro/termwind/src/ValueObjects/Styles.php:1053
1049▕ */
1050▕ private static function trimText(string $text, int $width): string
1051▕ {
1052▕ preg_match_all(self::STYLING_REGEX, $text, $matches, PREG_OFFSET_CAPTURE);
➜ 1053▕ $text = rtrim(mb_strimwidth(preg_replace(self::STYLING_REGEX, '', $text) ?? '', 0, $width, '', 'UTF-8'));
1054▕
1055▕ foreach ($matches[0] ?? [] as [$part, $index]) {
1056▕ $text = substr($text, 0, $

Please login or register to leave a response.

Showing 1 to 1 of 1 discussions