Breaks with PHP 8.0
-
Upgrading to PHP 8.0 breaks this plugin and causes a critical error. It appears to be abandoned, but if anyone has an issue, reverting back to PHP 7.4 worked for us. For now…
-
Hi all my custom version works with PHP 8.0.20, and WP 6.0, making some changes.
Excellent. Where can we find it?
It’s not anywhere, but I can leave a link from my drive or by private email.
Very much appreciate your work on this @lusant – I can confirm it works on my site with PHP8 & WP6. Thank you!
If you’re interested, I think you should definitely consider having your changes made “official” by contributing to the project on Github – https://github.com/Dinamiko/dk-pdf
Yeah, I’m currently seeing:
Fatal error: Array and string offset access syntax with curly braces is no longer supported in /wp-content/plugins/dk-pdf/vendor/mpdf/mpdf/src/Mpdf.php on line 2209on PHP 8.0.x when trying to view the generated PDF with the current version. It seems the mPDF library that’s bundled with this plugin needs to be updated.
I agree with @djw0510, @lusant should look to propose things at https://github.com/Dinamiko/dk-pdf to accommodate and help make sure this is updated sooner than later (with the WP.org version not seeing an update in over a year & the code itself, according to GitHub, possibly being older than that so an extra nudge [as well as offering a patch as a public PR] is probably helpful.)
Was there anything outside of updating the mPDF library that was needed to be done in your fix, @lusant?
I just uploaded my fork https://github.com/wwwxkz/dk-pdf I did some well formated finds and replaces (regex) and updated it to work in php 7 and 8, at least it is working locally, and I recomend you testing there before updating in your live
You guys are the best, thank you!!
Just want to say a big thank you to you guys. The fix works sweet on PHP8.1.
I couldn’t find any alternative plugin that would work like this one, particularly with all the customisations done on the PDF formatting, so this fix has been a life-saver.
Thanks heaps!HI @lusant , could you share your files again? The link is broken and I can’t get the other versions to work.
I confirm that this patched version does work on php 8.1.
Here is the link to the github issues page for access to the patched plugin:
Guys, THANK YOU SO MUCH !!!
The topic ‘Breaks with PHP 8.0’ is closed to new replies.