Topic on Extension talk:Mpdf

*351 FastCGI sent in stderr: "PHP message: PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /mywiki/vendor/mpdf/mpdf/mpdf.php on line 30539" while reading response header from upstream

1
2003:C9:1F3C:F00:ECA0:C807:5E0D:219C (talkcontribs)

Hi,

I have installed the extension, and I can see the button and it tries to convert the page, but gets stuck with the above error in the logfile - the wikipage just goes blank.

I'm getting these errors about these "{ }" curly brackets in some hundred lines in mpdf.php. After changing these to [ ] brackets I could hop a bit further in the program. I have changed those incriminated brackets in mpdf.php and grad.php.

There after the webpage does not go blank anymore, but shows the fatal error on the wiki page. The logfile shows:

*441 FastCGI sent in stderr: "PHP message: PHP Warning:  A non-numeric value encountered in...

mpdf.php line 30572

My environment is mediawiki 1.42 and php8.2 on debian12.

I'm far from being able to "debug" the impressive code any further. My best guess is that the bracket use was changed from a certain php version onwards. So I'll disable the extension for now and hope for a solution or update.

Kind regards, Harald

Reply to "*351 FastCGI sent in stderr: "PHP message: PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /mywiki/vendor/mpdf/mpdf/mpdf.php on line 30539" while reading response header from upstream"