• Resolved quantoscolin

    (@quantoscolin)


    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 output

    To 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-&gt;Output() #1 /home/flexej/public_html/wp-includes/rest-api/class-wp-rest-server.php(1292): DHWCalc\Service\PDFService-&gt;pdf() #2 /home/flexej/public_html/wp-includes/rest-api/class-wp-rest-server.php(1125): WP_REST_Server-&gt;respond_to_request() #3 /home/flexej/public_html/wp-includes/rest-api/class-wp-rest-server.php(439): WP_REST_Server-&gt;dispatch() #4 /home/flexej/public_html/wp-includes/rest-api.php(459): WP_REST_Server-&gt;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-&gt;apply_filters() #7 /home/flexej/public_html/wp-includes/plugin.php(565): WP_Hook-&gt;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-&gt;parse_request() #10 /home/flexej/public_html/wp-includes/functions.php(1342): WP-&gt;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 | Quantos

    • This topic was modified 8 months, 1 week ago by quantoscolin.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author dinamiko

    (@dinamiko)

    Hello @quantoscolin,

    I’ve checked and it seems the error is coming from a plugin named flexej-dhw-calculator:

    wp-content/plugins/flexej-dhw-calculator/Service/PDFService.php at line 150

    Not sure if DK PDF is related to the issue or not, but if so that would be out of scope of free support here. That being said, I would be happy to discuss this issue privately and provide you a quote. If you are interested, you can reach me at hi@dinamiko.dev. Thanks.

    Thread Starter quantoscolin

    (@quantoscolin)

    Hi @dinamiko. thanks for the reply. Much appreciated and yes would like to talk further about getting some help on this. I’ll drop you a direct note. cheers. Colin

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Failed to delete buffer/Uncaught Mpdf\MpdfExceptio’ is closed to new replies.