Failed to delete buffer/Uncaught Mpdf\MpdfExceptio
-
Hi @dinamiko, First of thanks for this great plugin, which was working great (generating custom pdfs) until some point very recently although we have only just detected that plugin (directly I believe) is generating a fatal error and the stack trace details shown below the headline details of which are…
<b>Notice</b>: ob_clean(): Failed to delete buffer. No buffer to delete in...
<b>Fatal error</b>: Uncaught Mpdf\MpdfException: Data has already been sent to outputTo test, add two values to the DHW Flow and Power kW inputs calculator (0.5 and 80 are a good range) and then hit the DOWNLOAD CALCULATION link/button at https://www.flexej.co.uk/domestic-hot-water-dhw-calculator/
The generated URL and pdf download link should then be something like.. https://www.flexej.co.uk/wp-json/flexej-dhw-calculator/v1/pdf?np=100&it=80&ppr=no&spr=no&asn=true&dhf=0.50&apf=0.39&rpi=102.85&rs=444.28&rt=17.13&rdf=0.5&ap=80
But note the full notice + fatal error and stack trace is as follows…
<br /> <b>Notice</b>: ob_clean(): Failed to delete buffer. No buffer to delete in <b>/home/flexej/public_html/wp-content/plugins/flexej-dhw-calculator/Service/PDFService.php</b> on line <b>150</b><br /> <br /> <b>Fatal error</b>: Uncaught Mpdf\MpdfException: Data has already been sent to output (/home/flexej/public_html/wp-content/plugins/flexej-dhw-calculator/Service/PDFService.php at line 150), unable to output PDF file in /home/flexej/public_html/wp-content/plugins/flexej-dhw-calculator/vendor/mpdf/mpdf/src/Mpdf.php:9572 Stack trace: #0 /home/flexej/public_html/wp-content/plugins/flexej-dhw-calculator/Service/PDFService.php(151): Mpdf\Mpdf->Output() #1 /home/flexej/public_html/wp-includes/rest-api/class-wp-rest-server.php(1292): DHWCalc\Service\PDFService->pdf() #2 /home/flexej/public_html/wp-includes/rest-api/class-wp-rest-server.php(1125): WP_REST_Server->respond_to_request() #3 /home/flexej/public_html/wp-includes/rest-api/class-wp-rest-server.php(439): WP_REST_Server->dispatch() #4 /home/flexej/public_html/wp-includes/rest-api.php(459): WP_REST_Server->serve_request() #5 /home/flexej/public_html/wp-includes/class-wp-hook.php(324): rest_api_loaded() #6 /home/flexej/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #7 /home/flexej/public_html/wp-includes/plugin.php(565): WP_Hook->do_action() #8 /home/flexej/public_html/wp-includes/class-wp.php(418): do_action_ref_array() #9 /home/flexej/public_html/wp-includes/class-wp.php(818): WP->parse_request() #10 /home/flexej/public_html/wp-includes/functions.php(1342): WP->main() #11 /home/flexej/public_html/wp-blog-header.php(16): wp() #12 /home/flexej/public_html/index.php(17): require('/home/flexej/pu...') #13 {main} thrown in <b>/home/flexej/public_html/wp-content/plugins/flexej-dhw-calculator/vendor/mpdf/mpdf/src/Mpdf.php</b> on line <b>9572</b><br />I have also tried previous major versions 1.9.10 and 1.8 and have tested both legacy and default template types on 1.9.10 but the notice/fatal error message is the same. Is that an error you recognise in terms of your plugin or environment that might be causing the issue? It’s a relatively urgent problem and the actual developer who built the custom configuration is away so I’m hoping it is at least a known issue that might be fixable in the short term for the client. The server/php set-up is LiteSpeed/php 8.1 with plenty of RAM etc.
But do please let me know if you need any more details or access to the site etc to check further. Many thanks in advance.
Colin | QuantosThe page I need help with: [log in to see the link]
The topic ‘Failed to delete buffer/Uncaught Mpdf\MpdfExceptio’ is closed to new replies.