Hi, After years of usage I suddenly get this error today.
Filename: /home/triomarketers/public_html/invoice/vendor/mpdf/mpdf/src/Mpdf.php
What could be the problem?
Version 1.6.3 running php 8.1
Where do I start?
Thanks
There is waaaayyy more information than just that exception that came from Mpdf.
Paste that extra information and i’ll cut out the non-interesting parts for you.
What’s left is What’s called the “stack-trace”
Thanks, This is the complete error page. (mbstring module is installed)
The only difference since previous usage, is that my laptop is no longer running windows but Linux) The software is hosted on shared hosting server, so I don’t think this makes a difference)
An uncaught Exception was encountered
Type: Mpdf\MpdfException
Message: mbstring extension with mbregex support must be loaded in order to run mPDF.
Filename: /home/triomarketers/public_html/invoice/vendor/mpdf/mpdf/src/Mpdf.php
Line Number: 9708
Backtrace:
File: /home/triomarketers/public_html/invoice/vendor/mpdf/mpdf/src/Mpdf.php
Line: 1051
Function: _dochecks
File: /home/triomarketers/public_html/invoice/application/helpers/mpdf_helper.php
Line: 47
Function: __construct
File: /home/triomarketers/public_html/invoice/application/helpers/pdf_helper.php
Line: 165
Function: pdf_create
File: /home/triomarketers/public_html/invoice/application/modules/invoices/controllers/Invoices.php
Line: 263
Function: generate_invoice_pdf
File: /home/triomarketers/public_html/invoice/index.php
Line: 315
Function: require_once
Managed to get this sorted, ‘mbregex’ is part of the ‘mbstring’ module. Even if ‘mbstring’ is enabled on my server the hosting service provider needs to enable the ‘mbregex’. This was done many, many months ago and for some unknown reason my hosting provider disabled this.
Thank you for your time spent on an unnecessary post.