Yellow-Dog-Man / Resonite-Issues

Issue repository for Resonite.
https://resonite.com
134 stars 2 forks source link

[Wiki] Using the mpdf action returns an error #1124

Open jae1911 opened 8 months ago

jae1911 commented 8 months ago

Describe the bug?

When using the action ?action=mpdf on any Wiki page, an error will be returned.

To Reproduce

  1. Navigate to https://wiki.resonite.com/Command_Line_Arguments?action=mpdf (or any page with ?action=mpdf appened to the URL)
  2. Notice the error

Expected behavior

Page as a PDF should be returned.

Screenshots

No response

Resonite Version Number

N/A

What Platforms does this occur on?

Windows

What headset if any do you use?

No response

Log Files

As returned by the wiki:

[09ab028c3fa7dc8b1621bb6b] /Command_Line_Arguments?action=mpdf Mpdf\MpdfException: The HTML code size is larger than pcre.backtrack_limit 4. You should use WriteHTML() with smaller string lengths. Pass your HTML in smaller chunks.

Backtrace:

from /var/www/html/extensions/Mpdf/vendor/mpdf/mpdf/src/Mpdf.php(27072)
#0 /var/www/html/extensions/Mpdf/vendor/mpdf/mpdf/src/Mpdf.php(13437): Mpdf\Mpdf->AdjustHTML(string, integer)
#1 /var/www/html/extensions/Mpdf/MpdfAction.php(123): Mpdf\Mpdf->WriteHTML(string)
#2 /var/www/html/includes/MediaWiki.php(556): MpdfAction->show()
#3 /var/www/html/includes/MediaWiki.php(333): MediaWiki->performAction(Article, MediaWiki\Title\Title)
#4 /var/www/html/includes/MediaWiki.php(923): MediaWiki->performRequest()
#5 /var/www/html/includes/MediaWiki.php(576): MediaWiki->main()
#6 /var/www/html/index.php(50): MediaWiki->run()
#7 /var/www/html/index.php(46): wfIndexMain()
#8 {main}

Additional Context

No response

Reporters

No response

ProbablePrime commented 8 months ago

I know, its listed here: https://wiki.resonite.com/Wiki_Status