• I put here the error:

    [Wed Oct 13 18:50:11.820490 2021] [php7:error] [pid 2454232] [client 111.222.333.444:12496] PHP Fatal error:  Uncaught Error: Call to undefined function Highlight\\mb_strtolower() in /var/www/blog.carlesmateo.com/wp-content/plugins/syntax-highlighting-code-block/vendor/scrivo/highlight-php/Highlight/Highlighter.php:331\nStack trace:\n#0 /var/www/blog.carlesmateo.com/wp-content/plugins/syntax-highlighting-code-block/vendor/scrivo/highlight-php/Highlight/Highlighter.php(389): Highlight\\Highlighter->keywordMatch()\n#1 /var/www/blog.carlesmateo.com/wp-content/plugins/syntax-highlighting-code-block/vendor/scrivo/highlight-php/Highlight/Highlighter.php(466): Highlight\\Highlighter->processKeywords()\n#2 /var/www/blog.carlesmateo.com/wp-content/plugins/syntax-highlighting-code-block/vendor/scrivo/highlight-php/Highlight/Highlighter.php(579): Highlight\\Highlighter->processBuffer()\n#3 /www/blog.carlesmateo.com/wp-content/plugins/syntax-highlighting-code-block/vendor/scrivo/highlight-php/Highlight/Highlighter.php(823): Highlight\\Highlighter->processLexeme()\n#4 /var/www/blog.carlesmateo.com/wp-content/plugins/syntax-highlighting-code-block/vendor/scrivo in /var/www/blog.carlesmateo.com/wp-content/plugins/syntax-highlighting-code-block/vendor/scrivo/highlight-php/Highlight/Highlighter.php on line 331
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter carles_mateo

    (@carles_mateo)

    I tried installing:
    apt install php-mbstring

    But it didn’t work either.

    Plugin Author Weston Ruter

    (@westonruter)

    So you installed module but mb_strtolower() still doesn’t exist? That seems like a problem with your configuration. Still, the plugin should gracefully handle this function not existing by at least giving a error notice that says it is not available.

    The underlying library, highlight.php, is using this function.

    @allejo Is it possible for highlight.php to have a fallback mode for when mbstring is not installed?

    Plugin Contributor Vladimir Jimenez

    (@allejo)

    I have a pull request open to add a graceful fallback for this method. Multibyte case conversion is only needed when you’re highlighting a language that has Unicode keywords (e.g. 1c); so you can safely live without it for most usages.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Does not work with PHP 7.4.3’ is closed to new replies.