Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nightly 2024-07-04 / Activating Markdown Editor results in error when viewing FAQ #3084

Closed
c1972 opened this issue Jul 4, 2024 · 1 comment
Assignees
Labels
Milestone

Comments

@c1972
Copy link
Contributor

c1972 commented Jul 4, 2024

After activating the Markdown Editor option,

markdown-editor-2

opening a FAQ post in frontend results in the following error:

phpMyFAQ Fatal error
Uncaught exception: 'ErrorException'

Message: 'mb_convert_encoding(): Handling HTML entities via mbstring is deprecated; use htmlspecialchars, htmlentities, or mb_encode_numericentity/mb_decode_numericentity instead'

Stack trace:

#0 [internal function]: phpMyFAQ\Core\Error::errorHandler(8192, 'mb_convert_enco...', '/home/www/cc10....', 480)
#1 /home/www/cc10.de/src/libs/erusev/parsedown-extra/ParsedownExtra.php(480): mb_convert_encoding('
FAQ3 in DE-H...', 'HTML-ENTITIES', 'UTF-8')
#2 /home/www/cc10.de/src/libs/erusev/parsedown-extra/ParsedownExtra.php(232): ParsedownExtra->processTag('

FAQ3 in DE-H...')
#3 /home/www/cc10.de/src/libs/erusev/parsedown/Parsedown.php(276): ParsedownExtra->blockMarkupComplete(Array)
#4 /home/www/cc10.de/src/libs/erusev/parsedown/Parsedown.php(39): Parsedown->lines(Array)
#5 /home/www/cc10.de/src/libs/erusev/parsedown-extra/ParsedownExtra.php(46): Parsedown->text('

FAQ3 in DE-H...')
#6 /home/www/cc10.de/faq.php(116): ParsedownExtra->text('

FAQ3 in DE-H...')
#7 /home/www/cc10.de/index.php(778): require('/home/www/cc10....')
#8 {main}

Thrown in '/home/www/cc10.de/src/libs/erusev/parsedown-extra/ParsedownExtra.php' on line 480

Site: cc10.de / nightly 2024-07-04
OS: Windows 11 Pro 23H2
Browser: Chrome 126.0.6478.127
phpMyFAQ Version: 4.0
PHP-Version: 8.2
Database: MariaDB 10.11.4
Elasticsearch: No

Regards Christian

@thorsten thorsten self-assigned this Jul 4, 2024
@thorsten thorsten added the Bug label Jul 4, 2024
@thorsten thorsten added this to the 4.0 milestone Jul 4, 2024
@thorsten
Copy link
Owner

thorsten commented Jul 5, 2024

Caused by erusev/parsedown-extra#177

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants